	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_awkgetline                     ## -- Begin function awkgetline
	.p2align	4, 0x90
_awkgetline:                            ## @awkgetline
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_recsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)
	callq	_malloc
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_FATAL
LBB0_2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	xorl	%eax, %eax
	callq	_gettemp
	movq	%rax, %r14
	cmpq	$0, 8(%r12)
	je	LBB0_11
## %bb.3:
	movq	16(%r12), %rdi
	callq	_execute
	movq	%rax, %r15
	movq	8(%r12), %rdi
	callq	_ptoi
	movl	%eax, %ebx
	cmpl	$124, %eax
	jne	LBB0_5
## %bb.4:
	movq	_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_getsval
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_openfile
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_tempfree
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	leaq	-40(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_readrec
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_17
## %bb.8:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.9:
	movq	_fldtab@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	-40(%rbp), %rsi
	callq	_setsval
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_is_number
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_atof
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	%rax, 8(%rdx)
	movq	_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_11:
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.13:
	leaq	-40(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	callq	_getrec
	movl	%eax, %r15d
	movq	(%r12), %rdi
LBB0_14:
	callq	_execute
	movq	%rax, %rbx
	movq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_setsval
	movl	4(%rbx), %edi
	callq	_is_number
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	4(%rbx), %edi
	callq	_atof
	movq	%rax, 8(%rbx)
	movq	_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_16:
	movq	%rbx, %rdi
	callq	_tempfree
	jmp	LBB0_17
LBB0_6:
	movl	$-1, %r15d
	jmp	LBB0_17
LBB0_12:
	movq	_record@GOTPCREL(%rip), %rdi
	movq	_recsize@GOTPCREL(%rip), %rsi
	movl	$1, %edx
	callq	_getrec
	movl	%eax, %r15d
LBB0_17:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_setfval
	movq	-40(%rbp), %rdi
	callq	_free
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_recsize,4,2                    ## @recsize
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory in getline"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_LE,4,2                         ## @LE
	.comm	_NUM,4,2                        ## @NUM
	.comm	_record,8,3                     ## @record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_awkgetline                     ; -- Begin function awkgetline
	.p2align	2
_awkgetline:                            ; @awkgetline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
Lloh0:
	adrp	x8, _recsize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _recsize@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [sp, #4]
	bl	_malloc
	str	x0, [sp, #8]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_2:
Lloh5:
	adrp	x8, _stdout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_fflush
	bl	_gettemp
	mov	x19, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x0, [x21, #16]
	bl	_execute
	mov	x22, x0
	ldr	x0, [x21, #8]
	bl	_ptoi
Lloh8:
	adrp	x8, _LE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, #124
	csel	w20, w8, w0, eq
	mov	x0, x22
	bl	_getsval
	mov	x1, x0
	mov	x0, x20
	bl	_openfile
	mov	x20, x0
	mov	x0, x22
	bl	_tempfree
	cbz	x20, LBB0_13
; %bb.4:
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, x20
	bl	_readrec
	mov	x20, x0
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.5:
	ldr	x0, [x21]
	cbnz	x0, LBB0_10
; %bb.6:
Lloh11:
	adrp	x21, _fldtab@GOTPAGE
Lloh12:
	ldr	x21, [x21, _fldtab@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	ldr	x1, [sp, #8]
	bl	_setsval
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_is_number
	cbz	x0, LBB0_15
; %bb.7:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_atof
	ldr	x8, [x21]
	ldr	x9, [x8]
Lloh13:
	adrp	x10, _NUM@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NUM@GOTPAGEOFF]
	str	x0, [x9, #8]
Lloh15:
	ldr	w9, [x10]
	ldr	x8, [x8]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_15
LBB0_8:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.9:
	add	x0, sp, #8
	add	x1, sp, #4
	mov	w2, #0
	bl	_getrec
	mov	x20, x0
	ldr	x0, [x21]
LBB0_10:
	bl	_execute
	mov	x21, x0
	ldr	x1, [sp, #8]
	bl	_setsval
	ldr	w0, [x21, #4]
	bl	_is_number
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x21, #4]
	bl	_atof
	str	x0, [x21, #8]
Lloh16:
	adrp	x8, _NUM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NUM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_12:
	mov	x0, x21
	bl	_tempfree
	b	LBB0_15
LBB0_13:
	mov	w20, #-1
	b	LBB0_15
LBB0_14:
Lloh19:
	adrp	x0, _record@GOTPAGE
Lloh20:
	ldr	x0, [x0, _record@GOTPAGEOFF]
Lloh21:
	adrp	x1, _recsize@GOTPAGE
Lloh22:
	ldr	x1, [x1, _recsize@GOTPAGEOFF]
	mov	w2, #1
	bl	_getrec
	mov	x20, x0
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_setfval
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_recsize,4,2                    ; @recsize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory in getline"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_LE,4,2                         ; @LE
	.comm	_NUM,4,2                        ; @NUM
	.comm	_record,8,3                     ; @record
.subsections_via_symbols
