	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decompress_texture_thread_internal
_decompress_texture_thread_internal:    ## @decompress_texture_thread_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	32(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_TEXTURE_BLOCK_W@GOTPCREL(%rip), %rsi
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	cltd
	idivl	(%rsi)
	movl	%eax, %ebx
	movq	_TEXTURE_BLOCK_H@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	cltd
	idivl	(%r13)
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %r12d
	movl	%eax, %r14d
	imull	%r15d, %r14d
	movl	%r15d, %edi
	movl	%edx, %esi
	callq	_FFMIN
	addl	%r14d, %eax
	xorl	%ecx, %ecx
	cmpl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	setg	%cl
	addl	%r12d, %ecx
	addl	%eax, %ecx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	jge	LBB0_9
## %bb.1:
	movl	%ebx, %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, -52(%rbp)                 ## 4-byte Folded Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movslq	(%rax), %rax
	movslq	-48(%rbp), %rdx                 ## 4-byte Folded Reload
	imulq	%rax, %rdx
	movq	_TEXTURE_BLOCK_H@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	imulq	%rdx, %r12
	shlq	$2, %r12
	addq	(%rcx), %r12
	xorl	%r14d, %r14d
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movslq	4(%r13), %rax
	movslq	%r14d, %rcx
	imulq	%rax, %rcx
	leaq	(%r12,%rcx,4), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	movslq	12(%r13), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdx
	callq	*16(%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	addl	$4, %r14d
	incl	%r15d
	decl	%ebx
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movslq	4(%r13), %rax
	movslq	%r14d, %rcx
	imulq	%rax, %rcx
	leaq	(%r12,%rcx,4), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %esi
	movslq	8(%r13), %rax
	movslq	%r15d, %rcx
	imulq	%rax, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdx
	callq	*24(%r13)
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEXTURE_BLOCK_W,4,2            ## @TEXTURE_BLOCK_W
	.comm	_TEXTURE_BLOCK_H,4,2            ## @TEXTURE_BLOCK_H
	.no_dead_strip	_decompress_texture_thread_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decompress_texture_thread_internal
_decompress_texture_thread_internal:    ; @decompress_texture_thread_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x21, x2
	mov	x20, x1
	ldr	x23, [x0, #8]
	ldr	x24, [x23, #32]
Lloh0:
	adrp	x8, _TEXTURE_BLOCK_W@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEXTURE_BLOCK_W@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x9, _TEXTURE_BLOCK_H@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEXTURE_BLOCK_H@GOTPAGEOFF]
	ldp	w27, w8, [x0]
Lloh5:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	ldr	w9, [x23]
	sdiv	w28, w8, w9
	msub	w22, w28, w9, w8
	mov	x0, x2
	mov	x1, x22
	bl	_FFMIN
	madd	w26, w28, w21, w0
	cmp	w22, w21
	cinc	w8, w28, gt
	add	w8, w8, w26
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	cmp	w26, w8
	b.ge	LBB0_9
; %bb.1:
	sdiv	w9, w27, w25
	mul	w21, w9, w26
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	ldp	w8, w9, [sp, #8]                ; 8-byte Folded Reload
	add	w21, w21, w9
	cmp	w26, w8
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	ldp	x9, x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x9]
	mul	w9, w9, w26
Lloh6:
	adrp	x10, _TEXTURE_BLOCK_H@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TEXTURE_BLOCK_H@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mul	w9, w9, w10
	add	x25, x8, w9, sxtw #2
	mov	x27, x21
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x23, #16]
	ldr	w9, [x23, #4]
	mul	w9, w28, w9
	add	x0, x25, w9, sxtw #2
	ldr	x9, [x20]
	ldr	w1, [x9]
	ldr	w9, [x23, #12]
	mul	w9, w9, w27
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x2, x24, w9, sxtw #2
	blr	x8
	add	w28, w28, #4
	add	w27, w27, #1
	subs	w22, w22, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w19, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x23, #24]
	ldp	w9, w10, [x23, #4]
	mul	w9, w28, w9
	add	x0, x25, w9, sxtw #2
	ldr	x9, [x20]
	ldr	w1, [x9]
	mul	w9, w10, w27
	b	LBB0_6
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TEXTURE_BLOCK_W,4,2            ; @TEXTURE_BLOCK_W
	.comm	_TEXTURE_BLOCK_H,4,2            ; @TEXTURE_BLOCK_H
	.no_dead_strip	_decompress_texture_thread_internal
.subsections_via_symbols
