	.file	"extr_dds.c_decompress_texture_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decompress_texture_thread, @function
decompress_texture_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	mov	r15, QWORD PTR 8[rdi]
	cdq
	mov	rbp, QWORD PTR 16[r15]
	idiv	DWORD PTR TEXTURE_BLOCK_W[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 4[rdi]
	mov	edi, ebx
	cdq
	idiv	DWORD PTR TEXTURE_BLOCK_H[rip]
	cdq
	idiv	DWORD PTR [r15]
	mov	r12d, eax
	mov	esi, edx
	mov	DWORD PTR 12[rsp], edx
	mov	r13d, eax
	call	FFMIN@PLT
	imul	r12d, ebx
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, r13d
	lea	edi, [r12+rax]
	xor	eax, eax
	add	ecx, edi
	cmp	edx, ebx
	mov	DWORD PTR 4[rsp], edi
	setg	al
	add	ecx, eax
	mov	DWORD PTR 12[rsp], ecx
	cmp	ecx, edi
	jle	.L9
	mov	ecx, DWORD PTR 8[rsp]
	mov	eax, ecx
	imul	eax, edi
	lea	ebx, -1[rcx+rax]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[r14]
	mov	edi, DWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR 4[rsp]
	imul	eax, esi
	imul	eax, DWORD PTR TEXTURE_BLOCK_H[rip]
	cdqe
	test	edi, edi
	jle	.L4
	mov	ecx, 1
	lea	r13, [rdx+rax*4]
	sub	ecx, edi
	lea	r12d, [rcx+rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR [r14]
	add	r12d, 1
	mov	esi, DWORD PTR [rax]
.L5:
	mov	eax, DWORD PTR 4[r15]
	mov	rdi, r13
	add	r13, 64
	imul	eax, r12d
	cdqe
	lea	rdx, 0[rbp+rax*4]
	call	[QWORD PTR 8[r15]]
	cmp	r12d, ebx
	jne	.L12
.L4:
	add	DWORD PTR 4[rsp], 1
	add	ebx, DWORD PTR 8[rsp]
	mov	eax, DWORD PTR 4[rsp]
	cmp	DWORD PTR 12[rsp], eax
	jne	.L6
.L9:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	decompress_texture_thread, .-decompress_texture_thread
	.comm	TEXTURE_BLOCK_W,4,4
	.comm	TEXTURE_BLOCK_H,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dds.c_decompress_texture_thread.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decompress_texture_thread, %function
decompress_texture_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L14
	sub	sp, sp, #12
	mov	r5, r0
	mov	fp, r1
	ldr	r0, [r0]
	ldr	r1, [r3]
	mov	r4, r2
	bl	__aeabi_idiv
	ldr	r3, .L14+4
	mov	r10, r0
	ldmib	r5, {r0, r6}
	ldr	r1, [r3]
	bl	__aeabi_idiv
	ldr	r1, [r6]
	bl	__aeabi_idivmod
	mov	r5, r0
	mov	r0, r4
	mov	r7, r1
	ldr	r8, [r6, #12]
	bl	FFMIN
	mul	r9, r4, r5
	add	r9, r9, r0
	add	r3, r5, r9
	cmp	r7, r4
	str	r3, [sp, #4]
	addgt	r3, r3, #1
	strgt	r3, [sp, #4]
	ldr	r3, [sp, #4]
	cmp	r3, r9
	ble	.L9
	mla	r7, r9, r10, r10
.L6:
	ldr	r3, [fp]
	ldr	r2, .L14+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mul	r5, r9, r1
	mul	r5, r2, r5
	ldr	r3, [fp, #4]
	cmp	r10, #0
	ldr	r3, [r3]
	lsl	r5, r5, #2
	ble	.L4
	add	r5, r3, r5
	sub	r4, r7, r10
	b	.L5
.L13:
	ldr	r3, [fp]
	ldr	r1, [r3]
.L5:
	ldr	r2, [r6, #4]
	mov	r0, r5
	mul	r2, r4, r2
	ldr	r3, [r6, #8]
	add	r2, r8, r2, lsl #2
	add	r4, r4, #1
	blx	r3
	cmp	r4, r7
	add	r5, r5, #64
	bne	.L13
.L4:
	ldr	r3, [sp, #4]
	add	r9, r9, #1
	cmp	r3, r9
	add	r7, r7, r10
	bne	.L6
.L9:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	TEXTURE_BLOCK_W
	.word	TEXTURE_BLOCK_H
	.size	decompress_texture_thread, .-decompress_texture_thread
	.comm	TEXTURE_BLOCK_W,4,4
	.comm	TEXTURE_BLOCK_H,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
