	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function psp_read_viewport
LCPI0_0:
	.byte	2                               ## 0x2
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	6                               ## 0x6
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	10                              ## 0xa
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	14                              ## 0xe
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
LCPI0_1:
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	5                               ## 0x5
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	9                               ## 0x9
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	13                              ## 0xd
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
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	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
LCPI0_4:
	.long	248                             ## 0xf8
	.long	248                             ## 0xf8
	.long	248                             ## 0xf8
	.long	248                             ## 0xf8
LCPI0_5:
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
	.long	4294967288                      ## 0xfffffff8
LCPI0_6:
	.long	252                             ## 0xfc
	.long	252                             ## 0xfc
	.long	252                             ## 0xfc
	.long	252                             ## 0xfc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_psp_read_viewport:                     ## @psp_read_viewport
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_PSP_DISPLAY_SETBUF_NEXTFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-136(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-140(%rbp), %rdx
	callq	_sceDisplayGetFrameBuf
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	xorl	%eax, %eax
	testl	%r8d, %r8d
	movl	$0, %r10d
	cmovgl	%r8d, %r10d
	testl	%edx, %edx
	movl	$0, %r9d
	cmovgl	%edx, %r9d
	addl	8(%rbx), %r8d
	movl	-44(%rbp), %ecx
	cmpl	%ecx, %r8d
	cmovgel	%ecx, %r8d
	addl	12(%rbx), %edx
	movq	_SCEGU_SCR_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	cmovgel	%esi, %edx
	movl	-140(%rbp), %edi
	addl	$-128, %edi
	cmpl	$3, %edi
	ja	LBB0_96
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdi,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_2:
	movl	$1, %eax
	cmpl	%r9d, %edx
	jle	LBB0_96
## %bb.3:
	movq	-136(%rbp), %rsi
	movl	%r10d, %ebx
	leaq	(%rsi,%rbx,4), %r11
	movl	%r10d, %r14d
	notl	%r14d
	addl	%r8d, %r14d
	leaq	(%r14,%r14,2), %rdi
	addq	$3, %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	addq	%r14, %rbx
	leaq	(%rsi,%rbx,4), %r15
	addq	$4, %r15
	leaq	1(%r14), %rsi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	andq	$-4, %rsi
	leaq	-4(%rsi), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	shrq	$2, %rdi
	incq	%rdi
	leaq	(%rsi,%rsi,2), %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	addl	%r10d, %esi
	movl	%esi, -124(%rbp)                ## 4-byte Spill
	movq	%rdi, %rsi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %esi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,128,128,128,6,128,128,128,10,128,128,128,14,128,128,128]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [1,128,128,128,5,128,128,128,9,128,128,128,13,128,128,128]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movq	%r11, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
	decl	%edx
	cmpl	%r8d, %r10d
	jge	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %edi
	imull	%edx, %edi
	movslq	%edi, %rbx
	leaq	(%r11,%rbx,4), %r13
	cmpl	$3, %r14d
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%rbx,4), %rdi
	cmpq	%rdi, %r12
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	(%r12,%rdi,4), %rdi
	cmpq	%rdi, %r13
	jae	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r10d, %edi
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %ecx
	subl	%edi, %ecx
	leal	1(%rdi), %ebx
	testb	$1, %cl
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movzbl	2(%r13), %ecx
	movl	%ecx, (%r12)
	movzbl	1(%r13), %ecx
	movl	%ecx, 4(%r12)
	movzbl	(%r13), %ecx
	movl	%ecx, 8(%r12)
	addq	$12, %r12
	addq	$4, %r13
	movl	%ebx, %edi
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ebx, %r8d
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %ebx
	subl	%edi, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	2(%r13,%rdi,4), %ecx
	movl	%ecx, (%r12)
	movzbl	1(%r13,%rdi,4), %ecx
	movl	%ecx, 4(%r12)
	movzbl	(%r13,%rdi,4), %ecx
	movl	%ecx, 8(%r12)
	movzbl	6(%r13,%rdi,4), %ecx
	movl	%ecx, 12(%r12)
	movzbl	5(%r13,%rdi,4), %ecx
	movl	%ecx, 16(%r12)
	movzbl	4(%r13,%rdi,4), %ecx
	movl	%ecx, 20(%r12)
	addq	$24, %r12
	addq	$2, %rdi
	cmpl	%edi, %ebx
	jne	LBB0_21
	jmp	LBB0_22
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rbx
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	imull	%esi, %ecx
	movslq	%ecx, %rcx
	leaq	(%r11,%rcx,4), %r15
	addq	$16, %r15
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	%r12, %r14
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%r15,%rdi,4), %xmm3
	movdqa	%xmm3, %xmm4
	pshufb	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	pshufb	%xmm1, %xmm5
	pand	%xmm2, %xmm3
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pshufd	$68, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,0,1]
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 32(%r14)
	movdqu	%xmm7, 16(%r14)
	movdqu	%xmm6, (%r14)
	movdqu	(%r15,%rdi,4), %xmm3
	movdqa	%xmm3, %xmm4
	pshufb	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	pshufb	%xmm1, %xmm5
	pand	%xmm2, %xmm3
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pshufd	$68, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,0,1]
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 80(%r14)
	movdqu	%xmm7, 64(%r14)
	movdqu	%xmm6, 48(%r14)
	addq	$8, %rdi
	addq	$96, %r14
	addq	$-2, %r11
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movdqu	(%r13,%rdi,4), %xmm3
	movdqa	%xmm3, %xmm4
	pshufb	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	pshufb	%xmm1, %xmm5
	pand	%xmm2, %xmm3
	leaq	(%rdi,%rdi,2), %rcx
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pshufd	$68, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,0,1]
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 32(%r12,%rcx,4)
	movdqu	%xmm7, 16(%r12,%rcx,4)
	movdqu	%xmm6, (%r12,%rcx,4)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %r12
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -96(%rbp)                 ## 8-byte Folded Reload
	movl	$1, %eax
	movq	-112(%rbp), %r11                ## 8-byte Reload
	movq	%rbx, %r14
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jne	LBB0_16
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r9d, %edx
	jle	LBB0_96
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ecx
	decl	%esi
	jmp	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r13,%rcx,4), %r13
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, %edi
	jmp	LBB0_17
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_14
	jmp	LBB0_15
