	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgtc_block_internal
_rgtc_block_internal:                   ## @rgtc_block_internal
	.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	$136, %rsp
	.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, -116(%rbp)                ## 4-byte Spill
	movq	%rcx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	movslq	16(%rbp), %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rdx), %rsi
	leaq	-112(%rbp), %rdi
	callq	_decompress_indices
	movl	%r13d, %esi
	movl	-116(%rbp), %r8d                ## 4-byte Reload
	movslq	%r13d, %r9
	leal	(%r12,%r12), %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	leal	(%r12,%r12,2), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	leaq	(,%r12,4), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	shlq	$2, %r9
	movq	%r12, -176(%rbp)                ## 8-byte Spill
	shlq	$3, %r12
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, %r13
	movl	%esi, -120(%rbp)                ## 4-byte Spill
	movq	%r9, -160(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%edi, %esi
	movl	%edi, %edx
	movl	$255, %ecx
	callq	_RGBA
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movslq	-108(%rbp,%r12,4), %rax
	movl	(%r15,%rax,4), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	movl	$255, %ecx
	callq	_RGBA
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r13), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movslq	-104(%rbp,%r12,4), %rax
	movl	(%r15,%rax,4), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	movl	$255, %ecx
	callq	_RGBA
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r13), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movslq	-100(%rbp,%r12,4), %rax
	movl	(%r15,%rax,4), %edi
	movl	%edi, %esi
	movl	%edi, %edx
	movl	$255, %ecx
	callq	_RGBA
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r13), %rdi
	movl	%eax, %esi
	callq	_AV_WL32
	movq	-160(%rbp), %r9                 ## 8-byte Reload
	movl	-120(%rbp), %esi                ## 4-byte Reload
	movl	-116(%rbp), %r8d                ## 4-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %r12
	addq	%r9, %r13
	addl	%esi, %ebx
	cmpq	$16, %r12
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-112(%rbp,%r12,4), %rax
	movl	(%r15,%rax,4), %edi
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ebx, %rax
	movl	%edi, (%r14,%rax,4)
	movslq	-108(%rbp,%r12,4), %rcx
	movl	(%r15,%rcx,4), %ecx
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	addl	%eax, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%r14,%rdx,4)
	movslq	-104(%rbp,%r12,4), %rcx
	movl	(%r15,%rcx,4), %ecx
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	addl	%eax, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%r14,%rdx,4)
	movslq	-100(%rbp,%r12,4), %rcx
	movl	(%r15,%rcx,4), %ecx
	addl	-124(%rbp), %eax                ## 4-byte Folded Reload
	cltq
	movl	%ecx, (%r14,%rax,4)
	jmp	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rgtc_block_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgtc_block_internal
_rgtc_block_internal:                   ; @rgtc_block_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x1, x2, #8
	add	x26, sp, #40
	add	x0, sp, #40
	bl	_decompress_indices
	mov	x27, #0
	sxtw	x8, w19
	lsl	w9, w19, #1
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	add	w9, w9, w19
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
	add	x8, x8, w19, sxtw #1
	lsl	x9, x8, #2
	sbfiz	x28, x23, #2, #32
	sbfiz	x8, x19, #3, #32
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	sbfiz	x8, x19, #2, #32
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	x25, x24
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	mov	x2, x0
	mov	w3, #255
	bl	_RGBA
	mov	x1, x0
	mov	x0, x25
	bl	_AV_WL32
	add	x19, x26, x27
	ldrsw	x8, [x19, #4]
	ldr	w0, [x22, x8, lsl #2]
	mov	x1, x0
	mov	x2, x0
	mov	w3, #255
	bl	_RGBA
	mov	x1, x0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x0, x25, x8
	bl	_AV_WL32
	ldrsw	x8, [x19, #8]
	ldr	w0, [x22, x8, lsl #2]
	mov	x1, x0
	mov	x2, x0
	mov	w3, #255
	bl	_RGBA
	mov	x1, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x0, x25, x8
	bl	_AV_WL32
	ldrsw	x8, [x19, #12]
	ldr	w0, [x22, x8, lsl #2]
	mov	x1, x0
	mov	x2, x0
	mov	w3, #255
	bl	_RGBA
	mov	x1, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x0, x25, x8
	bl	_AV_WL32
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #16
	add	w20, w20, w23
	add	x25, x25, x28
	cmp	x27, #64
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x26, x27]
	ldr	w0, [x22, x8, lsl #2]
	cbz	w21, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w0, [x24, w20, sxtw #2]
	add	x8, x26, x27
	ldpsw	x9, x10, [x8, #4]
	ldr	w9, [x22, x9, lsl #2]
	ldr	x11, [sp, #32]                  ; 8-byte Folded Reload
	add	w11, w11, w20
	str	w9, [x24, w11, sxtw #2]
	ldr	w9, [x22, x10, lsl #2]
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	add	w10, w10, w20
	str	w9, [x24, w10, sxtw #2]
	ldrsw	x8, [x8, #12]
	ldr	w8, [x22, x8, lsl #2]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	add	w9, w9, w20
	str	w8, [x24, w9, sxtw #2]
	b	LBB0_2
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rgtc_block_internal
.subsections_via_symbols
