; Listing generated by Microsoft (R) Optimizing Compiler Version 19.00.24215.1 

include listing.inc

INCLUDELIB OLDNAMES

COMM	?_OptionsStorage@?1??__local_stdio_scanf_options@@9@9:QWORD							; `__local_stdio_scanf_options'::`2'::_OptionsStorage
COMM	?_OptionsStorage@?1??__local_stdio_printf_options@@9@9:QWORD							; `__local_stdio_printf_options'::`2'::_OptionsStorage
_DATA	ENDS
PUBLIC	gzclose
; Function compile flags: /Ogtpy
; File c:\mywork\pkcs\zlib-1.2.11\gzclose.c
;	COMDAT gzclose
_TEXT	SEGMENT
file$ = 8
gzclose	PROC						; COMDAT

; 14   : #ifndef NO_GZCOMPRESS
; 15   :     gz_statep state;
; 16   : 
; 17   :     if (file == NULL)

  00000	48 85 c9	 test	 rcx, rcx
  00003	75 04		 jne	 SHORT $LN2@gzclose

; 18   :         return Z_STREAM_ERROR;

  00005	8d 41 fe	 lea	 eax, QWORD PTR [rcx-2]

; 22   : #else
; 23   :     return gzclose_r(file);
; 24   : #endif
; 25   : }

  00008	c3		 ret	 0
$LN2@gzclose:

; 19   :     state = (gz_statep)file;
; 20   : 
; 21   :     return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);

  00009	81 79 18 4f 1c
	00 00		 cmp	 DWORD PTR [rcx+24], 7247 ; 00001c4fH
  00010	0f 84 00 00 00
	00		 je	 gzclose_r
$LN4@gzclose:
  00016	e9 00 00 00 00	 jmp	 gzclose_w
gzclose	ENDP
_TEXT	ENDS
END
