	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function readfile
LCPI0_0:
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.byte	10                              ## 0xa
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	$0, (%rsi)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_26
## %bb.1:
	movl	%eax, %ebx
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	-56(%rbp), %r13d
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	leal	1(%r13), %r15d
	movl	%r15d, %edi
	callq	_pg_malloc
	movq	%rax, %r12
	movl	%ebx, %edi
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_read
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_close
	cmpl	%r13d, %r15d
	jne	LBB0_28
## %bb.6:
	movl	$0, %ebx
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.7:
	cmpl	$8, %r13d
	jae	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_2:
	movl	%ebx, %edi
	callq	_close
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_4:
	movl	%ebx, %edi
	callq	_close
	movl	$8, %edi
	callq	_pg_malloc
	movq	$0, (%rax)
	jmp	LBB0_27
LBB0_28:
	movq	%r12, %rdi
	callq	_free
	xorl	%r12d, %r12d
	jmp	LBB0_26
LBB0_9:
	movl	%r13d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.11:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <10,10,10,10,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [1,1,1,1]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movd	(%r12,%rdx), %xmm4              ## xmm4 = mem[0],zero,zero,zero
	movd	4(%r12,%rdx), %xmm5             ## xmm5 = mem[0],zero,zero,zero
	pcmpeqb	%xmm2, %xmm4
	pmovzxbd	%xmm4, %xmm4                    ## xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero,xmm4[2],zero,zero,zero,xmm4[3],zero,zero,zero
	pand	%xmm3, %xmm4
	paddd	%xmm0, %xmm4
	pcmpeqb	%xmm2, %xmm5
	pmovzxbd	%xmm5, %xmm5                    ## xmm5 = xmm5[0],zero,zero,zero,xmm5[1],zero,zero,zero,xmm5[2],zero,zero,zero,xmm5[3],zero,zero,zero
	pand	%xmm3, %xmm5
	paddd	%xmm1, %xmm5
	movd	8(%r12,%rdx), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	movd	12(%r12,%rdx), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	pcmpeqb	%xmm2, %xmm0
	pmovzxbd	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
	pand	%xmm3, %xmm0
	paddd	%xmm4, %xmm0
	pcmpeqb	%xmm2, %xmm1
	pmovzxbd	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,zero,zero,xmm1[1],zero,zero,zero,xmm1[2],zero,zero,zero,xmm1[3],zero,zero,zero
	pand	%xmm3, %xmm1
	paddd	%xmm5, %xmm1
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
LBB0_13:
	testb	$1, %cl
	je	LBB0_15
## %bb.14:
	movd	(%r12,%rdx), %xmm2              ## xmm2 = mem[0],zero,zero,zero
	movd	4(%r12,%rdx), %xmm3             ## xmm3 = mem[0],zero,zero,zero
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = <10,10,10,10,u,u,u,u,u,u,u,u,u,u,u,u>
	pcmpeqb	%xmm4, %xmm2
	pmovzxbd	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero,xmm2[2],zero,zero,zero,xmm2[3],zero,zero,zero
	movdqa	LCPI0_1(%rip), %xmm5            ## xmm5 = [1,1,1,1]
	pand	%xmm5, %xmm2
	paddd	%xmm2, %xmm0
	pcmpeqb	%xmm4, %xmm3
	pmovzxbd	%xmm3, %xmm2                    ## xmm2 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero,xmm3[2],zero,zero,zero,xmm3[3],zero,zero,zero
	pand	%xmm5, %xmm2
	paddd	%xmm2, %xmm1
LBB0_15:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%r13, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	cmpb	$10, (%r12,%rax)
	sete	%cl
	addl	%ecx, %ebx
	incq	%rax
	cmpq	%rax, %r13
	jne	LBB0_16
LBB0_17:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leal	8(,%rbx,8), %edi
	callq	_pg_malloc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %r12
	movl	%ebx, (%r14)
	testl	%r13d, %r13d
	movl	$0, %ecx
	jle	LBB0_25
## %bb.18:
	xorl	%r15d, %r15d
	xorl	%ecx, %ecx
	movq	%rdi, %r14
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r15
	cmpq	%r13, %r15
	je	LBB0_25
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%rdi,%r15)
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ecx, %r12d
	leaq	(%rdi,%r15), %rbx
	subq	%r14, %rbx
	leal	1(%rbx), %edi
	callq	_pg_malloc
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	leal	-1(%rbx), %eax
	xorl	%ecx, %ecx
	cmpb	$13, (%r13,%rax)
	sete	%cl
	subq	%rcx, %rbx
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movl	%r12d, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movslq	%ebx, %rax
	movb	$0, (%r13,%rax)
	movslq	%ecx, %rax
	incl	%ecx
	movq	%r13, (%r12,%rax,8)
	leaq	(%rdi,%r15), %r14
	incq	%r14
	incq	%r15
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %r15
	jne	LBB0_19
LBB0_25:
	movslq	%ecx, %rax
	movq	$0, (%r12,%rax,8)
	callq	_free
LBB0_26:
	movq	%r12, %rax
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
	str	wzr, [x1]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	_open
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x21, x0
	add	x1, sp, #8
	bl	_fstat
	tbnz	x0, #63, LBB0_8
