	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zclose
_zclose:                                ## @zclose
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_zmode@GOTPCREL(%rip), %rax
	cmpb	$119, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_ent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_output
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	_out_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$-1, %ebx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_output
	cmpl	$-1, %eax
	je	LBB0_4
LBB0_5:
	movq	_fp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fclose
	movq	_EOF@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	negl	%ebx
	jmp	LBB0_6
LBB0_2:
	movq	_fp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fclose
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_4:
	movq	_fp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fclose
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zmode,1,0                      ## @zmode
	.comm	_ent,8,3                        ## @ent
	.comm	_fp,4,2                         ## @fp
	.comm	_out_count,4,2                  ## @out_count
	.comm	_EOF,8,3                        ## @EOF
	.no_dead_strip	_zclose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zclose
_zclose:                                ; @zclose
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _zmode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _zmode@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, #119
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _ent@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ent@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_output
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _out_count@GOTPAGE
Lloh6:
	ldr	x8, [x8, _out_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	mov	w1, #-1
	bl	_output
	cmn	w0, #1
	b.eq	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _fp@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fp@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_fclose
Lloh10:
	adrp	x8, _EOF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	csetm	w20, eq
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _fp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _fp@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_fclose
	mov	w20, #-1
LBB0_5:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_zmode,1,0                      ; @zmode
	.comm	_ent,8,3                        ; @ent
	.comm	_fp,4,2                         ; @fp
	.comm	_out_count,4,2                  ; @out_count
	.comm	_EOF,8,3                        ; @EOF
	.no_dead_strip	_zclose
.subsections_via_symbols
