	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifetch                         ## -- Begin function ifetch
	.p2align	4, 0x90
_ifetch:                                ## @ifetch
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %esi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.1:
	movq	_input_lines@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_4
## %bb.2:
	movq	_using_plan_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_i_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_warn_on_invalid_line@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_14
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_say
	movl	$0, (%rbx)
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_6:
	movq	_lines_per_buf@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %r14d
	subl	%edx, %esi
	movq	_tiline@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpl	%esi, (%rdx)
	je	LBB0_13
## %bb.7:
	movl	$1, %eax
	cmpl	%esi, 4(%rdx)
	je	LBB0_13
## %bb.8:
	movslq	%ebx, %r12
	movl	%esi, (%rdx,%r12,4)
	movq	_tifd@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	movq	_tibuflen@GOTPCREL(%rip), %r15
	imull	(%r15), %eax
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pfatal
LBB0_10:
	movl	(%r13), %edi
	movq	_tibuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12,8), %rsi
	movl	(%r15), %edx
	callq	_read
	movslq	(%r15), %rcx
	cmpq	%rcx, %rax
	je	LBB0_12
## %bb.11:
	movq	_TMPINNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pfatal
LBB0_12:
	movl	%ebx, %eax
LBB0_13:
	movq	_tibuf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	movq	_tireclen@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movslq	%r14d, %rax
	imulq	%rsi, %rax
	addq	(%rcx,%rdx,8), %rax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_input_lines,4,2                ## @input_lines
	.comm	_warn_on_invalid_line,4,2       ## @warn_on_invalid_line
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No such line %ld in input file, ignoring\n"

	.comm	_using_plan_a,8,3               ## @using_plan_a
	.comm	_i_ptr,8,3                      ## @i_ptr
	.comm	_lines_per_buf,4,2              ## @lines_per_buf
	.comm	_tiline,8,3                     ## @tiline
	.comm	_tifd,4,2                       ## @tifd
	.comm	_tibuflen,4,2                   ## @tibuflen
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"cannot seek in the temporary input file"

	.comm	_tibuf,8,3                      ## @tibuf
L_.str.2:                               ## @.str.2
	.asciz	"error reading tmp file %s"

	.comm	_TMPINNAME,4,2                  ## @TMPINNAME
	.comm	_tireclen,4,2                   ## @tireclen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifetch                         ; -- Begin function ifetch
	.p2align	2
_ifetch:                                ; @ifetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x1, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _input_lines@GOTPAGE
Lloh1:
	ldr	x8, [x8, _input_lines@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _using_plan_a@GOTPAGE
Lloh4:
	ldr	x8, [x8, _using_plan_a@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _i_ptr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i_ptr@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x0, [x8, w1, uxtw #3]
	b	LBB0_16
LBB0_4:
Lloh9:
	adrp	x19, _warn_on_invalid_line@GOTPAGE
Lloh10:
	ldr	x19, [x19, _warn_on_invalid_line@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_say
	mov	x0, #0
	str	wzr, [x19]
	b	LBB0_16
LBB0_6:
Lloh13:
	adrp	x8, _lines_per_buf@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lines_per_buf@GOTPAGEOFF]
	ldr	w9, [x8]
	sdiv	w10, w1, w9
	mul	w9, w10, w9
Lloh15:
	adrp	x10, _tiline@GOTPAGE
Lloh16:
	ldr	x10, [x10, _tiline@GOTPAGEOFF]
	sub	w20, w1, w9
Lloh17:
	ldr	x10, [x10]
	ldr	w11, [x10]
Lloh18:
	adrp	x21, _tibuf@GOTPAGE
Lloh19:
	ldr	x21, [x21, _tibuf@GOTPAGEOFF]
	cmp	w11, w9
	b.ne	LBB0_9
; %bb.7:
	mov	w19, #0
	b	LBB0_15
LBB0_8:
	mov	x0, #0
	b	LBB0_16
LBB0_9:
	ldr	w11, [x10, #4]
	cmp	w11, w9
	b.ne	LBB0_11
; %bb.10:
	mov	w19, #1
	b	LBB0_15
LBB0_11:
	sxtw	x23, w19
	str	w9, [x10, w19, sxtw #2]
Lloh20:
	adrp	x24, _tifd@GOTPAGE
Lloh21:
	ldr	x24, [x24, _tifd@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w8, [x8]
Lloh22:
	adrp	x22, _tibuflen@GOTPAGE
Lloh23:
	ldr	x22, [x22, _tibuflen@GOTPAGEOFF]
	sdiv	w8, w9, w8
	ldr	w9, [x22]
	mul	w1, w9, w8
Lloh24:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_lseek
	tbz	x0, #63, LBB0_13
; %bb.12:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pfatal
LBB0_13:
	ldr	w0, [x24]
	ldr	x8, [x21]
	ldr	x1, [x8, x23, lsl #3]
	ldr	w2, [x22]
	bl	_read
	ldrsw	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.14:
Lloh29:
	adrp	x8, _TMPINNAME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TMPINNAME@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pfatal
LBB0_15:
	ldr	x8, [x21]
	ldr	x8, [x8, w19, sxtw #3]
Lloh34:
	adrp	x9, _tireclen@GOTPAGE
Lloh35:
	ldr	x9, [x9, _tireclen@GOTPAGEOFF]
Lloh36:
	ldrsw	x9, [x9]
	sxtw	x10, w20
	madd	x0, x9, x10, x8
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_input_lines,4,2                ; @input_lines
	.comm	_warn_on_invalid_line,4,2       ; @warn_on_invalid_line
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No such line %ld in input file, ignoring\n"

	.comm	_using_plan_a,8,3               ; @using_plan_a
	.comm	_i_ptr,8,3                      ; @i_ptr
	.comm	_lines_per_buf,4,2              ; @lines_per_buf
	.comm	_tiline,8,3                     ; @tiline
	.comm	_tifd,4,2                       ; @tifd
	.comm	_tibuflen,4,2                   ; @tibuflen
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"cannot seek in the temporary input file"

	.comm	_tibuf,8,3                      ; @tibuf
l_.str.2:                               ; @.str.2
	.asciz	"error reading tmp file %s"

	.comm	_TMPINNAME,4,2                  ; @TMPINNAME
	.comm	_tireclen,4,2                   ; @tireclen
.subsections_via_symbols