LBB0_25:
	movl	$1, %eax
	cmpl	%r9d, %edx
	jle	LBB0_96
## %bb.26:
	movq	-136(%rbp), %rax
	movl	%r10d, %esi
	leaq	(%rax,%rsi,4), %r14
	movl	%r10d, %r15d
	notl	%r15d
	addl	%r8d, %r15d
	leaq	(%r15,%r15,2), %rdi
	addq	$3, %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	addq	%r15, %rsi
	leaq	(%rax,%rsi,4), %r11
	addq	$4, %r11
	leaq	1(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %r13
	andq	$-4, %r13
	leaq	-4(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	shrq	$2, %rsi
	incq	%rsi
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(%r13,%r10), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	andq	$-2, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %ebx
	movdqa	LCPI0_4(%rip), %xmm0            ## xmm0 = [248,248,248,248]
	movq	%r11, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	decl	%edx
	cmpl	%r8d, %r10d
	jge	LBB0_45
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	%ecx, %eax
	imull	%edx, %eax
	movslq	%eax, %rsi
	leaq	(%r14,%rsi,4), %rax
	cmpl	$3, %r15d
	jb	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	(%r11,%rsi,4), %rsi
	cmpq	%rsi, %r12
	jae	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	leaq	(%r12,%rsi,4), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_33
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r10d, %edi
LBB0_40:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	%r8d, %ecx
	subl	%edi, %ecx
	leal	1(%rdi), %esi
	testb	$1, %cl
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	(%rax), %ecx
	shrl	$7, %ecx
	andl	$248, %ecx
	movl	%ecx, (%r12)
	movl	(%rax), %ecx
	shrl	$2, %ecx
	andl	$248, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax), %ecx
	shll	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	addq	$12, %r12
	addq	$4, %rax
	movl	%esi, %edi
LBB0_42:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpl	%esi, %r8d
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	%r8d, %esi
	subl	%edi, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %ecx
	shrl	$7, %ecx
	andl	$248, %ecx
	movl	%ecx, (%r12)
	movl	(%rax,%rdi,4), %ecx
	shrl	$2, %ecx
	andl	$248, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax,%rdi,4), %ecx
	shll	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shrl	$7, %ecx
	andl	$248, %ecx
	movl	%ecx, 12(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shrl	$2, %ecx
	andl	$248, %ecx
	movl	%ecx, 16(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shll	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 20(%r12)
	addq	$24, %r12
	addq	$2, %rdi
	cmpl	%edi, %esi
	jne	LBB0_44
	jmp	LBB0_45
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_47
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	imull	%ebx, %ecx
	movslq	%ecx, %rsi
	leaq	(%r14,%rsi,4), %r11
	addq	$16, %r11
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %r13
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%r11,%rdi,4), %xmm1
	movdqa	%xmm1, %xmm2
	psrld	$7, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	psrld	$2, %xmm3
	pand	%xmm0, %xmm3
	pslld	$3, %xmm1
	pand	%xmm0, %xmm1
	pshufd	$80, %xmm3, %xmm4               ## xmm4 = xmm3[0,0,1,1]
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,0,1]
	pblendw	$207, %xmm5, %xmm4              ## xmm4 = xmm5[0,1,2,3],xmm4[4,5],xmm5[6,7]
	pshufd	$165, %xmm3, %xmm5              ## xmm5 = xmm3[1,1,2,2]
	pblendw	$48, %xmm2, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm2[4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm5               ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5,6,7]
	shufps	$255, %xmm3, %xmm2              ## xmm2 = xmm2[3,3],xmm3[3,3]
	pshufd	$238, %xmm1, %xmm1              ## xmm1 = xmm1[2,3,2,3]
	pblendw	$60, %xmm2, %xmm1               ## xmm1 = xmm1[0,1],xmm2[2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, 32(%r13)
	movdqu	%xmm5, 16(%r13)
	movdqu	%xmm4, (%r13)
	movdqu	(%r11,%rdi,4), %xmm1
	movdqa	%xmm1, %xmm2
	psrld	$7, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	psrld	$2, %xmm3
	pand	%xmm0, %xmm3
	pslld	$3, %xmm1
	pand	%xmm0, %xmm1
	pshufd	$80, %xmm3, %xmm4               ## xmm4 = xmm3[0,0,1,1]
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,0,1]
	pblendw	$207, %xmm5, %xmm4              ## xmm4 = xmm5[0,1,2,3],xmm4[4,5],xmm5[6,7]
	pshufd	$165, %xmm3, %xmm5              ## xmm5 = xmm3[1,1,2,2]
	pblendw	$48, %xmm2, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm2[4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm5               ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5,6,7]
	shufps	$255, %xmm3, %xmm2              ## xmm2 = xmm2[3,3],xmm3[3,3]
	pshufd	$238, %xmm1, %xmm1              ## xmm1 = xmm1[2,3,2,3]
	pblendw	$60, %xmm2, %xmm1               ## xmm1 = xmm1[0,1],xmm2[2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, 80(%r13)
	movdqu	%xmm5, 64(%r13)
	movdqu	%xmm4, 48(%r13)
	addq	$8, %rdi
	addq	$96, %r13
	addq	$-2, %rsi
	jne	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_27 Depth=1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_27 Depth=1
	movdqu	(%rax,%rdi,4), %xmm1
	movdqa	%xmm1, %xmm2
	psrld	$7, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	psrld	$2, %xmm3
	pand	%xmm0, %xmm3
	pslld	$3, %xmm1
	pand	%xmm0, %xmm1
	leaq	(%rdi,%rdi,2), %rsi
	pshufd	$80, %xmm3, %xmm4               ## xmm4 = xmm3[0,0,1,1]
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,0,1]
	pblendw	$207, %xmm5, %xmm4              ## xmm4 = xmm5[0,1,2,3],xmm4[4,5],xmm5[6,7]
	pshufd	$165, %xmm3, %xmm5              ## xmm5 = xmm3[1,1,2,2]
	pblendw	$48, %xmm2, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm2[4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm5               ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5,6,7]
	shufps	$255, %xmm3, %xmm2              ## xmm2 = xmm2[3,3],xmm3[3,3]
	pshufd	$238, %xmm1, %xmm1              ## xmm1 = xmm1[2,3,2,3]
	pblendw	$60, %xmm2, %xmm1               ## xmm1 = xmm1[0,1],xmm2[2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, 32(%r12,%rsi,4)
	movdqu	%xmm5, 16(%r12,%rsi,4)
	movdqu	%xmm4, (%r12,%rsi,4)
