	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function do_read
LCPI0_0:
	.long	0                               ## 0x0
	.long	4294967288                      ## 0xfffffff8
	.long	4294967280                      ## 0xfffffff0
	.long	4294967272                      ## 0xffffffe8
LCPI0_1:
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
	.long	4294967264                      ## 0xffffffe0
LCPI0_2:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_3:
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
	.long	4294967232                      ## 0xffffffc0
LCPI0_4:
	.long	4294967200                      ## 0xffffffa0
	.long	4294967200                      ## 0xffffffa0
	.long	4294967200                      ## 0xffffffa0
	.long	4294967200                      ## 0xffffffa0
LCPI0_5:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
LCPI0_6:
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.long	4294967168                      ## 0xffffff80
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_do_read:                               ## @do_read
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rsi), %rax
	movl	4(%rax), %r15d
	imull	(%rax), %r15d
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	shll	$6, %ebx
	orl	$65536, %ebx                    ## imm = 0x10000
	movq	(%rdi), %r13
	callq	_MIO_EMM_BUF_IDX
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_writeq
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.3:
	movq	8(%r12), %rax
	movq	16(%r12), %rdx
	movl	$-1, %r13d
	xorl	%r15d, %r15d
	movdqa	LCPI0_1(%rip), %xmm12           ## xmm12 = [4294967264,4294967264,4294967264,4294967264]
	movdqa	LCPI0_2(%rip), %xmm13           ## xmm13 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_3(%rip), %xmm14           ## xmm14 = [4294967232,4294967232,4294967232,4294967232]
	movdqa	LCPI0_4(%rip), %xmm15           ## xmm15 = [4294967200,4294967200,4294967200,4294967200]
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, (%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_2
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	cmpq	%rdx, %rax
	jb	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_sg_miter_next
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, (%rbx)
	xorl	%eax, %eax
	movdqa	LCPI0_1(%rip), %xmm12           ## xmm12 = [4294967264,4294967264,4294967264,4294967264]
	movdqa	LCPI0_2(%rip), %xmm13           ## xmm13 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_3(%rip), %xmm14           ## xmm14 = [4294967232,4294967232,4294967232,4294967232]
	movdqa	LCPI0_4(%rip), %xmm15           ## xmm15 = [4294967200,4294967200,4294967200,4294967200]
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rbx
	movq	%r12, %rdi
	callq	_MIO_EMM_BUF_DAT
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	_readq
	movdqa	LCPI0_4(%rip), %xmm15           ## xmm15 = [4294967200,4294967200,4294967200,4294967200]
	movdqa	LCPI0_3(%rip), %xmm14           ## xmm14 = [4294967232,4294967232,4294967232,4294967232]
	movdqa	LCPI0_2(%rip), %xmm13           ## xmm13 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_1(%rip), %xmm12           ## xmm12 = [4294967264,4294967264,4294967264,4294967264]
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movl	$56, %r13d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rdx
	cmpq	%rdx, %rax
	jae	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r12), %rsi
	movq	%rax, %rcx
	notq	%rcx
	addq	%rdx, %rcx
	movl	%r13d, %r10d
	shrl	$3, %r10d
	cmpq	%rcx, %r10
	cmovaeq	%rcx, %r10
	incq	%r10
	testq	%rcx, %rcx
	movl	$1, %ecx
	cmoveq	%rcx, %r10
	cmpq	$8, %r10
	jb	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r10d, %r8d
	andl	$1073741816, %r8d               ## imm = 0x3FFFFFF8
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm10               ## xmm10 = xmm0[0,0,0,0]
	paddd	LCPI0_0(%rip), %xmm10
	movd	%r14d, %xmm8
	movd	%r15d, %xmm1
	pshufd	$0, %xmm1, %xmm11               ## xmm11 = xmm1[0,0,0,0]
	leaq	-8(%r8), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r9, %rcx
	andq	$-2, %rcx
	leaq	(%rsi,%rax,4), %rbx
	addq	$48, %rbx
	pxor	%xmm9, %xmm9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm10, %xmm4
	paddd	%xmm12, %xmm4
	pshuflw	$254, %xmm10, %xmm5             ## xmm5 = xmm10[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm6
	psrad	%xmm5, %xmm6
	pshufd	$238, %xmm10, %xmm5             ## xmm5 = xmm10[2,3,2,3]
	pshuflw	$254, %xmm5, %xmm7              ## xmm7 = xmm5[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm1
	psrad	%xmm7, %xmm1
	pblendw	$15, %xmm6, %xmm1               ## xmm1 = xmm6[0,1,2,3],xmm1[4,5,6,7]
	pshuflw	$84, %xmm10, %xmm6              ## xmm6 = xmm10[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm7
	psrad	%xmm6, %xmm7
	pshuflw	$84, %xmm5, %xmm5               ## xmm5 = xmm5[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm6
	psrad	%xmm5, %xmm6
	pblendw	$15, %xmm7, %xmm6               ## xmm6 = xmm7[0,1,2,3],xmm6[4,5,6,7]
	pblendw	$204, %xmm1, %xmm6              ## xmm6 = xmm6[0,1],xmm1[2,3],xmm6[4,5],xmm1[6,7]
	pshuflw	$254, %xmm4, %xmm1              ## xmm1 = xmm4[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm5
	psrad	%xmm1, %xmm5
	pshufd	$238, %xmm4, %xmm1              ## xmm1 = xmm4[2,3,2,3]
	pshuflw	$254, %xmm1, %xmm7              ## xmm7 = xmm1[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm0
	psrad	%xmm7, %xmm0
	pblendw	$15, %xmm5, %xmm0               ## xmm0 = xmm5[0,1,2,3],xmm0[4,5,6,7]
	pshuflw	$84, %xmm4, %xmm4               ## xmm4 = xmm4[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm5
	psrad	%xmm4, %xmm5
	pshuflw	$84, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm4
	psrad	%xmm1, %xmm4
	pblendw	$15, %xmm5, %xmm4               ## xmm4 = xmm5[0,1,2,3],xmm4[4,5,6,7]
	pblendw	$204, %xmm0, %xmm4              ## xmm4 = xmm4[0,1],xmm0[2,3],xmm4[4,5],xmm0[6,7]
	pand	%xmm13, %xmm6
	pand	%xmm13, %xmm4
	movdqu	%xmm6, -48(%rbx,%rdi,4)
	movdqa	%xmm10, %xmm0
	paddd	%xmm14, %xmm0
	pshuflw	$254, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm5
	psrad	%xmm1, %xmm5
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pshuflw	$254, %xmm1, %xmm6              ## xmm6 = xmm1[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm7
	psrad	%xmm6, %xmm7
	movdqu	%xmm4, -32(%rbx,%rdi,4)
	movdqa	%xmm10, %xmm4
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm6
	psrad	%xmm0, %xmm6
	paddd	%xmm15, %xmm4
	pshuflw	$84, %xmm1, %xmm0               ## xmm0 = xmm1[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm1
	psrad	%xmm0, %xmm1
	pblendw	$15, %xmm5, %xmm7               ## xmm7 = xmm5[0,1,2,3],xmm7[4,5,6,7]
	pshuflw	$254, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm5
	psrad	%xmm0, %xmm5
	pshufd	$238, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,2,3]
	pshuflw	$254, %xmm0, %xmm3              ## xmm3 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm2
	psrad	%xmm3, %xmm2
	pblendw	$15, %xmm6, %xmm1               ## xmm1 = xmm6[0,1,2,3],xmm1[4,5,6,7]
	pshuflw	$84, %xmm4, %xmm3               ## xmm3 = xmm4[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm4
	psrad	%xmm3, %xmm4
	pblendw	$204, %xmm7, %xmm1              ## xmm1 = xmm1[0,1],xmm7[2,3],xmm1[4,5],xmm7[6,7]
	movdqa	LCPI0_5(%rip), %xmm6            ## xmm6 = [2,2,2,2]
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm3
	psrad	%xmm0, %xmm3
	pblendw	$15, %xmm5, %xmm2               ## xmm2 = xmm5[0,1,2,3],xmm2[4,5,6,7]
	pblendw	$15, %xmm4, %xmm3               ## xmm3 = xmm4[0,1,2,3],xmm3[4,5,6,7]
	pblendw	$204, %xmm2, %xmm3              ## xmm3 = xmm3[0,1],xmm2[2,3],xmm3[4,5],xmm2[6,7]
	pand	%xmm13, %xmm1
	pand	%xmm13, %xmm3
	movdqu	%xmm1, -16(%rbx,%rdi,4)
	movdqu	%xmm3, (%rbx,%rdi,4)
	paddd	%xmm6, %xmm8
	paddd	%xmm6, %xmm9
	addq	$16, %rdi
	paddd	LCPI0_6(%rip), %xmm10
	addq	$-2, %rcx
	jne	LBB0_16
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	pxor	%xmm9, %xmm9
	xorl	%edi, %edi
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	(,%r8,8), %ecx
	testb	$1, %r9b
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movdqa	%xmm10, %xmm0
	paddd	%xmm12, %xmm0
	pshuflw	$254, %xmm10, %xmm1             ## xmm1 = xmm10[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm2
	psrad	%xmm1, %xmm2
	pshufd	$238, %xmm10, %xmm1             ## xmm1 = xmm10[2,3,2,3]
	pshuflw	$254, %xmm1, %xmm3              ## xmm3 = xmm1[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm4
	psrad	%xmm3, %xmm4
	pblendw	$15, %xmm2, %xmm4               ## xmm4 = xmm2[0,1,2,3],xmm4[4,5,6,7]
	pshuflw	$84, %xmm10, %xmm2              ## xmm2 = xmm10[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm3
	psrad	%xmm2, %xmm3
	pshuflw	$84, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm2
	psrad	%xmm1, %xmm2
	pblendw	$15, %xmm3, %xmm2               ## xmm2 = xmm3[0,1,2,3],xmm2[4,5,6,7]
	pshuflw	$254, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm3
	psrad	%xmm1, %xmm3
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pshuflw	$254, %xmm1, %xmm5              ## xmm5 = xmm1[2,3,3,3,4,5,6,7]
	movdqa	%xmm11, %xmm6
	psrad	%xmm5, %xmm6
	addq	%rax, %rdi
	pblendw	$204, %xmm4, %xmm2              ## xmm2 = xmm2[0,1],xmm4[2,3],xmm2[4,5],xmm4[6,7]
	pshuflw	$84, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,1,1,4,5,6,7]
	movdqa	%xmm11, %xmm4
	psrad	%xmm0, %xmm4
	pblendw	$15, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,2,3],xmm6[4,5,6,7]
	pshuflw	$84, %xmm1, %xmm0               ## xmm0 = xmm1[0,1,1,1,4,5,6,7]
	psrad	%xmm0, %xmm11
	pblendw	$15, %xmm4, %xmm11              ## xmm11 = xmm4[0,1,2,3],xmm11[4,5,6,7]
	pblendw	$204, %xmm6, %xmm11             ## xmm11 = xmm11[0,1],xmm6[2,3],xmm11[4,5],xmm6[6,7]
	pand	%xmm13, %xmm2
	pand	%xmm13, %xmm11
	movdqu	%xmm2, (%rsi,%rdi,4)
	movdqu	%xmm11, 16(%rsi,%rdi,4)
	pcmpeqd	%xmm0, %xmm0
	psubd	%xmm0, %xmm8
	psubd	%xmm0, %xmm9
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	paddd	%xmm9, %xmm8
	subl	%ecx, %r13d
	addq	%r8, %rax
	pshufd	$238, %xmm8, %xmm0              ## xmm0 = xmm8[2,3,2,3]
	paddd	%xmm8, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r14d
	cmpq	%r8, %r10
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r13d, %ecx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	sarl	%cl, %edi
	movzbl	%dil, %edi
	movl	%edi, (%rsi,%rax,4)
	incl	%r14d
	incq	%rax
	leal	-8(%rcx), %r13d
	cmpq	%rdx, %rax
	jae	LBB0_4
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	cmpl	$7, %ecx
	movl	%r13d, %ecx
	ja	LBB0_21
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_2:
	movq	%rbx, %rdi
	callq	_sg_miter_stop
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r14d, 8(%rax)
	movq	$0, 16(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function do_read
lCPI0_0:
	.long	0                               ; 0x0
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.long	4294967272                      ; 0xffffffe8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_do_read:                               ; @do_read
	.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	x19, x1
	mov	x21, x0
	mov	x20, x0
	ldr	x24, [x20], #8
	ldr	x8, [x1]
	ldp	w9, w8, [x8]
	mul	w23, w8, w9
	lsl	w8, w2, #6
	orr	w22, w8, #0x10000
	bl	_MIO_EMM_BUF_IDX
	add	x1, x0, x24
	mov	x0, x22
	bl	_writeq
	cmp	w23, #1
	b.lt	LBB0_18
; %bb.1:
	mov	w22, #0
	mov	w25, #0
	ldp	x12, x8, [x21, #8]
	mov	w26, #-1
	mov	w24, #1
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	movi.4s	v18, #32
	movi.4s	v19, #64
	movi.4s	v20, #96
	movi.2d	v21, #0x0000ff000000ff
	movi.4s	v22, #1
	mvni.4s	v23, #127
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [x20]
	mov	x12, x10
	mov	x26, x11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, w23
	b.ge	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	cmp	x12, x8
	b.lo	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_sg_miter_next
	cbz	w0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, #0
	str	xzr, [x20]
	movi.4s	v18, #32
	movi.4s	v19, #64
	movi.4s	v20, #96
	movi.2d	v21, #0x0000ff000000ff
	movi.4s	v22, #1
	mvni.4s	v23, #127
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbz	w26, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x21]
	mov	x0, x21
	bl	_MIO_EMM_BUF_DAT
	add	x0, x0, x22
	bl	_readq
	mvni.4s	v23, #127
	movi.4s	v22, #1
	movi.2d	v21, #0x0000ff000000ff
	movi.4s	v20, #96
	movi.4s	v19, #64
	movi.4s	v18, #32
	mov	x22, x0
	ldr	x12, [x21, #8]
	mov	w26, #56
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #16]
	cmp	x12, x8
	b.hs	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #24]
	mvn	x10, x12
	lsr	w11, w26, #3
	add	x10, x8, x10
	cmp	x11, x10
	csel	x11, x11, x10, lo
	cmp	x10, #0
	csinc	x13, x24, x11, eq
	cmp	x13, #16
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x26
	mov	x10, x12
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x14, x13, #0x3ffffff0
	sub	w11, w26, w14, lsl #3
	add	x10, x12, x14
	dup.4s	v0, w26
	ldr	q1, [sp]                        ; 16-byte Folded Reload
	add.4s	v1, v0, v1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w25
	dup.4s	v2, w22
	add	x12, x9, x12, lsl #2
	add	x12, x12, #32
	movi.2d	v3, #0000000000000000
	mov	x15, x14
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	neg.4s	v6, v1
	sshl.4s	v6, v2, v6
	sub.4s	v7, v18, v1
	sshl.4s	v7, v2, v7
	sub.4s	v16, v19, v1
	sshl.4s	v16, v2, v16
	sub.4s	v17, v20, v1
	sshl.4s	v17, v2, v17
	and.16b	v6, v6, v21
	and.16b	v7, v7, v21
	and.16b	v16, v16, v21
	and.16b	v17, v17, v21
	stp	q6, q7, [x12, #-32]
	stp	q16, q17, [x12], #64
	add.4s	v0, v0, v22
	add.4s	v3, v3, v22
	add.4s	v4, v4, v22
	add.4s	v5, v5, v22
	add.4s	v1, v1, v23
	subs	x15, x15, #16
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	add.4s	v0, v5, v0
	addv.4s	s0, v0
	fmov	w25, s0
	cmp	x13, x14
	b.eq	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, x11
LBB0_16:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w11, w22, w12
	and	w11, w11, #0xff
	str	w11, [x9, x10, lsl #2]
	add	w25, w25, #1
	add	x10, x10, #1
	sub	w11, w12, #8
	cmp	x10, x8
	b.hs	LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w12, #7
	mov	x12, x11
	b.hi	LBB0_16
	b	LBB0_2
LBB0_18:
	mov	w25, #0
LBB0_19:
	mov	x0, x20
	bl	_sg_miter_stop
	ldr	x8, [x19]
	str	w25, [x8, #8]
	str	xzr, [x8, #16]
	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 AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_read
.subsections_via_symbols
