	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextfile                       ## -- Begin function nextfile
	.p2align	4, 0x90
_nextfile:                              ## @nextfile
	.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	_infile@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_stdin@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.2:
	callq	_fclose
LBB0_3:
	movq	$0, (%rbx)
	movq	_argno@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_infile,8,3                     ## @infile
	.comm	_stdin,8,3                      ## @stdin
	.comm	_argno,4,2                      ## @argno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextfile                       ; -- Begin function nextfile
	.p2align	2
_nextfile:                              ; @nextfile
	.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	x19, _infile@GOTPAGE
Lloh1:
	ldr	x19, [x19, _infile@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _stdin@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_fclose
LBB0_2:
	str	xzr, [x19]
Lloh5:
	adrp	x8, _argno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _argno@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_infile,8,3                     ; @infile
	.comm	_stdin,8,3                      ; @stdin
	.comm	_argno,4,2                      ; @argno
.subsections_via_symbols