LBB0_38:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r12,%rcx,4), %r12
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	movq	-112(%rbp), %r11                ## 8-byte Reload
	jne	LBB0_39
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_27 Depth=1
	cmpl	%r9d, %edx
	jle	LBB0_95
## %bb.46:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	-44(%rbp), %ecx
	decl	%ebx
	jmp	LBB0_27
LBB0_39:                                ##   in Loop: Header=BB0_27 Depth=1
	leaq	(%rax,%r13,4), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edi
	jmp	LBB0_40
LBB0_47:                                ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edi, %edi
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_37
	jmp	LBB0_38
LBB0_48:
	movl	$1, %eax
	cmpl	%r9d, %edx
	jle	LBB0_96
## %bb.49:
	movq	-136(%rbp), %rax
	movl	%r10d, %esi
	leaq	(%rax,%rsi,4), %r15
	movl	%r10d, %ebx
	notl	%ebx
	addl	%r8d, %ebx
	leaq	(%rbx,%rbx,2), %rdi
	addq	$3, %rdi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	addq	%rbx, %rsi
	leaq	(%rax,%rsi,4), %r13
	addq	$4, %r13
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	leaq	1(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	andq	$-4, %rsi
	leaq	-4(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	shrq	$2, %rdi
	incq	%rdi
	leaq	(%rsi,%rsi,2), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(%rsi,%r10), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	%rdi, %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	andq	$-2, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %ebx
	movl	$240, %r11d
	movdqa	LCPI0_3(%rip), %xmm0            ## xmm0 = [240,240,240,240]
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_50:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_58 Depth 2
                                        ##     Child Loop BB0_67 Depth 2
	decl	%edx
	cmpl	%r8d, %r10d
	jge	LBB0_69
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=1
	movq	%rsi, %r14
	movl	%ecx, %eax
	imull	%edx, %eax
	movslq	%eax, %rsi
	leaq	(%r15,%rsi,4), %rax
	cmpl	$3, -120(%rbp)                  ## 4-byte Folded Reload
	jb	LBB0_52
## %bb.53:                              ##   in Loop: Header=BB0_50 Depth=1
	leaq	(,%rsi,4), %rsi
	addq	%r13, %rsi
	cmpq	%rsi, %r12
	jae	LBB0_56
## %bb.54:                              ##   in Loop: Header=BB0_50 Depth=1
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leaq	(%r12,%rsi,4), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_56
LBB0_52:                                ##   in Loop: Header=BB0_50 Depth=1
	movl	%r10d, %edi
LBB0_63:                                ##   in Loop: Header=BB0_50 Depth=1
	movl	%r8d, %ecx
	subl	%edi, %ecx
	leal	1(%rdi), %esi
	testb	$1, %cl
	je	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_50 Depth=1
	movl	(%rax), %ecx
	shrl	$4, %ecx
	andl	$240, %ecx
	movl	%ecx, (%r12)
	movl	(%rax), %ecx
	andl	%r11d, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax), %ecx
	shll	$4, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	addq	$12, %r12
	addq	$4, %rax
	movl	%esi, %edi
LBB0_65:                                ##   in Loop: Header=BB0_50 Depth=1
	cmpl	%esi, %r8d
	movq	%r14, %rsi
	je	LBB0_69
## %bb.66:                              ##   in Loop: Header=BB0_50 Depth=1
	movl	%r8d, %esi
	subl	%edi, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_67:                                ##   Parent Loop BB0_50 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %ecx
	shrl	$4, %ecx
	andl	$240, %ecx
	movl	%ecx, (%r12)
	movl	(%rax,%rdi,4), %ecx
	andl	%r11d, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax,%rdi,4), %ecx
	shll	$4, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shrl	$4, %ecx
	andl	$240, %ecx
	movl	%ecx, 12(%r12)
	movl	4(%rax,%rdi,4), %ecx
	andl	%r11d, %ecx
	movl	%ecx, 16(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shll	$4, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 20(%r12)
	addq	$24, %r12
	addq	$2, %rdi
	cmpl	%edi, %esi
	jne	LBB0_67
## %bb.68:                              ##   in Loop: Header=BB0_50 Depth=1
	movq	%r14, %rsi
	jmp	LBB0_69
LBB0_56:                                ##   in Loop: Header=BB0_50 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_71
## %bb.57:                              ##   in Loop: Header=BB0_50 Depth=1
	imull	%ebx, %ecx
	movslq	%ecx, %rsi
	leaq	(%r15,%rsi,4), %rsi
	addq	$16, %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, %r15
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_58:                                ##   Parent Loop BB0_50 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rsi,%rdi,4), %xmm1
	movdqa	%xmm1, %xmm2
	psrld	$4, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	pand	%xmm0, %xmm3
	pslld	$4, %xmm1
	pand	%xmm0, %xmm1
	pshufd	$80, %xmm3, %xmm4               ## xmm4 = xmm3[0,0,1,1]
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,0,1]
	pblendw	$207, %xmm5, %xmm4              ## xmm4 = xmm5[0,1,2,3],xmm4[4,5],xmm5[6,7]
	pshufd	$165, %xmm3, %xmm5              ## xmm5 = xmm3[1,1,2,2]
	pblendw	$48, %xmm2, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm2[4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm5               ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5,6,7]
	shufps	$255, %xmm3, %xmm2              ## xmm2 = xmm2[3,3],xmm3[3,3]
	pshufd	$238, %xmm1, %xmm1              ## xmm1 = xmm1[2,3,2,3]
	pblendw	$60, %xmm2, %xmm1               ## xmm1 = xmm1[0,1],xmm2[2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, 32(%r15)
	movdqu	%xmm5, 16(%r15)
	movdqu	%xmm4, (%r15)
	movdqu	(%rsi,%rdi,4), %xmm1
	movdqa	%xmm1, %xmm2
	psrld	$4, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	pand	%xmm0, %xmm3
	pslld	$4, %xmm1
	pand	%xmm0, %xmm1
	pshufd	$80, %xmm3, %xmm4               ## xmm4 = xmm3[0,0,1,1]
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,0,1]
	pblendw	$207, %xmm5, %xmm4              ## xmm4 = xmm5[0,1,2,3],xmm4[4,5],xmm5[6,7]
	pshufd	$165, %xmm3, %xmm5              ## xmm5 = xmm3[1,1,2,2]
	pblendw	$48, %xmm2, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm2[4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm5               ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5,6,7]
	shufps	$255, %xmm3, %xmm2              ## xmm2 = xmm2[3,3],xmm3[3,3]
	pshufd	$238, %xmm1, %xmm1              ## xmm1 = xmm1[2,3,2,3]
	pblendw	$60, %xmm2, %xmm1               ## xmm1 = xmm1[0,1],xmm2[2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, 80(%r15)
	movdqu	%xmm5, 64(%r15)
	movdqu	%xmm4, 48(%r15)
	addq	$8, %rdi
	addq	$96, %r15
	addq	$-2, %r13
	jne	LBB0_58
