	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function closeio
_closeio:                               ## @closeio
	.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	_symdepth@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_zerosyms@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	$10, %edi
	callq	_putchar
LBB0_3:
	movq	_output@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movq	_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	callq	_err
LBB0_7:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_symdepth,8,3                   ## @symdepth
	.comm	_zerosyms,4,2                   ## @zerosyms
	.comm	_output,8,3                     ## @output
	.comm	_EOF,8,3                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%s: can't write to output"

	.comm	_filename,4,2                   ## @filename
	.comm	_input,8,3                      ## @input
	.no_dead_strip	_closeio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function closeio
_closeio:                               ; @closeio
	.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
Lloh0:
	adrp	x8, _symdepth@GOTPAGE
Lloh1:
	ldr	x8, [x8, _symdepth@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _zerosyms@GOTPAGE
Lloh4:
	ldr	x9, [x9, _zerosyms@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #10
	bl	_putchar
LBB0_2:
Lloh6:
	adrp	x8, _output@GOTPAGE
Lloh7:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
	cbz	x19, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_ferror
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_fclose
Lloh9:
	adrp	x8, _EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _filename@GOTPAGE
Lloh13:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_err
LBB0_6:
Lloh17:
	adrp	x8, _input@GOTPAGE
Lloh18:
	ldr	x8, [x8, _input@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fclose
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_symdepth,8,3                   ; @symdepth
	.comm	_zerosyms,4,2                   ; @zerosyms
	.comm	_output,8,3                     ; @output
	.comm	_EOF,8,3                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%s: can't write to output"

	.comm	_filename,4,2                   ; @filename
	.comm	_input,8,3                      ; @input
	.no_dead_strip	_closeio
.subsections_via_symbols
