	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fclose                         ## -- Begin function fclose
	.p2align	4, 0x90
_fclose:                                ## @fclose
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	_fclose(%rip), %rdi
	callq	_GET_REAL
	movq	%rbx, %rdi
	callq	_real_fclose
	movq	_fail_close@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rcx)
	movq	_fail_write@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_fail_read@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_fail@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fail_close,8,3                 ## @fail_close
	.comm	_fail_write,8,3                 ## @fail_write
	.comm	_fail_read,8,3                  ## @fail_read
	.comm	_fail,8,3                       ## @fail
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fclose                         ; -- Begin function fclose
	.p2align	2
_fclose:                                ; @fclose
	.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	x0, _fclose@PAGE
Lloh1:
	add	x0, x0, _fclose@PAGEOFF
	bl	_GET_REAL
	mov	x0, x19
	bl	_real_fclose
Lloh2:
	adrp	x8, _fail_close@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fail_close@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x19
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x8]
Lloh4:
	adrp	x8, _fail_write@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fail_write@GOTPAGEOFF]
Lloh6:
	str	xzr, [x8]
Lloh7:
	adrp	x8, _fail_read@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fail_read@GOTPAGEOFF]
Lloh9:
	str	xzr, [x8]
Lloh10:
	adrp	x8, _fail@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fail@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
Lloh13:
	adrp	x8, _EOF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_fail_close,8,3                 ; @fail_close
	.comm	_fail_write,8,3                 ; @fail_write
	.comm	_fail_read,8,3                  ; @fail_read
	.comm	_fail,8,3                       ; @fail
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