## %bb.59:                              ##   in Loop: Header=BB0_50 Depth=1
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_61
LBB0_60:                                ##   in Loop: Header=BB0_50 Depth=1
	movdqu	(%rax,%rdi,4), %xmm1
	movdqa	%xmm1, %xmm2
	psrld	$4, %xmm2
	pand	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	pand	%xmm0, %xmm3
	pslld	$4, %xmm1
	pand	%xmm0, %xmm1
	leaq	(%rdi,%rdi,2), %rsi
	pshufd	$80, %xmm3, %xmm4               ## xmm4 = xmm3[0,0,1,1]
	pshufd	$68, %xmm2, %xmm5               ## xmm5 = xmm2[0,1,0,1]
	pblendw	$12, %xmm4, %xmm5               ## xmm5 = xmm5[0,1],xmm4[2,3],xmm5[4,5,6,7]
	pshufd	$68, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,0,1]
	pblendw	$207, %xmm5, %xmm4              ## xmm4 = xmm5[0,1,2,3],xmm4[4,5],xmm5[6,7]
	pshufd	$165, %xmm3, %xmm5              ## xmm5 = xmm3[1,1,2,2]
	pblendw	$48, %xmm2, %xmm5               ## xmm5 = xmm5[0,1,2,3],xmm2[4,5],xmm5[6,7]
	pblendw	$12, %xmm1, %xmm5               ## xmm5 = xmm5[0,1],xmm1[2,3],xmm5[4,5,6,7]
	shufps	$255, %xmm3, %xmm2              ## xmm2 = xmm2[3,3],xmm3[3,3]
	pshufd	$238, %xmm1, %xmm1              ## xmm1 = xmm1[2,3,2,3]
	pblendw	$60, %xmm2, %xmm1               ## xmm1 = xmm1[0,1],xmm2[2,3,4,5],xmm1[6,7]
	movdqu	%xmm1, 32(%r12,%rsi,4)
	movdqu	%xmm5, 16(%r12,%rsi,4)
	movdqu	%xmm4, (%r12,%rsi,4)
LBB0_61:                                ##   in Loop: Header=BB0_50 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r12,%rcx,4), %r12
	movq	%r14, %rsi
	cmpq	%r14, -88(%rbp)                 ## 8-byte Folded Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_62
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_50 Depth=1
	cmpl	%r9d, %edx
	jle	LBB0_95
## %bb.70:                              ##   in Loop: Header=BB0_50 Depth=1
	movl	-44(%rbp), %ecx
	decl	%ebx
	jmp	LBB0_50
