	.file	"extr_r600_cs.c_r600_texture_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	r600_texture_size, @function
r600_texture_size:
.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	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r9d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 136[rsp]
	mov	r12d, DWORD PTR 104[rsp]
	mov	DWORD PTR 16[rsp], edi
	mov	DWORD PTR 28[rsp], edx
	sub	edx, esi
	mov	DWORD PTR [rax], -1
	mov	edi, r12d
	lea	r15d, 1[rdx]
	mov	DWORD PTR 4[rsp], edx
	mov	DWORD PTR 24[rsp], esi
	call	r600_fmt_get_blocksize@PLT
	xor	esi, esi
	mov	edi, r13d
	mov	ebx, eax
	call	r600_mip_minify@PLT
	mov	edi, r14d
	xor	esi, esi
	mov	DWORD PTR 8[rsp], eax
	call	r600_mip_minify@PLT
	xor	esi, esi
	mov	edi, ebp
	mov	r14d, eax
	call	r600_mip_minify@PLT
	mov	DWORD PTR 12[rsp], eax
	test	r15d, r15d
	je	.L2
	imul	ebx, DWORD PTR 96[rsp]
	xor	r13d, r13d
	xor	r15d, r15d
	mov	DWORD PTR 20[rsp], ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	imul	ebx, edx
	test	r15d, r15d
	je	.L17
.L5:
	cmp	r15d, 1
	je	.L6
	add	r13d, ebx
	lea	eax, 1[r15]
	cmp	DWORD PTR 4[rsp], r15d
	je	.L18
.L11:
	mov	r15d, eax
.L8:
	mov	edi, DWORD PTR 8[rsp]
	mov	esi, r15d
	call	r600_mip_minify@PLT
	mov	edi, r12d
	mov	esi, eax
	call	r600_fmt_get_nblocksx@PLT
	mov	esi, DWORD PTR 112[rsp]
	mov	edi, eax
	call	round_up@PLT
	mov	esi, r15d
	mov	edi, r14d
	mov	ebx, eax
	call	r600_mip_minify@PLT
	mov	edi, r12d
	mov	esi, eax
	call	r600_fmt_get_nblocksy@PLT
	mov	esi, DWORD PTR 120[rsp]
	mov	edi, eax
	call	round_up@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	esi, r15d
	mov	ebp, eax
	call	r600_mip_minify@PLT
	mov	edx, DWORD PTR 16[rsp]
	imul	ebx, ebp
	imul	ebx, DWORD PTR 20[rsp]
	test	edx, edx
	jne	.L19
	imul	ebx, eax
	test	r15d, r15d
	jne	.L5
.L17:
	mov	rax, QWORD PTR 136[rsp]
	mov	DWORD PTR [rax], ebx
.L6:
	mov	esi, DWORD PTR 128[rsp]
	mov	edi, r13d
	call	round_up@PLT
	mov	r13d, eax
	lea	eax, 1[r15]
	add	r13d, ebx
	cmp	DWORD PTR 4[rsp], r15d
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r15d, r13d
.L2:
	mov	rax, QWORD PTR 144[rsp]
	mov	edx, DWORD PTR 28[rsp]
	mov	DWORD PTR [rax], r15d
	test	edx, edx
	jne	.L9
	mov	rax, QWORD PTR 136[rsp]
	mov	rcx, QWORD PTR 144[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rcx], eax
.L9:
	mov	eax, DWORD PTR 24[rsp]
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 136[rsp]
	mov	rcx, QWORD PTR 144[rsp]
	mov	eax, DWORD PTR [rax]
	sub	DWORD PTR [rcx], eax
.L1:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	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	r600_texture_size, .-r600_texture_size
	.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_r600_cs.c_r600_texture_size.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r600_texture_size, %function
r600_texture_size:
	@ args = 36, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mvn	lr, #0
	mov	ip, r0
	sub	sp, sp, #28
	mov	r5, r3
	ldr	r6, [sp, #76]
	ldr	r3, [sp, #92]
	mov	r0, r6
	str	lr, [r3]
	mov	r9, r2
	mov	r10, r1
	str	ip, [sp, #8]
	str	r2, [sp, #20]
	str	r1, [sp, #16]
	bl	r600_fmt_get_blocksize
	mov	r1, #0
	mov	r4, r0
	mov	r0, r5
	bl	r600_mip_minify
	mov	r1, #0
	mov	r7, r0
	ldr	r0, [sp, #64]
	bl	r600_mip_minify
	mov	r1, #0
	mov	r8, r0
	ldr	r0, [sp, #68]
	bl	r600_mip_minify
	sub	r3, r9, r10
	add	r10, r3, #1
	cmp	r10, #0
	str	r3, [sp, #4]
	beq	.L2
	mov	r5, #0
	ldr	r3, [sp, #72]
	mov	r9, r0
	mul	r3, r4, r3
	mov	r10, r5
	str	r3, [sp, #12]
	b	.L8
.L5:
	cmp	r5, #1
	beq	.L6
.L7:
	ldr	r3, [sp, #4]
	add	r10, r10, r4
	cmp	r3, r5
	add	r5, r5, #1
	beq	.L2
.L8:
	mov	r1, r5
	mov	r0, r7
	bl	r600_mip_minify
	mov	r1, r0
	mov	r0, r6
	bl	r600_fmt_get_nblocksx
	ldr	r1, [sp, #80]
	bl	round_up
	mov	r1, r5
	mov	r4, r0
	mov	r0, r8
	bl	r600_mip_minify
	mov	r1, r0
	mov	r0, r6
	bl	r600_fmt_get_nblocksy
	ldr	r1, [sp, #84]
	bl	round_up
	mov	fp, r0
	mov	r1, r5
	mov	r0, r9
	bl	r600_mip_minify
	mul	r3, fp, r4
	ldr	r1, [sp, #12]
	ldr	r2, [sp, #8]
	mul	r1, r3, r1
	cmp	r2, #0
	mulne	r2, r1, r2
	muleq	r4, r1, r0
	movne	r4, r2
	cmp	r5, #0
	bne	.L5
	ldr	r3, [sp, #92]
	str	r4, [r3]
.L6:
	mov	r0, r10
	ldr	r1, [sp, #88]
	bl	round_up
	mov	r10, r0
	b	.L7
.L2:
	ldr	r3, [sp, #20]
	cmp	r3, #0
	ldr	r3, [sp, #96]
	ldreq	r2, [sp, #96]
	str	r10, [r3]
	ldreq	r3, [sp, #92]
	ldreq	r3, [r3]
	streq	r3, [r2]
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L1
	ldr	r3, [sp, #92]
	ldr	r2, [r3]
	ldr	r3, [sp, #96]
	ldr	r3, [r3]
	sub	r3, r3, r2
	ldr	r2, [sp, #96]
	str	r3, [r2]
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	r600_texture_size, .-r600_texture_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
