	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RawImage_UploadToRgtc2Texture
_RawImage_UploadToRgtc2Texture:         ## @RawImage_UploadToRgtc2Texture
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r14d
	movl	%ecx, -168(%rbp)                ## 4-byte Spill
	movl	%edx, -164(%rbp)                ## 4-byte Spill
	movl	%esi, -160(%rbp)                ## 4-byte Spill
	movl	%edi, -156(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	3(%r14), %eax
	leal	6(%r14), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	shrl	$2, %ecx
	leal	3(%rbx), %eax
	leal	6(%rbx), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	shrl	$2, %edi
	imull	%ecx, %edi
	shll	$4, %edi
	movq	_ri@GOTPCREL(%rip), %rax
	movq	%rdi, -256(%rbp)                ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*8(%rax)
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_38
## %bb.1:
	movq	16(%rbp), %r15
	movslq	%r14d, %rax
	movq	%rax, -272(%rbp)                ## 8-byte Spill
	movl	-144(%rbp), %eax                ## 4-byte Reload
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	movl	%r14d, %eax
	shll	$4, %eax
	movl	%eax, -172(%rbp)                ## 4-byte Spill
	leal	(,%r14,4), %eax
	movl	%eax, -188(%rbp)                ## 4-byte Spill
	movl	$4, %ebx
	xorl	%ecx, %ecx
	movq	-200(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-240(%rbp), %rcx                ## 8-byte Reload
	addq	$4, %rcx
	movl	-176(%rbp), %ebx                ## 4-byte Reload
	addl	-172(%rbp), %ebx                ## 4-byte Folded Reload
	cmpq	-264(%rbp), %rcx                ## 8-byte Folded Reload
	jge	LBB0_38
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
                                        ##           Child Loop BB0_11 Depth 5
                                        ##         Child Loop BB0_19 Depth 4
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_29 Depth 4
                                        ##         Child Loop BB0_34 Depth 4
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %esi
	movq	%rcx, -240(%rbp)                ## 8-byte Spill
	subl	%ecx, %esi
	movl	$4, %edi
	callq	_MIN
	movq	-152(%rbp), %r14                ## 8-byte Reload
	testl	%r14d, %r14d
	movl	%ebx, -176(%rbp)                ## 4-byte Spill
	jle	LBB0_37
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movl	%eax, %eax
	movq	%rax, -304(%rbp)                ## 8-byte Spill
	movl	%ebx, -132(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	-248(%rbp), %rax                ## 8-byte Reload
	addq	$4, %rax
	addl	$16, -132(%rbp)                 ## 4-byte Folded Spill
	cmpq	-272(%rbp), %rax                ## 8-byte Folded Reload
	movq	-152(%rbp), %r14                ## 8-byte Reload
	jge	LBB0_37
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
                                        ##         Child Loop BB0_7 Depth 4
                                        ##           Child Loop BB0_11 Depth 5
                                        ##         Child Loop BB0_19 Depth 4
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_29 Depth 4
                                        ##         Child Loop BB0_34 Depth 4
	movl	%r14d, %esi
	movq	%rax, -248(%rbp)                ## 8-byte Spill
	subl	%eax, %esi
	movl	$4, %edi
	callq	_MIN
	xorl	%r14d, %r14d
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	testl	%ecx, %ecx
	movl	$0, %edx
	cmovgl	%eax, %edx
	movl	%edx, -180(%rbp)                ## 4-byte Spill
	cmpl	$2, %ecx
	movl	$0, %edx
	cmovgel	%eax, %edx
	movl	$0, %esi
	cmovgl	%eax, %esi
	cmpl	$4, %ecx
	movl	%eax, %r13d
	movl	%edx, -124(%rbp)                ## 4-byte Spill
	movslq	%edx, %rcx
	movl	%esi, -120(%rbp)                ## 4-byte Spill
	movslq	%esi, %rdx
	cmovll	%r14d, %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movslq	%eax, %rsi
	movl	%r13d, %r12d
	andl	$-2, %r12d
	movq	%rcx, %rax
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	leaq	1(%rcx), %rax
	movq	%rax, -296(%rbp)                ## 8-byte Spill
	movq	%rdx, %rax
	movq	%rdx, -216(%rbp)                ## 8-byte Spill
	leaq	1(%rdx), %rax
	movq	%rax, -288(%rbp)                ## 8-byte Spill
	movq	%rsi, %rax
	movq	%rsi, -208(%rbp)                ## 8-byte Spill
	leaq	1(%rsi), %rax
	movq	%rax, -280(%rbp)                ## 8-byte Spill
	movb	$1, %al
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=3
	movq	-232(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-112(%rbp), %rsi
	callq	_CompressMonoBlock
	addq	$32, %rbx
	movq	%rbx, -232(%rbp)                ## 8-byte Spill
	movl	$1, %r14d
	testb	$1, -184(%rbp)                  ## 1-byte Folded Reload
	movl	$0, %eax
	je	LBB0_36
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_7 Depth 4
                                        ##           Child Loop BB0_11 Depth 5
                                        ##         Child Loop BB0_19 Depth 4
                                        ##         Child Loop BB0_24 Depth 4
                                        ##         Child Loop BB0_29 Depth 4
                                        ##         Child Loop BB0_34 Depth 4
	movl	%eax, -184(%rbp)                ## 4-byte Spill
	movl	$0, %edx
	movl	-116(%rbp), %edi                ## 4-byte Reload
	testl	%edi, %edi
	movq	-152(%rbp), %r11                ## 8-byte Reload
	jle	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	$1, %r8d
	movl	-132(%rbp), %r9d                ## 4-byte Reload
	xorl	%r10d, %r10d
	movq	-304(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=4
	incq	%r10
	addl	-188(%rbp), %r9d                ## 4-byte Folded Reload
	addq	$4, %r8
	cmpq	%rax, %r10
	je	LBB0_15
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Loop Header: Depth=4
                                        ##           Child Loop BB0_11 Depth 5
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=4
	cmpl	$1, %r13d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=4
	xorl	%edi, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=4
	movq	%r8, %rcx
	movl	%r9d, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ##         Parent Loop BB0_7 Depth=4
                                        ## =>        This Inner Loop Header: Depth=5
	leal	-4(%rbx), %edx
	orl	%r14d, %edx
	movslq	%edx, %rdx
	movl	(%r15,%rdx,4), %edx
	leal	-1(%rcx), %esi
	andl	$-2, %esi
	movl	%edx, -112(%rbp,%rsi,4)
	movl	%ebx, %edx
	orl	%r14d, %edx
	movslq	%edx, %rdx
	movl	(%r15,%rdx,4), %edx
	movl	%ecx, %esi
	movl	%edx, -112(%rbp,%rsi,4)
	addq	$2, %rdi
	addl	$8, %ebx
	addq	$2, %rcx
	cmpq	%rdi, %r12
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=4
	testb	$1, %r13b
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=4
	movq	-240(%rbp), %rcx                ## 8-byte Reload
	addl	%r10d, %ecx
	imull	%r11d, %ecx
	movq	-248(%rbp), %rdx                ## 8-byte Reload
	addl	%edx, %ecx
	leaq	(,%r10,4), %rdx
	addl	%edi, %ecx
	shll	$2, %ecx
	orl	%r14d, %ecx
	movslq	%ecx, %rcx
	movl	(%r15,%rcx,4), %ecx
	addl	%edi, %edx
	movl	%ecx, -112(%rbp,%rdx,4)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=3
	movl	-180(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %edx
	cmpl	$4, %eax
	movl	-116(%rbp), %edi                ## 4-byte Reload
	jge	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=3
	movslq	%edx, %rcx
	testb	$1, %cl
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	-112(%rbp), %eax
	movl	%eax, -112(%rbp,%rcx,4)
	incq	%rcx
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, %edx
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%ecx, %eax
	cltd
	idivl	%r13d
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -112(%rbp,%rcx,4)
	leal	1(%rcx), %eax
	cltd
	idivl	%r13d
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -108(%rbp,%rcx,4)
	addq	$2, %rcx
	cmpl	$4, %ecx
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, -124(%rbp)                  ## 4-byte Folded Reload
	jg	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	$1, %eax
	xorl	%edx, %edx
	idivl	%edi
	movl	%edx, %ecx
	shll	$2, %ecx
	movq	-224(%rbp), %rsi                ## 8-byte Reload
	testb	$1, -124(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	%ecx, %eax
	movl	-112(%rbp,%rax,4), %eax
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, -96(%rbp,%rdx,4)
	movq	-296(%rbp), %rsi                ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, -124(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%esi, %eax
	cltd
	idivl	%r13d
	addl	%ecx, %edx
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -96(%rbp,%rsi,4)
	leal	1(%rsi), %eax
	cltd
	idivl	%r13d
	addl	%ecx, %edx
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -92(%rbp,%rsi,4)
	addq	$2, %rsi
	cmpl	$4, %esi
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, -120(%rbp)                  ## 4-byte Folded Reload
	jg	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	$2, %eax
	xorl	%edx, %edx
	idivl	%edi
	movl	%edx, %ecx
	shll	$2, %ecx
	movq	-216(%rbp), %rsi                ## 8-byte Reload
	testb	$1, -120(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	%ecx, %eax
	movl	-112(%rbp,%rax,4), %eax
	movq	-216(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, -80(%rbp,%rdx,4)
	movq	-288(%rbp), %rsi                ## 8-byte Reload
LBB0_28:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, -120(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%esi, %eax
	cltd
	idivl	%r13d
	addl	%ecx, %edx
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -80(%rbp,%rsi,4)
	leal	1(%rsi), %eax
	cltd
	idivl	%r13d
	addl	%ecx, %edx
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -76(%rbp,%rsi,4)
	addq	$2, %rsi
	cmpl	$4, %esi
	jne	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, -128(%rbp)                  ## 4-byte Folded Reload
	jg	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	$3, %eax
	xorl	%edx, %edx
	idivl	%edi
	movl	%edx, %ecx
	shll	$2, %ecx
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	testb	$1, -128(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=3
	movl	%ecx, %eax
	movl	-112(%rbp,%rax,4), %eax
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, -64(%rbp,%rdx,4)
	movq	-280(%rbp), %rsi                ## 8-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=3
	cmpl	$3, -128(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ##       Parent Loop BB0_5 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%esi, %eax
	cltd
	idivl	%r13d
	addl	%ecx, %edx
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -64(%rbp,%rsi,4)
	leal	1(%rsi), %eax
	cltd
	idivl	%r13d
	addl	%ecx, %edx
	movslq	%edx, %rax
	movl	-112(%rbp,%rax,4), %eax
	movl	%eax, -60(%rbp,%rsi,4)
	addq	$2, %rsi
	cmpl	$4, %esi
	jne	LBB0_34
	jmp	LBB0_35
LBB0_38:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_COMPRESSED_RG_RGTC2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-156(%rbp), %edi                ## 4-byte Reload
	movl	-160(%rbp), %edx                ## 4-byte Reload
	movl	-164(%rbp), %ecx                ## 4-byte Reload
	movl	-168(%rbp), %r8d                ## 4-byte Reload
	movl	%r14d, %r9d
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	pushq	%rbx
	pushq	-256(%rbp)                      ## 8-byte Folded Reload
	pushq	%rax
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	callq	_qglCompressedTextureSubImage2DEXT
	addq	$32, %rsp
	movq	%rbx, %rdi
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.39:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,16,3                        ## @ri
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_COMPRESSED_RG_RGTC2,4,2     ## @GL_COMPRESSED_RG_RGTC2
	.no_dead_strip	_RawImage_UploadToRgtc2Texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RawImage_UploadToRgtc2Texture
_RawImage_UploadToRgtc2Texture:         ; @RawImage_UploadToRgtc2Texture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #368
	.cfi_def_cfa_offset 368
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #288]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #304]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #320]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #336]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #352]            ; 16-byte Folded Spill
	add	x29, sp, #352
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x6
	mov	x19, x5
	mov	x20, x4
	stp	w2, w3, [sp, #40]               ; 8-byte Folded Spill
	stp	w0, w1, [sp, #32]               ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	w8, w4, #3
	add	w9, w4, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	lsr	w8, w8, #2
	add	w9, w5, #3
	add	w10, w5, #6
	cmp	w9, #0
	csel	w9, w10, w9, lt
	lsr	w9, w9, #2
	mul	w8, w8, w9
	lsl	w0, w8, #4
Lloh3:
	adrp	x8, _ri@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8, #8]
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	blr	x8
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	str	w19, [sp, #72]                  ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_34
; %bb.1:
	mov	w19, #0
	mov	x9, #0
	sxtw	x10, w20
	lsl	w8, w20, #4
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	lsl	w26, w20, #2
	sub	x27, x29, #160
	add	x8, x27, #16
	stp	x8, x10, [sp, #112]             ; 16-byte Folded Spill
	add	x10, x27, #32
	add	x8, x27, #48
	stp	x8, x10, [sp, #96]              ; 16-byte Folded Spill
	mov	w21, #12
	mov	w24, #-3
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	mov	w8, w8
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	add	x9, x9, #4
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	ldr	w21, [sp, #76]                  ; 4-byte Folded Reload
	add	w21, w21, w8
	ldr	w19, [sp, #92]                  ; 4-byte Folded Reload
	add	w19, w19, w26
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	cmp	x9, x8
	b.ge	LBB0_34
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;           Child Loop BB0_19 Depth 5
                                        ;           Child Loop BB0_15 Depth 5
                                        ;         Child Loop BB0_24 Depth 4
                                        ;         Child Loop BB0_27 Depth 4
                                        ;         Child Loop BB0_30 Depth 4
                                        ;         Child Loop BB0_33 Depth 4
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	str	x9, [sp, #80]                   ; 8-byte Folded Spill
	sub	w1, w8, w9
	mov	w0, #4
	bl	_MIN
	cmp	w20, #1
	str	w19, [sp, #92]                  ; 4-byte Folded Spill
	str	w21, [sp, #76]                  ; 4-byte Folded Spill
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	stp	w21, w19, [sp, #164]            ; 8-byte Folded Spill
	str	w0, [sp, #172]                  ; 4-byte Folded Spill
	mov	w23, w0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [sp, #128]                  ; 8-byte Folded Reload
	add	x9, x9, #4
	ldr	w8, [sp, #164]                  ; 4-byte Folded Reload
	add	w10, w8, #16
	ldr	w8, [sp, #168]                  ; 4-byte Folded Reload
	add	w8, w8, #4
	stp	w10, w8, [sp, #164]             ; 8-byte Folded Spill
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	cmp	x9, x8
	b.ge	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;           Child Loop BB0_19 Depth 5
                                        ;           Child Loop BB0_15 Depth 5
                                        ;         Child Loop BB0_24 Depth 4
                                        ;         Child Loop BB0_27 Depth 4
                                        ;         Child Loop BB0_30 Depth 4
                                        ;         Child Loop BB0_33 Depth 4
	str	x9, [sp, #128]                  ; 8-byte Folded Spill
	sub	w1, w20, w9
	mov	w0, #4
	bl	_MIN
	mov	w8, #0
	mov	w19, w0
	ldr	w10, [sp, #172]                 ; 4-byte Folded Reload
	cmp	w10, #0
	csel	w9, w0, wzr, gt
	str	w9, [sp, #160]                  ; 4-byte Folded Spill
	cmp	w10, #1
	csel	w11, w0, wzr, gt
	cmp	w10, #2
	csel	w12, w0, wzr, gt
	ldr	x9, [sp, #112]                  ; 8-byte Folded Reload
	stur	w11, [x29, #-168]               ; 4-byte Folded Spill
	add	x9, x9, w11, sxtw #2
	str	x9, [sp, #152]                  ; 8-byte Folded Spill
	cmp	w10, #3
	csel	w11, w0, wzr, gt
	sub	x22, x19, #1
	and	x21, x19, #0xfffffffc
	mov	w9, #1
	ldr	x10, [sp, #104]                 ; 8-byte Folded Reload
	stur	w12, [x29, #-172]               ; 4-byte Folded Spill
	add	x10, x10, w12, sxtw #2
	str	x10, [sp, #144]                 ; 8-byte Folded Spill
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	str	w11, [sp, #176]                 ; 4-byte Folded Spill
	add	x10, x10, w11, sxtw #2
	str	x10, [sp, #136]                 ; 8-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=3
	sub	x1, x29, #160
	mov	x0, x28
	bl	_CompressMonoBlock
	mov	w9, #0
	add	x28, x28, #32
	mov	w8, #1
	ldur	w10, [x29, #-164]               ; 4-byte Folded Reload
	tbz	w10, #0, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;           Child Loop BB0_19 Depth 5
                                        ;           Child Loop BB0_15 Depth 5
                                        ;         Child Loop BB0_24 Depth 4
                                        ;         Child Loop BB0_27 Depth 4
                                        ;         Child Loop BB0_30 Depth 4
                                        ;         Child Loop BB0_33 Depth 4
	stur	w9, [x29, #-164]                ; 4-byte Folded Spill
	ldr	w5, [sp, #172]                  ; 4-byte Folded Reload
	cmp	w5, #1
	b.lt	LBB0_22
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=3
	mov	x9, #0
	mov	x10, #0
	ldp	w12, w11, [sp, #164]            ; 8-byte Folded Reload
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=4
	add	x10, x10, #1
	add	x9, x9, #4
	add	w12, w12, w26
	add	w11, w11, w20
	cmp	x10, x23
	b.eq	LBB0_21
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Loop Header: Depth=4
                                        ;           Child Loop BB0_19 Depth 5
                                        ;           Child Loop BB0_15 Depth 5
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=4
	cmp	w19, #4
	b.hs	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=4
	mov	x13, #0
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=4
	add	w14, w11, w13
	lsl	w14, w14, #2
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ;         Parent Loop BB0_11 Depth=4
                                        ; =>        This Inner Loop Header: Depth=5
	orr	w15, w14, w8
	ldr	w15, [x25, w15, sxtw #2]
	add	w16, w9, w13
	str	w15, [x27, w16, uxtw #2]
	add	x13, x13, #1
	add	w14, w14, #4
	cmp	x19, x13
	b.ne	LBB0_15
	b	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=4
	mov	x13, #0
	lsl	w14, w10, #2
	cmn	w14, w22
	b.hs	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=4
	lsr	x14, x22, #32
	cbnz	x14, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=4
	mov	x13, #0
	mov	x14, x12
LBB0_19:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ;         Parent Loop BB0_11 Depth=4
                                        ; =>        This Inner Loop Header: Depth=5
	sub	w15, w14, #12
	sub	w16, w14, #8
	sub	w17, w14, #4
	orr	w15, w15, w8
	orr	w16, w16, w8
	orr	w17, w17, w8
	orr	w0, w14, w8
	ldr	w15, [x25, w15, sxtw #2]
	ldr	w16, [x25, w16, sxtw #2]
	ldr	w17, [x25, w17, sxtw #2]
	ldr	w0, [x25, w0, sxtw #2]
	add	x1, x9, x13
	add	w2, w1, #1
	add	w3, w1, #2
	and	x4, x1, #0xfffffffc
	and	x2, x2, x24
	and	x3, x3, #0xfffffffe
	str	w15, [x27, x4, lsl #2]
	str	w16, [x27, x2, lsl #2]
	str	w17, [x27, x3, lsl #2]
	add	w15, w1, #3
	str	w0, [x27, w15, uxtw #2]
	add	x13, x13, #4
	add	w14, w14, #16
	cmp	x21, x13
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=4
	mov	x13, x21
	cmp	x21, x19
	b.eq	LBB0_10
	b	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w9, [sp, #160]                  ; 4-byte Folded Reload
	mov	x8, x9
	cmp	w9, #4
	b.lt	LBB0_23
	b	LBB0_25
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=3
	mov	w8, #0
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=3
	add	x9, x27, w8, sxtw #2
LBB0_24:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sdiv	w10, w8, w19
	msub	w10, w10, w19, w8
	ldr	w10, [x27, w10, sxtw #2]
	str	w10, [x9], #4
	add	w8, w8, #1
	cmp	w8, #4
	b.ne	LBB0_24
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=3
	ldur	w8, [x29, #-168]                ; 4-byte Folded Reload
	cmp	w8, #3
	b.gt	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	w9, #1
	sdiv	w8, w9, w5
	msub	w8, w8, w5, w9
	lsl	w8, w8, #2
	ldr	x9, [sp, #152]                  ; 8-byte Folded Reload
	ldur	w10, [x29, #-168]               ; 4-byte Folded Reload
LBB0_27:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sdiv	w11, w10, w19
	msub	w11, w11, w19, w10
	add	w11, w8, w11
	ldr	w11, [x27, w11, sxtw #2]
	str	w11, [x9], #4
	add	w10, w10, #1
	cmp	w10, #4
	b.ne	LBB0_27
LBB0_28:                                ;   in Loop: Header=BB0_8 Depth=3
	ldur	w8, [x29, #-172]                ; 4-byte Folded Reload
	cmp	w8, #3
	b.gt	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	w9, #2
	sdiv	w8, w9, w5
	msub	w8, w8, w5, w9
	lsl	w8, w8, #2
	ldr	x9, [sp, #144]                  ; 8-byte Folded Reload
	ldur	w10, [x29, #-172]               ; 4-byte Folded Reload
LBB0_30:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sdiv	w11, w10, w19
	msub	w11, w11, w19, w10
	add	w11, w8, w11
	ldr	w11, [x27, w11, sxtw #2]
	str	w11, [x9], #4
	add	w10, w10, #1
	cmp	w10, #4
	b.ne	LBB0_30
LBB0_31:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w8, [sp, #176]                  ; 4-byte Folded Reload
	cmp	w8, #3
	b.gt	LBB0_7
; %bb.32:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	w9, #3
	sdiv	w8, w9, w5
	msub	w8, w8, w5, w9
	lsl	w8, w8, #2
	ldr	x9, [sp, #136]                  ; 8-byte Folded Reload
	ldr	w10, [sp, #176]                 ; 4-byte Folded Reload
LBB0_33:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	sdiv	w11, w10, w19
	msub	w11, w11, w19, w10
	add	w11, w8, w11
	ldr	w11, [x27, w11, sxtw #2]
	str	w11, [x9], #4
	add	w10, w10, #1
	cmp	w10, #4
	b.ne	LBB0_33
	b	LBB0_7
LBB0_34:
Lloh6:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _GL_COMPRESSED_RG_RGTC2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_COMPRESSED_RG_RGTC2@GOTPAGEOFF]
Lloh11:
	ldr	w7, [x8]
	ldr	x19, [sp, #48]                  ; 8-byte Folded Reload
	str	x19, [sp, #8]
	ldp	w8, w0, [sp, #28]               ; 8-byte Folded Reload
	str	w8, [sp]
	ldp	w2, w3, [sp, #36]               ; 8-byte Folded Reload
	ldr	w4, [sp, #44]                   ; 4-byte Folded Reload
	mov	x5, x20
	ldr	w6, [sp, #72]                   ; 4-byte Folded Reload
	bl	_qglCompressedTextureSubImage2DEXT
Lloh12:
	adrp	x8, _ri@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldur	x8, [x29, #-96]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	ldp	x29, x30, [sp, #352]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #336]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #320]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #304]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #368
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,16,3                        ; @ri
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_COMPRESSED_RG_RGTC2,4,2     ; @GL_COMPRESSED_RG_RGTC2
	.no_dead_strip	_RawImage_UploadToRgtc2Texture
.subsections_via_symbols