LBB0_62:                                ##   in Loop: Header=BB0_50 Depth=1
	leaq	(%rax,%rsi,4), %rax
	movl	-124(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, %edi
	jmp	LBB0_63
LBB0_71:                                ##   in Loop: Header=BB0_50 Depth=1
	xorl	%edi, %edi
	testb	$1, -72(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_60
	jmp	LBB0_61
LBB0_72:
	movl	$1, %eax
	cmpl	%r9d, %edx
	jle	LBB0_96
## %bb.73:
	movq	-136(%rbp), %rax
	movl	%r10d, %esi
	leaq	(%rax,%rsi,4), %r14
	movl	%r10d, %r13d
	notl	%r13d
	addl	%r8d, %r13d
	leaq	3(,%r13,2), %rdi
	addq	%r13, %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	addq	%r13, %rsi
	leaq	(%rax,%rsi,4), %r11
	addq	$4, %r11
	leaq	1(%r13), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rbx
	andq	$-4, %rbx
	leaq	-4(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	shrq	$2, %rsi
	incq	%rsi
	leaq	(%rbx,%rbx,2), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%r10), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	andq	$-2, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%rdx), %r15d
	movdqa	LCPI0_5(%rip), %xmm0            ## xmm0 = [4294967288,4294967288,4294967288,4294967288]
	movdqa	LCPI0_6(%rip), %xmm1            ## xmm1 = [252,252,252,252]
	movdqa	LCPI0_4(%rip), %xmm2            ## xmm2 = [248,248,248,248]
	movq	%r11, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_74:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_82 Depth 2
                                        ##     Child Loop BB0_91 Depth 2
	decl	%edx
	cmpl	%r8d, %r10d
	jge	LBB0_92
## %bb.75:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	%ecx, %eax
	imull	%edx, %eax
	movslq	%eax, %rsi
	leaq	(%r14,%rsi,4), %rax
	cmpl	$3, %r13d
	jb	LBB0_76
## %bb.77:                              ##   in Loop: Header=BB0_74 Depth=1
	leaq	(%r11,%rsi,4), %rsi
	cmpq	%rsi, %r12
	jae	LBB0_80
## %bb.78:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	leaq	(%r12,%rsi,4), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_80
LBB0_76:                                ##   in Loop: Header=BB0_74 Depth=1
	movl	%r10d, %edi
LBB0_87:                                ##   in Loop: Header=BB0_74 Depth=1
	movl	%r8d, %ecx
	subl	%edi, %ecx
	leal	1(%rdi), %esi
	testb	$1, %cl
	je	LBB0_89
## %bb.88:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	(%rax), %ecx
	sarl	$8, %ecx
	andl	$-8, %ecx
	movl	%ecx, (%r12)
	movl	(%rax), %ecx
	shrl	$3, %ecx
	andl	$252, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax), %ecx
	shll	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	addq	$12, %r12
	addq	$4, %rax
	movl	%esi, %edi
LBB0_89:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpl	%esi, %r8d
	je	LBB0_92
## %bb.90:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	%r8d, %esi
	subl	%edi, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_91:                                ##   Parent Loop BB0_74 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %ecx
	sarl	$8, %ecx
	andl	$-8, %ecx
	movl	%ecx, (%r12)
	movl	(%rax,%rdi,4), %ecx
	shrl	$3, %ecx
	andl	$252, %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax,%rdi,4), %ecx
	shll	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	movl	4(%rax,%rdi,4), %ecx
	sarl	$8, %ecx
	andl	$-8, %ecx
	movl	%ecx, 12(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shrl	$3, %ecx
	andl	$252, %ecx
	movl	%ecx, 16(%r12)
	movl	4(%rax,%rdi,4), %ecx
	shll	$3, %ecx
	movzbl	%cl, %ecx
	movl	%ecx, 20(%r12)
	addq	$24, %r12
	addq	$2, %rdi
	cmpl	%edi, %esi
	jne	LBB0_91
	jmp	LBB0_92
LBB0_80:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_94
## %bb.81:                              ##   in Loop: Header=BB0_74 Depth=1
	imull	%r15d, %ecx
	movslq	%ecx, %rsi
	leaq	(%r14,%rsi,4), %r11
	addq	$16, %r11
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_82:                                ##   Parent Loop BB0_74 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%r11,%rdi,4), %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$8, %xmm4
	pand	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	psrld	$3, %xmm5
	pand	%xmm1, %xmm5
	pslld	$3, %xmm3
	pand	%xmm2, %xmm3
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pshufd	$68, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,0,1]
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 32(%rbx)
	movdqu	%xmm7, 16(%rbx)
	movdqu	%xmm6, (%rbx)
	movdqu	(%r11,%rdi,4), %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$8, %xmm4
	pand	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	psrld	$3, %xmm5
	pand	%xmm1, %xmm5
	pslld	$3, %xmm3
	pand	%xmm2, %xmm3
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pshufd	$68, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,0,1]
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 80(%rbx)
	movdqu	%xmm7, 64(%rbx)
	movdqu	%xmm6, 48(%rbx)
	addq	$8, %rdi
	addq	$96, %rbx
	addq	$-2, %rsi
	jne	LBB0_82