; %bb.2:
	ldr	w24, [sp, #8]
	cbz	w24, LBB0_9
; %bb.3:
	add	w22, w24, #1
	mov	x0, x22
	bl	_pg_malloc
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_read
	mov	x22, x0
	mov	x0, x21
	bl	_close
	cmp	w22, w24
	b.ne	LBB0_10
; %bb.4:
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.5:
	cmp	w24, #8
	b.hs	LBB0_12
; %bb.6:
	mov	x8, #0
	mov	w22, #0
	b	LBB0_21
LBB0_7:
	mov	x21, #0
	b	LBB0_32
LBB0_8:
	mov	x0, x21
	bl	_close
	mov	x21, #0
	b	LBB0_32
LBB0_9:
	mov	x0, x21
	bl	_close
	mov	w0, #8
	bl	_pg_malloc
	str	xzr, [x0]
	b	LBB0_33
LBB0_10:
	mov	x0, x19
	bl	_free
	mov	x21, #0
	b	LBB0_32
LBB0_11:
	mov	w22, #0
	b	LBB0_23
LBB0_12:
	cmp	w24, #32
	b.hs	LBB0_14
; %bb.13:
	mov	w22, #0
	mov	x8, #0
	b	LBB0_18
LBB0_14:
	movi.2d	v0, #0000000000000000
	and	x8, x24, #0xffffffe0
	movi.16b	v1, #10
	add	x9, x19, #16
	movi.4s	v2, #1
	mov	x10, x8
	movi.2d	v4, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	q18, q19, [x9, #-16]
	cmeq.16b	v18, v18, v1
	ushll.8h	v20, v18, #0
	ushll.4s	v21, v20, #0
	and.16b	v21, v21, v2
	ushll2.4s	v20, v20, #0
	and.16b	v20, v20, v2
	ushll2.8h	v18, v18, #0
	ushll.4s	v22, v18, #0
	and.16b	v22, v22, v2
	ushll2.4s	v18, v18, #0
	and.16b	v18, v18, v2
	cmeq.16b	v19, v19, v1
	ushll.8h	v23, v19, #0
	ushll.4s	v24, v23, #0
	and.16b	v24, v24, v2
	ushll2.4s	v23, v23, #0
	and.16b	v23, v23, v2
	ushll2.8h	v19, v19, #0
	ushll.4s	v25, v19, #0
	and.16b	v25, v25, v2
	ushll2.4s	v19, v19, #0
	and.16b	v19, v19, v2
	add.4s	v5, v5, v18
	add.4s	v3, v3, v22
	add.4s	v4, v4, v20
	add.4s	v0, v0, v21
	add.4s	v17, v17, v19
	add.4s	v7, v7, v25
	add.4s	v16, v16, v23
	add.4s	v6, v6, v24
	add	x9, x9, #32
	subs	x10, x10, #32
	b.ne	LBB0_15
; %bb.16:
	add.4s	v1, v16, v4
	add.4s	v2, v17, v5
	add.4s	v0, v6, v0
	add.4s	v3, v7, v3
	add.4s	v0, v0, v3
	add.4s	v1, v1, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w22, s0
	cmp	x8, x24
	b.eq	LBB0_23
; %bb.17:
	tst	x24, #0x18
	b.eq	LBB0_21
LBB0_18:
	mov	x10, x8
	and	x8, x24, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w22
	add	x9, x19, x10
	sub	x10, x10, x8
	movi.8b	v2, #10
	movi.4s	v3, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x9], #8
	cmeq.8b	v4, v4, v2
	ushll.8h	v4, v4, #0
	ushll.4s	v5, v4, #0
	and.16b	v5, v5, v3
	ushll2.4s	v4, v4, #0
	and.16b	v4, v4, v3
	add.4s	v0, v0, v4
	add.4s	v1, v1, v5
	adds	x10, x10, #8
	b.ne	LBB0_19
; %bb.20:
	add.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w22, s0
	cmp	x8, x24
	b.eq	LBB0_23
LBB0_21:
	add	x9, x19, x8
	sub	x8, x24, x8
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9], #1
	cmp	w10, #10
	cinc	w22, w22, eq
	subs	x8, x8, #1
	b.ne	LBB0_22
LBB0_23:
	lsl	w8, w22, #3
	add	w0, w8, #8
	bl	_pg_malloc
	mov	x21, x0
	str	w22, [x20]
	cmp	w24, #1
	b.lt	LBB0_30
; %bb.24:
	mov	x25, #0
	mov	w26, #0
	mov	x20, x19
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x25, x25, #1
	cmp	x25, x24
	b.eq	LBB0_31
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x25
	ldrb	w9, [x8]
	cmp	w9, #10
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	sub	x22, x8, x20
	add	w0, w22, #1
	bl	_pg_malloc
	mov	x23, x0
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	cmp	w22, #1
	b.lt	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	sub	w8, w22, #1
	ldrb	w8, [x23, w8, uxtw]
	cmp	w8, #13
	cset	w8, eq
	sub	x22, x22, x8
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
	strb	wzr, [x23, w22, sxtw]
	str	x23, [x21, w26, sxtw #3]
	add	w26, w26, #1
	add	x25, x25, #1
	add	x20, x19, x25
	cmp	x25, x24
	b.ne	LBB0_26
	b	LBB0_31
LBB0_30:
	mov	w26, #0
LBB0_31:
	str	xzr, [x21, w26, sxtw #3]
	mov	x0, x19
	bl	_free
LBB0_32:
	mov	x0, x21
LBB0_33:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.no_dead_strip	_readfile
.subsections_via_symbols
