	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_awkprintf                      ## -- Begin function awkprintf
	.p2align	4, 0x90
_awkprintf:                             ## @awkprintf
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_recsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %edi
	movl	%edi, -36(%rbp)
	callq	_malloc
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FATAL
LBB0_2:
	movq	(%r14), %rdi
	movq	(%rdi), %r15
	callq	_execute
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_getsval
	leaq	-32(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	movl	%eax, %edx
	movq	%r15, %rcx
	callq	_format
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_FATAL
LBB0_4:
	movq	%rbx, %rdi
	callq	_tempfree
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.7:
	callq	_ptoi
	movq	16(%r14), %rsi
	movl	%eax, %edi
	callq	_redirect
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	callq	_fflush
	movq	%rbx, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_filename
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_FATAL
	jmp	LBB0_9
LBB0_5:
	movq	-32(%rbp), %rdi
	movq	_stdout@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_fwrite
	movq	(%rbx), %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_FATAL
LBB0_9:
	movq	-32(%rbp), %rdi
	callq	_free
	movq	_True@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	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 awkprintf"

L_.str.1:                               ## @.str.1
	.asciz	"printf string %.30s... too long.  can't happen."

	.comm	_stdout,8,3                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"write error on stdout"

L_.str.3:                               ## @.str.3
	.asciz	"write error on %s"

	.comm	_True,8,3                       ## @True
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_awkprintf                      ; -- Begin function awkprintf
	.p2align	2
_awkprintf:                             ; @awkprintf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _recsize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _recsize@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w8, lsl #1
	str	w0, [sp, #20]
	bl	_malloc
	str	x0, [sp, #24]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
LBB0_2:
	ldr	x0, [x19]
	ldr	x20, [x0]
	bl	_execute
	mov	x21, x0
	bl	_getsval
	mov	x2, x0
	add	x0, sp, #24
	add	x1, sp, #20
	mov	x3, x20
	bl	_format
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FATAL
LBB0_4:
	mov	x0, x21
	bl	_tempfree
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_ptoi
	ldr	x1, [x19, #16]
	bl	_redirect
	mov	x19, x0
	ldr	x0, [sp, #24]
	mov	x1, x20
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	mov	x0, x19
	bl	_fflush
	mov	x0, x19
	bl	_ferror
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_filename
	str	x0, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	x0, [sp, #24]
Lloh9:
	adrp	x19, _stdout@GOTPAGE
Lloh10:
	ldr	x19, [x19, _stdout@GOTPAGEOFF]
	ldr	x3, [x19]
	mov	x1, x20
	mov	w2, #1
	bl	_fwrite
	ldr	x0, [x19]
	bl	_ferror
	cbz	x0, LBB0_10
; %bb.8:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_FATAL
LBB0_10:
	ldr	x0, [sp, #24]
	bl	_free
Lloh13:
	adrp	x8, _True@GOTPAGE
Lloh14:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_recsize,4,2                    ; @recsize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory in awkprintf"

l_.str.1:                               ; @.str.1
	.asciz	"printf string %.30s... too long.  can't happen."

	.comm	_stdout,8,3                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"write error on stdout"

l_.str.3:                               ; @.str.3
	.asciz	"write error on %s"

	.comm	_True,8,3                       ; @True
.subsections_via_symbols