## %bb.83:                              ##   in Loop: Header=BB0_74 Depth=1
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_85
LBB0_84:                                ##   in Loop: Header=BB0_74 Depth=1
	movdqu	(%rax,%rdi,4), %xmm3
	movdqa	%xmm3, %xmm4
	psrad	$8, %xmm4
	pand	%xmm0, %xmm4
	movdqa	%xmm3, %xmm5
	psrld	$3, %xmm5
	pand	%xmm1, %xmm5
	pslld	$3, %xmm3
	pand	%xmm2, %xmm3
	leaq	(%rdi,%rdi,2), %rsi
	pshufd	$80, %xmm5, %xmm6               ## xmm6 = xmm5[0,0,1,1]
	pshufd	$68, %xmm4, %xmm7               ## xmm7 = xmm4[0,1,0,1]
	pblendw	$12, %xmm6, %xmm7               ## xmm7 = xmm7[0,1],xmm6[2,3],xmm7[4,5,6,7]
	pshufd	$68, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,0,1]
	pblendw	$207, %xmm7, %xmm6              ## xmm6 = xmm7[0,1,2,3],xmm6[4,5],xmm7[6,7]
	pshufd	$165, %xmm5, %xmm7              ## xmm7 = xmm5[1,1,2,2]
	pblendw	$48, %xmm4, %xmm7               ## xmm7 = xmm7[0,1,2,3],xmm4[4,5],xmm7[6,7]
	pblendw	$12, %xmm3, %xmm7               ## xmm7 = xmm7[0,1],xmm3[2,3],xmm7[4,5,6,7]
	shufps	$255, %xmm5, %xmm4              ## xmm4 = xmm4[3,3],xmm5[3,3]
	pshufd	$238, %xmm3, %xmm3              ## xmm3 = xmm3[2,3,2,3]
	pblendw	$60, %xmm4, %xmm3               ## xmm3 = xmm3[0,1],xmm4[2,3,4,5],xmm3[6,7]
	movdqu	%xmm3, 32(%r12,%rsi,4)
	movdqu	%xmm7, 16(%r12,%rsi,4)
	movdqu	%xmm6, (%r12,%rsi,4)
LBB0_85:                                ##   in Loop: Header=BB0_74 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r12,%rcx,4), %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, -104(%rbp)                ## 8-byte Folded Reload
	movq	-112(%rbp), %r11                ## 8-byte Reload
	jne	LBB0_86
	.p2align	4, 0x90
LBB0_92:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpl	%r9d, %edx
	jle	LBB0_95
## %bb.93:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	-44(%rbp), %ecx
	decl	%r15d
	jmp	LBB0_74
LBB0_86:                                ##   in Loop: Header=BB0_74 Depth=1
	leaq	(%rax,%rbx,4), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edi
	jmp	LBB0_87
LBB0_94:                                ##   in Loop: Header=BB0_74 Depth=1
	xorl	%edi, %edi
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_84
	jmp	LBB0_85
LBB0_95:
	movl	$1, %eax
LBB0_96:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_72, LBB0_72-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_72
	.long	L0_0_set_25
	.long	L0_0_set_48
	.end_data_region
                                        ## -- End function
	.comm	_PSP_DISPLAY_SETBUF_NEXTFRAME,4,2 ## @PSP_DISPLAY_SETBUF_NEXTFRAME
	.comm	_SCEGU_SCR_HEIGHT,4,2           ## @SCEGU_SCR_HEIGHT
	.no_dead_strip	_psp_read_viewport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_read_viewport
