	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readfile
_readfile:                              ## @readfile
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_fgetc
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_4
## %bb.2:
	movl	$1, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_4:
	movl	$1, %ebx
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rcx), %r12d
	cmpl	%ebx, %ecx
	movl	%r12d, %ecx
	cmovll	%ebx, %ecx
	xorl	%edx, %edx
	cmpl	$10, %eax
	cmovel	%ecx, %ebx
	sete	%dl
	movl	$0, %eax
	cmovel	%eax, %r12d
	addl	%edx, %r13d
	movq	%r14, %rdi
	callq	_fgetc
	movl	%r12d, %ecx
	cmpl	(%r15), %eax
	jne	LBB0_5
LBB0_6:
	cmpl	$1, %r12d
	sbbl	$-1, %r13d
	cmpl	%ebx, %r12d
	cmovgl	%r12d, %ebx
	leal	8(,%r13,8), %edi
	callq	_pg_malloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	incl	%ebx
	movl	%ebx, %edi
	callq	_pg_malloc
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_rewind
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_fgets
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.8:
	movl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_pg_strdup
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r13, %r15
	jb	LBB0_9
LBB0_11:
	movq	%r14, %rdi
	callq	_fclose
	movq	%r12, %rdi
	callq	_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax,%r15,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"could not open file \"%s\" for reading: %m"

	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_readfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readfile
_readfile:                              ; @readfile
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_fgetc
Lloh2:
	adrp	x23, _EOF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w21, #0
	mov	w20, #0
	mov	w22, #1
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	mov	w21, #0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w22
	csinc	w8, w22, w20, lt
	cmp	w0, #10
	csel	w22, w8, w22, eq
	cinc	w21, w21, eq
	csinc	w20, wzr, w20, eq
	mov	x0, x19
	bl	_fgetc
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_4
LBB0_5:
	cmp	w20, #0
	cinc	w23, w21, ne
	cmp	w20, w22
	csel	w21, w20, w22, gt
	lsl	w8, w23, #3
	add	w0, w8, #8
	bl	_pg_malloc
	mov	x20, x0
	add	w22, w21, #1
	mov	x0, x22
	bl	_pg_malloc
	mov	x21, x0
	mov	x0, x19
	bl	_rewind
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_fgets
	cmp	x0, #0
	mov	x24, #0
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x24
	mov	x0, x21
	bl	_pg_strdup
	add	x24, x24, #1
	str	x0, [x20, x25, lsl #3]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, x23
	b.lo	LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_fclose
	mov	x0, x21
	bl	_free
	str	xzr, [x20, x24, lsl #3]
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"could not open file \"%s\" for reading: %m"

	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_readfile
.subsections_via_symbols
