	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decompress_texture_thread
_decompress_texture_thread:             ## @decompress_texture_thread
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rsi
	movq	16(%rsi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %eax
	movq	_TEXTURE_BLOCK_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	_TEXTURE_BLOCK_H@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cltd
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	idivl	(%rsi)
	movl	%edx, %r15d
	movl	%eax, %r12d
	movl	%eax, %ebx
	imull	%r14d, %ebx
	movl	%r14d, %edi
	movl	%edx, %esi
	callq	_FFMIN
	movq	%rax, %rcx
	addl	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %r15d
	setg	%al
	addl	%r12d, %eax
	addl	%ecx, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %ecx
	jge	LBB0_7
## %bb.1:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	movslq	%ecx, %rcx
	movslq	%eax, %rdx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	decq	%rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	imulq	%rcx, %rdx
	incq	%rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdx), %rax
	movq	8(%rdx), %rcx
	movl	(%rax), %ebx
	movl	%ebx, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	imull	%esi, %eax
	movq	_TEXTURE_BLOCK_H@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	imull	%r15d, %eax
	movq	%rsi, %rdx
	imulq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	movq	(%rcx), %r12
	cltq
	leaq	(%r12,%rax,4), %rdi
	movslq	4(%r14), %rax
	imulq	%rdx, %rax
	leaq	(,%rax,4), %rdx
	addq	%r13, %rdx
	movl	%ebx, %esi
	callq	*8(%r14)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$1, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rcx
	imull	%r15d, %ebx
	imull	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rbx
	addq	$64, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx), %rax
	movl	(%rax), %esi
	movslq	4(%r14), %rax
	imulq	%r15, %rax
	leaq	(%rcx,%rax,4), %rdx
	movq	%rbx, %rdi
	callq	*8(%r14)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	addq	$64, %rbx
	incq	%r15
	decq	%r12
	jne	LBB0_5
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$72, %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
.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
_decompress_texture_thread:             ; @decompress_texture_thread
	.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	x20, x2
	mov	x19, x1
	ldr	x22, [x0, #8]
	ldr	x23, [x22, #16]
Lloh0:
	adrp	x8, _TEXTURE_BLOCK_W@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEXTURE_BLOCK_W@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x9, _TEXTURE_BLOCK_H@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEXTURE_BLOCK_H@GOTPAGEOFF]
	ldp	w25, w8, [x0]
Lloh5:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	ldr	w9, [x22]
	sdiv	w26, w8, w9
	msub	w21, w26, w9, w8
	mov	x0, x2
	mov	x1, x21
	bl	_FFMIN
	madd	w8, w26, w20, w0
	cmp	w21, w20
	cinc	w9, w26, gt
	add	w21, w9, w8
	cmp	w8, w21
	b.ge	LBB0_7
; %bb.1:
	sdiv	w9, w25, w24
	sxtw	x25, w8
	sub	x10, x9, #1
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	smull	x8, w9, w8
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x27, w9
	add	x24, x8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	add	x24, x24, x27
	cmp	w21, w25
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w27, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x19]
	ldr	x26, [x8]
	ldr	w20, [x9]
	mul	w8, w20, w25
Lloh6:
	adrp	x9, _TEXTURE_BLOCK_H@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TEXTURE_BLOCK_H@GOTPAGEOFF]
Lloh8:
	ldr	w28, [x9]
	mul	w8, w8, w28
	add	x0, x26, w8, sxtw #2
	mul	x8, x25, x27
	ldr	x9, [x22, #8]
	ldrsw	x10, [x22, #4]
	mul	x8, x8, x10
	add	x2, x23, x8, lsl #2
	mov	x1, x20
	blr	x9
	cmp	w27, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	w8, w20, w28
	mul	w8, w8, w25
	add	x8, x26, w8, sxtw #2
	add	x20, x8, #64
	mov	x28, x24
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	w1, [x8]
	ldr	x8, [x22, #8]
	ldrsw	x9, [x22, #4]
	mul	x9, x28, x9
	add	x2, x23, x9, lsl #2
	mov	x0, x20
	blr	x8
	add	x20, x20, #64
	add	x28, x28, #1
	subs	x26, x26, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_7:
	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
.subsections_via_symbols
