	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function close_file
_close_file:                            ## @close_file
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rcx
	testq	%r15, %r15
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rsi, %r15
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rsi, %r8
	movq	_progname@GOTPCREL(%rip), %rcx
	testq	%r14, %r14
	cmoveq	%rsi, %r14
	movq	(%rcx), %rdx
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rsi, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rcx
	movq	%r14, %r9
	pushq	%rax
	pushq	%rbx
	callq	_fprintf
	addq	$16, %rsp
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I/O error"

	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s%s%s%s%s\n"

	.comm	_progname,8,3                   ## @progname
L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"/"

L_.str.4:                               ## @.str.4
	.asciz	": "

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_close_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function close_file
_close_file:                            ; @close_file
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ferror
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x7, x0
	cbz	x0, LBB0_4
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_fclose
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_strerror
	mov	x7, x0
	cbnz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _progname@GOTPAGE
Lloh9:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
Lloh11:
	adrp	x8, l_.str.2@PAGE
Lloh12:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x20, #0
	csel	x3, x8, x20, eq
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x4, x8, x9, eq
	cmp	x19, #0
	csel	x5, x8, x19, eq
Lloh15:
	adrp	x9, l_.str.4@PAGE
Lloh16:
	add	x9, x9, l_.str.4@PAGEOFF
	csel	x6, x8, x9, eq
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
Lloh19:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I/O error"

	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s%s%s%s%s\n"

	.comm	_progname,8,3                   ; @progname
l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"/"

l_.str.4:                               ; @.str.4
	.asciz	": "

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_close_file
.subsections_via_symbols