_psp_read_viewport:                     ; @psp_read_viewport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PSP_DISPLAY_SETBUF_NEXTFRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSP_DISPLAY_SETBUF_NEXTFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, sp
	bl	_sceDisplayGetFrameBuf
	ldp	w10, w11, [x20]
	cmp	w10, #0
	csel	w8, w10, wzr, gt
	cmp	w11, #0
	csel	w9, w11, wzr, gt
	ldr	w12, [sp, #4]
	ldp	w13, w14, [x20, #8]
	add	w10, w13, w10
	cmp	w10, w12
	csel	w10, w10, w12, lt
Lloh3:
	adrp	x13, _SCEGU_SCR_HEIGHT@GOTPAGE
Lloh4:
	ldr	x13, [x13, _SCEGU_SCR_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x13]
	add	w11, w14, w11
	cmp	w11, w13
	csel	w11, w11, w13, lt
	ldr	w13, [sp]
	sub	w13, w13, #128
	cmp	w13, #3
	b.hi	LBB0_47
; %bb.1:
Lloh6:
	adrp	x14, lJTI0_0@PAGE
Lloh7:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_2
	ldrb	w16, [x14, x13]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_2:
	cmp	w11, w9
	b.le	LBB0_63
; %bb.3:
	ldr	x16, [sp, #8]
	add	x13, x16, w8, uxtw #2
	mvn	w14, w8
	add	w14, w10, w14
	add	x17, x8, x14
	add	x15, x14, w14, uxtw #1
	add	x15, x15, #3
	add	x16, x16, x17, lsl #2
	add	x16, x16, #4
	add	x17, x14, #1
	and	x0, x17, #0x1fffffffc
	add	x1, x0, x0, lsl #1
	add	w2, w8, w0
	sub	w3, w11, #1
	movi.2d	v0, #0x0000ff000000ff
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	sub	w11, w11, #1
	cmp	w8, w10
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	w5, w12, w11
	add	x4, x13, w5, sxtw #2
	cmp	w14, #3
	b.lo	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x5, w5
	add	x6, x19, x15, lsl #2
	add	x5, x16, x5, lsl #2
	cmp	x19, x5
	ccmp	x4, x6, #2, lo
	b.lo	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x4, x4, x0, lsl #2
	add	x5, x19, x1, lsl #2
	mul	w12, w12, w3
	add	x12, x13, w12, sxtw #2
	mov	x6, x0
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q1, [x12], #16
	ushr.4s	v2, v1, #16
	and.16b	v2, v2, v0
	ushr.4s	v5, v1, #8
	and.16b	v3, v5, v0
	and.16b	v4, v1, v0
	st3.4s	{ v2, v3, v4 }, [x19], #48
	subs	x6, x6, #4
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, x2
	cmp	x17, x0
	b.eq	LBB0_11
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x5, x19
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, w9
	b.gt	LBB0_16
	b	LBB0_63
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x5, x19
	mov	x12, x8
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w12, w10, w12
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w6, [x4, #2]
	str	w6, [x5]
	ldrb	w6, [x4, #1]
	str	w6, [x5, #4]
	ldrb	w7, [x4], #4
	add	x6, x5, #12
	str	w7, [x5, #8]
	mov	x5, x6
	subs	w12, w12, #1
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x5, x6
	cmp	w11, w9
	b.le	LBB0_63
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [sp, #4]
	sub	w3, w3, #1
	mov	x19, x5
	b	LBB0_4
LBB0_17:
	cmp	w11, w9
	b.le	LBB0_63
; %bb.18:
	ldr	x16, [sp, #8]
	add	x13, x16, w8, uxtw #2
	mvn	w14, w8
	add	w14, w10, w14
	add	x17, x8, x14
	add	x15, x14, w14, uxtw #1
	add	x15, x15, #3
	add	x16, x16, x17, lsl #2
	add	x16, x16, #4
	add	x17, x14, #1
	and	x0, x17, #0x1fffffffc
	add	x1, x0, x0, lsl #1
	add	w2, w8, w0
	sub	w3, w11, #1
	movi.4s	v0, #248
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
	sub	w11, w11, #1
	cmp	w8, w10
	b.ge	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mul	w5, w12, w11
	add	x4, x13, w5, sxtw #2
	cmp	w14, #3
	b.lo	LBB0_27
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	sxtw	x5, w5
	add	x6, x19, x15, lsl #2
	add	x5, x16, x5, lsl #2
	cmp	x19, x5
	ccmp	x4, x6, #2, lo
	b.lo	LBB0_27
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x4, x4, x0, lsl #2
	add	x5, x19, x1, lsl #2
	mul	w12, w12, w3
	add	x12, x13, w12, sxtw #2
	mov	x6, x0
LBB0_23:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q1, [x12], #16
	ushr.4s	v2, v1, #7
	and.16b	v2, v2, v0
	ushr.4s	v5, v1, #2
	and.16b	v3, v5, v0
	shl.4s	v1, v1, #3
	and.16b	v4, v1, v0
	st3.4s	{ v2, v3, v4 }, [x19], #48
	subs	x6, x6, #4
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x12, x2
	cmp	x17, x0
	b.eq	LBB0_26
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x5, x19
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	w11, w9
	b.gt	LBB0_31
	b	LBB0_63
LBB0_27:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x5, x19
	mov	x12, x8
LBB0_28:                                ;   in Loop: Header=BB0_19 Depth=1
	sub	w12, w10, w12
LBB0_29:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w6, [x4]
	lsr	w6, w6, #7
	and	w6, w6, #0xf8
	str	w6, [x5]
	ldr	w6, [x4]
	lsr	w6, w6, #2
	and	w6, w6, #0xf8
	str	w6, [x5, #4]
	ldr	w6, [x4], #4
	ubfiz	w7, w6, #3, #5
	add	x6, x5, #12
	str	w7, [x5, #8]
	mov	x5, x6
	subs	w12, w12, #1
	b.ne	LBB0_29
; %bb.30:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x5, x6
	cmp	w11, w9
	b.le	LBB0_63
LBB0_31:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w12, [sp, #4]
	sub	w3, w3, #1
	mov	x19, x5
	b	LBB0_19
LBB0_32:
	cmp	w11, w9
	b.le	LBB0_63
; %bb.33:
	ldr	x16, [sp, #8]
	add	x13, x16, w8, uxtw #2
	mvn	w14, w8
	add	w14, w10, w14
	add	x17, x8, x14
	add	x15, x14, w14, uxtw #1
	add	x15, x15, #3
	add	x16, x16, x17, lsl #2
	add	x16, x16, #4
	add	x17, x14, #1
	and	x0, x17, #0x1fffffffc
	add	x1, x0, x0, lsl #1
	add	w2, w8, w0
	sub	w3, w11, #1
	movi.4s	v0, #240
LBB0_34:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_38 Depth 2
                                        ;     Child Loop BB0_44 Depth 2
	sub	w11, w11, #1
	cmp	w8, w10
	b.ge	LBB0_40
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	mul	w5, w12, w11
	add	x4, x13, w5, sxtw #2
	cmp	w14, #3
	b.lo	LBB0_42
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=1
	sxtw	x5, w5
	add	x6, x19, x15, lsl #2
	add	x5, x16, x5, lsl #2
	cmp	x19, x5
	ccmp	x4, x6, #2, lo
	b.lo	LBB0_42
; %bb.37:                               ;   in Loop: Header=BB0_34 Depth=1
	add	x4, x4, x0, lsl #2
	add	x5, x19, x1, lsl #2
	mul	w12, w12, w3
	add	x12, x13, w12, sxtw #2
	mov	x6, x0
LBB0_38:                                ;   Parent Loop BB0_34 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q1, [x12], #16
	ushr.4s	v2, v1, #4
	and.16b	v2, v2, v0
	and.16b	v3, v1, v0
	shl.4s	v1, v1, #4
	and.16b	v4, v1, v0
	st3.4s	{ v2, v3, v4 }, [x19], #48
	subs	x6, x6, #4
	b.ne	LBB0_38
; %bb.39:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x12, x2
	cmp	x17, x0
	b.eq	LBB0_41
	b	LBB0_43
LBB0_40:                                ;   in Loop: Header=BB0_34 Depth=1
	mov	x5, x19
LBB0_41:                                ;   in Loop: Header=BB0_34 Depth=1
	cmp	w11, w9
	b.gt	LBB0_46
	b	LBB0_63
LBB0_42:                                ;   in Loop: Header=BB0_34 Depth=1
	mov	x5, x19
	mov	x12, x8
LBB0_43:                                ;   in Loop: Header=BB0_34 Depth=1
	sub	w12, w10, w12
LBB0_44:                                ;   Parent Loop BB0_34 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w6, [x4]
	lsr	w6, w6, #4
	and	w6, w6, #0xf0
	str	w6, [x5]
	ldr	w6, [x4]
	and	w6, w6, #0xf0
	str	w6, [x5, #4]
	ldr	w6, [x4], #4
	ubfiz	w7, w6, #4, #4
	add	x6, x5, #12
	str	w7, [x5, #8]
	mov	x5, x6
	subs	w12, w12, #1
	b.ne	LBB0_44
; %bb.45:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x5, x6
	cmp	w11, w9
	b.le	LBB0_63
LBB0_46:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	w12, [sp, #4]
	sub	w3, w3, #1
	mov	x19, x5
	b	LBB0_34
LBB0_47:
	mov	w0, #0
	b	LBB0_64
LBB0_48:
	cmp	w11, w9
	b.le	LBB0_63
; %bb.49:
	ldr	x16, [sp, #8]
	add	x13, x16, w8, uxtw #2
	mvn	w14, w8
	add	w14, w10, w14
	add	x17, x8, x14
	add	x15, x14, w14, uxtw #1
	add	x15, x15, #3
	add	x16, x16, x17, lsl #2
	add	x16, x16, #4
	add	x17, x14, #1
	and	x0, x17, #0x1fffffffc
	add	x1, x0, x0, lsl #1
	add	w2, w8, w0
	sub	w3, w11, #1
	movi.4s	v0, #252
	movi.4s	v1, #248
LBB0_50:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_54 Depth 2
                                        ;     Child Loop BB0_60 Depth 2
	sub	w11, w11, #1
	cmp	w8, w10
	b.ge	LBB0_56
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	mul	w5, w12, w11
	add	x4, x13, w5, sxtw #2
	cmp	w14, #3
	b.lo	LBB0_58
; %bb.52:                               ;   in Loop: Header=BB0_50 Depth=1
	sxtw	x5, w5
	add	x6, x19, x15, lsl #2
	add	x5, x16, x5, lsl #2
	cmp	x19, x5
	ccmp	x4, x6, #2, lo
	b.lo	LBB0_58
; %bb.53:                               ;   in Loop: Header=BB0_50 Depth=1
	add	x4, x4, x0, lsl #2
	add	x5, x19, x1, lsl #2
	mul	w12, w12, w3
	add	x12, x13, w12, sxtw #2
	mov	x6, x0
LBB0_54:                                ;   Parent Loop BB0_50 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	q2, [x12], #16
	sshr.4s	v3, v2, #8
	bic.4s	v3, #7
	ushr.4s	v6, v2, #3
	and.16b	v4, v6, v0
	shl.4s	v2, v2, #3
	and.16b	v5, v2, v1
	st3.4s	{ v3, v4, v5 }, [x19], #48
	subs	x6, x6, #4
	b.ne	LBB0_54
; %bb.55:                               ;   in Loop: Header=BB0_50 Depth=1
	mov	x12, x2
	cmp	x17, x0
	b.eq	LBB0_57
	b	LBB0_59
LBB0_56:                                ;   in Loop: Header=BB0_50 Depth=1
	mov	x5, x19
LBB0_57:                                ;   in Loop: Header=BB0_50 Depth=1
	cmp	w11, w9
	b.gt	LBB0_62
	b	LBB0_63
LBB0_58:                                ;   in Loop: Header=BB0_50 Depth=1
	mov	x5, x19
	mov	x12, x8
LBB0_59:                                ;   in Loop: Header=BB0_50 Depth=1
	sub	w12, w10, w12
LBB0_60:                                ;   Parent Loop BB0_50 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w6, [x4]
	asr	w6, w6, #8
	and	w6, w6, #0xfffffff8
	str	w6, [x5]
	ldr	w6, [x4]
	lsr	w6, w6, #3
	and	w6, w6, #0xfc
	str	w6, [x5, #4]
	ldr	w6, [x4], #4
	ubfiz	w7, w6, #3, #5
	add	x6, x5, #12
	str	w7, [x5, #8]
	mov	x5, x6
	subs	w12, w12, #1
	b.ne	LBB0_60
; %bb.61:                               ;   in Loop: Header=BB0_50 Depth=1
	mov	x5, x6
	cmp	w11, w9
	b.le	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w12, [sp, #4]
	sub	w3, w3, #1
	mov	x19, x5
	b	LBB0_50
LBB0_63:
	mov	w0, #1
LBB0_64:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_48-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_32-LBB0_2)>>2
                                        ; -- End function
	.comm	_PSP_DISPLAY_SETBUF_NEXTFRAME,4,2 ; @PSP_DISPLAY_SETBUF_NEXTFRAME
	.comm	_SCEGU_SCR_HEIGHT,4,2           ; @SCEGU_SCR_HEIGHT
	.no_dead_strip	_psp_read_viewport
.subsections_via_symbols
