	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setinputfd                     ## -- Begin function setinputfd
	.p2align	4, 0x90
_setinputfd:                            ## @setinputfd
	.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
	movl	%edi, %ebx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_pushfile
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_ckmalloc
	movq	_parsefile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_3
LBB0_1:
	movq	_parsefile@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_3:
	movl	(%rcx), %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.4:
	callq	_close
	movq	_parsefile@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_5:
	movl	%ebx, (%rcx)
	cmpq	$0, 8(%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_ckmalloc
	movq	_parsefile@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
LBB0_7:
	movq	_parsenleft@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_parselleft@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_plinno@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,8,3                     ## @BUFSIZ
	.comm	_parsefile,8,3                  ## @parsefile
	.comm	_parsenleft,8,3                 ## @parsenleft
	.comm	_parselleft,8,3                 ## @parselleft
	.comm	_plinno,4,2                     ## @plinno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setinputfd                     ; -- Begin function setinputfd
	.p2align	2
_setinputfd:                            ; @setinputfd
	.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, x0
Lloh0:
	adrp	x21, _BUFSIZ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BUFSIZ@GOTPAGEOFF]
Lloh2:
	adrp	x20, _parsefile@GOTPAGE
Lloh3:
	ldr	x20, [x20, _parsefile@GOTPAGEOFF]
	cbz	w1, LBB0_2
; %bb.1:
	bl	_pushfile
	ldr	x8, [x21]
	add	x0, x8, #1
	bl	_ckmalloc
	ldr	x8, [x20]
	str	x0, [x8, #8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
LBB0_3:
	ldr	w0, [x8]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.4:
	bl	_close
	ldr	x8, [x20]
LBB0_5:
	str	w19, [x8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x21]
	add	x0, x8, #1
	bl	_ckmalloc
	ldr	x8, [x20]
	str	x0, [x8, #8]
LBB0_7:
Lloh4:
	adrp	x8, _parsenleft@GOTPAGE
Lloh5:
	ldr	x8, [x8, _parsenleft@GOTPAGEOFF]
Lloh6:
	adrp	x9, _parselleft@GOTPAGE
Lloh7:
	ldr	x9, [x9, _parselleft@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	str	xzr, [x9]
Lloh10:
	adrp	x8, _plinno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _plinno@GOTPAGEOFF]
	mov	w9, #1
Lloh12:
	str	w9, [x8]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,8,3                     ; @BUFSIZ
	.comm	_parsefile,8,3                  ; @parsefile
	.comm	_parsenleft,8,3                 ; @parsenleft
	.comm	_parselleft,8,3                 ; @parselleft
	.comm	_plinno,4,2                     ; @plinno
.subsections_via_symbols
