	.file	"extr_vc4_validate.c_reloc_tex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"UBO offset greater than UBO size\n"
	.align 8
.LC1:
	.string	"UBO clamp would allow reads outside of UBO\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Cube map stride set twice\n"
.LC3:
	.string	"Cube map stride not set\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Texture format %d unsupported\n"
	.align 8
.LC5:
	.string	"Level %d (%dx%d -> %dx%d) size %db overflowed buffer bounds (offset %d)\n"
	.section	.rodata.str1.1
.LC6:
	.string	"Texture p0 at %d: 0x%08x\n"
.LC7:
	.string	"Texture p1 at %d: 0x%08x\n"
.LC8:
	.string	"Texture p2 at %d: 0x%08x\n"
.LC9:
	.string	"Texture p3 at %d: 0x%08x\n"
	.text
	.p2align 4
	.type	reloc_tex, @function
reloc_tex:
.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
	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
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR 24[rsp], rdi
	movsx	rdx, DWORD PTR 4[rax]
	movsx	rcx, DWORD PTR [rax]
	mov	DWORD PTR 64[rsp], r8d
	mov	DWORD PTR 20[rsp], 0
	mov	r15d, DWORD PTR [rsi+rdx]
	movsx	rdx, DWORD PTR 8[rax]
	mov	r14d, DWORD PTR [rsi+rcx]
	cmp	edx, -1
	je	.L2
	mov	edx, DWORD PTR [rsi+rdx]
	mov	DWORD PTR 20[rsp], edx
.L2:
	movsx	rax, DWORD PTR 12[rax]
	mov	DWORD PTR 48[rsp], 0
	cmp	eax, -1
	je	.L3
	mov	eax, DWORD PTR [rsi+rax]
	mov	DWORD PTR 48[rsp], eax
.L3:
	mov	r13, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR VC4_TEX_P0_MIPLVLS[rip]
	mov	edi, r14d
	mov	r12d, DWORD PTR VC4_TEX_P0_OFFSET_MASK[rip]
	mov	rax, QWORD PTR 0[r13]
	lea	rax, [rax+rcx*4]
	mov	QWORD PTR 40[rsp], rax
	call	VC4_GET_FIELD@PLT
	mov	esi, DWORD PTR VC4_TEX_P1_WIDTH[rip]
	mov	edi, r15d
	mov	DWORD PTR 12[rsp], eax
	call	VC4_GET_FIELD@PLT
	mov	esi, DWORD PTR VC4_TEX_P1_HEIGHT[rip]
	mov	edi, r15d
	mov	DWORD PTR 4[rsp], eax
	call	VC4_GET_FIELD@PLT
	mov	esi, ebp
	mov	rdi, r13
	mov	DWORD PTR 8[rsp], eax
	call	vc4_use_bo@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	je	.L36
	cmp	QWORD PTR 8[rbx], 0
	je	.L5
	mov	eax, DWORD PTR 4[rax]
	mov	edx, eax
	sub	eax, 3
	sub	edx, r14d
	cmp	eax, r14d
	jle	.L65
	sub	edx, 3
	cmp	edx, r15d
	jle	.L66
	mov	rbx, QWORD PTR 32[rsp]
	mov	r12d, 1
	mov	eax, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 40[rsp]
	add	eax, r14d
	mov	DWORD PTR [rbx], eax
.L1:
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ecx, DWORD PTR 4[rsp]
	mov	eax, 2048
	mov	r13d, r14d
	test	ecx, ecx
	cmove	ecx, eax
	mov	DWORD PTR 4[rsp], ecx
	mov	ecx, DWORD PTR 8[rsp]
	test	ecx, ecx
	cmovne	eax, ecx
	mov	DWORD PTR 8[rsp], eax
	and	r13d, DWORD PTR VC4_TEX_P0_CMMODE_MASK[rip]
	je	.L11
	mov	esi, DWORD PTR VC4_TEX_P2_PTYPE[rip]
	mov	edi, DWORD PTR 20[rsp]
	call	VC4_GET_FIELD@PLT
	cmp	eax, DWORD PTR VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE[rip]
	je	.L67
	mov	esi, DWORD PTR VC4_TEX_P2_PTYPE[rip]
	mov	edi, DWORD PTR 48[rsp]
	call	VC4_GET_FIELD@PLT
	cmp	eax, DWORD PTR VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE[rip]
	je	.L14
.L33:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [rbx]
	mov	edx, r14d
	lea	rdi, .LC6[rip]
	xor	r12d, r12d
	mov	esi, DWORD PTR [rax]
	call	DRM_INFO@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, r15d
	lea	rdi, .LC7[rip]
	mov	esi, DWORD PTR 4[rax]
	call	DRM_INFO@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 20[rsp]
	lea	rdi, .LC8[rip]
	mov	esi, DWORD PTR 8[rax]
	call	DRM_INFO@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 48[rsp]
	lea	rdi, .LC9[rip]
	mov	esi, DWORD PTR 12[rax]
	call	DRM_INFO@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r13d, DWORD PTR 48[rsp]
	and	r13d, DWORD PTR VC4_TEX_P2_CMST_MASK[rip]
.L13:
	test	r13d, r13d
	je	.L33
.L11:
	mov	esi, DWORD PTR VC4_TEX_P0_TYPE[rip]
	mov	edi, r14d
	call	VC4_GET_FIELD@PLT
	mov	esi, DWORD PTR VC4_TEX_P1_TYPE4[rip]
	mov	edi, r15d
	mov	ebp, eax
	call	VC4_GET_FIELD@PLT
	sal	eax, 4
	or	ebp, eax
	lea	eax, -131[rbp]
	cmp	eax, 14
	ja	.L15
	lea	rdx, .L17[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L37-.L17
	.long	.L19-.L17
	.long	.L19-.L17
	.long	.L20-.L17
	.long	.L20-.L17
	.long	.L15-.L17
	.long	.L19-.L17
	.long	.L19-.L17
	.long	.L20-.L17
	.long	.L19-.L17
	.long	.L37-.L17
	.long	.L19-.L17
	.long	.L18-.L17
	.long	.L15-.L17
	.long	.L37-.L17
	.text
	.p2align 4,,10
	.p2align 3
.L19:
	mov	DWORD PTR 16[rsp], 2
.L16:
	mov	edi, DWORD PTR 16[rsp]
	call	utile_width@PLT
	mov	edi, DWORD PTR 16[rsp]
	mov	DWORD PTR 56[rsp], eax
	call	utile_height@PLT
	mov	DWORD PTR 52[rsp], eax
	cmp	ebp, 139
	jne	.L21
	mov	eax, DWORD PTR VC4_TILING_FORMAT_LINEAR[rip]
	mov	ecx, eax
.L22:
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	mov	ebp, r12d
	lea	edx, 0[r13+r13*4]
	mov	r13d, ecx
	mov	eax, DWORD PTR 24[rsp]
	and	ebp, r14d
	add	edx, ebp
	push	rax
	.cfi_def_cfa_offset 176
	mov	r9d, DWORD PTR 24[rsp]
	mov	r8d, DWORD PTR 20[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	call	vc4_check_tex_size@PLT
	pop	rdi
	.cfi_def_cfa_offset 168
	pop	r8
	.cfi_def_cfa_offset 160
	test	eax, eax
	je	.L7
	mov	esi, DWORD PTR 12[rsp]
	test	esi, esi
	jle	.L23
	mov	DWORD PTR 72[rsp], r14d
	mov	r12d, 1
	mov	DWORD PTR 76[rsp], r15d
	mov	QWORD PTR 80[rsp], rbx
	mov	ebx, r13d
.L32:
	mov	edi, DWORD PTR 4[rsp]
	mov	ecx, r12d
	mov	esi, 1
	sar	edi, cl
	call	max@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, r12d
	mov	esi, 1
	mov	r14, rax
	mov	r13d, eax
	sar	edi, cl
	call	max@PLT
	mov	DWORD PTR 68[rsp], eax
	mov	r15, rax
	cmp	ebx, 128
	je	.L68
	cmp	ebx, 129
	je	.L69
	mov	esi, DWORD PTR 56[rsp]
	mov	edi, r14d
	call	round_up@PLT
	mov	edx, DWORD PTR 16[rsp]
	imul	edx, eax
	imul	edx, r15d
	cmp	ebp, edx
	jl	.L70
	sub	ebp, edx
	add	r12d, 1
	cmp	DWORD PTR 12[rsp], r12d
	jge	.L32
.L62:
	mov	r14d, DWORD PTR 72[rsp]
.L23:
	mov	rbx, QWORD PTR 32[rsp]
	mov	r12d, 1
	mov	eax, DWORD PTR [rbx]
	mov	rbx, QWORD PTR 40[rsp]
	add	eax, r14d
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 64[rsp]
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR 32[rsp]
	add	rdi, 4
	call	to_vc4_bo@PLT
	mov	rbx, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR [rax]
	mov	edi, DWORD PTR 8[rbx]
	call	max@PLT
	mov	DWORD PTR 8[rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	DWORD PTR 16[rsp], 1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L20:
	mov	DWORD PTR 16[rsp], 4
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L67:
	mov	esi, DWORD PTR VC4_TEX_P2_PTYPE[rip]
	mov	edi, DWORD PTR 48[rsp]
	mov	r13d, DWORD PTR 20[rsp]
	and	r13d, DWORD PTR VC4_TEX_P2_CMST_MASK[rip]
	call	VC4_GET_FIELD@PLT
	cmp	eax, DWORD PTR VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE[rip]
	jne	.L13
	test	r13d, r13d
	je	.L14
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR 4[rsp]
	mov	edi, 8
	add	eax, 3
	sar	eax, 2
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR 8[rsp]
	add	eax, 3
	sar	eax, 2
	mov	DWORD PTR 8[rsp], eax
	call	utile_width@PLT
	mov	edi, 8
	mov	DWORD PTR 56[rsp], eax
	call	utile_height@PLT
	mov	DWORD PTR 16[rsp], 8
	mov	DWORD PTR 52[rsp], eax
.L21:
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR 4[rsp]
	call	size_is_lt@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	sub	eax, -128
	mov	ecx, eax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, ebp
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L36:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L68:
	mov	eax, DWORD PTR 56[rsp]
	mov	r15d, DWORD PTR 76[rsp]
	mov	r14d, DWORD PTR 72[rsp]
	mov	rbx, QWORD PTR 80[rsp]
	sal	eax, 3
	mov	DWORD PTR 80[rsp], r15d
	mov	DWORD PTR 72[rsp], eax
	mov	DWORD PTR 76[rsp], r14d
	mov	r14d, DWORD PTR 16[rsp]
	mov	QWORD PTR 88[rsp], rbx
	mov	ebx, DWORD PTR 68[rsp]
.L29:
	mov	edx, r14d
	mov	esi, ebx
	mov	edi, r13d
	call	size_is_lt@PLT
	test	rax, rax
	je	.L71
	mov	eax, DWORD PTR 76[rsp]
	mov	r14d, DWORD PTR 56[rsp]
	mov	r15d, ebx
	mov	DWORD PTR 72[rsp], eax
	mov	eax, DWORD PTR 80[rsp]
	mov	DWORD PTR 76[rsp], eax
	mov	rax, QWORD PTR 88[rsp]
	mov	QWORD PTR 56[rsp], rax
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L72:
	sub	ebp, edx
	add	r12d, 1
	cmp	DWORD PTR 12[rsp], r12d
	jl	.L62
	mov	edi, DWORD PTR 4[rsp]
	mov	ecx, r12d
	mov	esi, 1
	sar	edi, cl
	call	max@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, r12d
	mov	esi, 1
	mov	r13d, eax
	sar	edi, cl
	call	max@PLT
	mov	r15d, eax
.L30:
	mov	esi, r14d
	mov	edi, r13d
	call	round_up@PLT
	mov	esi, DWORD PTR 52[rsp]
	mov	edi, r15d
	mov	ebx, eax
	call	round_up@PLT
	mov	edx, DWORD PTR 16[rsp]
	imul	edx, ebx
	imul	edx, eax
	cmp	edx, ebp
	jle	.L72
	mov	DWORD PTR 68[rsp], r15d
	mov	r8d, ebx
	mov	r14d, DWORD PTR 72[rsp]
	mov	r9d, eax
	mov	r15d, DWORD PTR 76[rsp]
	mov	rbx, QWORD PTR 56[rsp]
	mov	eax, edx
.L28:
	push	rbp
	.cfi_def_cfa_offset 168
	mov	edx, r13d
	mov	esi, r12d
	lea	rdi, .LC5[rip]
	push	rax
	.cfi_def_cfa_offset 176
	mov	ecx, DWORD PTR 84[rsp]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	pop	rdx
	.cfi_def_cfa_offset 168
	pop	rcx
	.cfi_def_cfa_offset 160
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L71:
	mov	esi, DWORD PTR 72[rsp]
	mov	edi, r13d
	call	round_up@PLT
	mov	edi, ebx
	mov	r15d, eax
	mov	eax, DWORD PTR 52[rsp]
	lea	esi, 0[0+rax*8]
	call	round_up@PLT
	mov	r9d, eax
	mov	eax, r15d
	imul	eax, r14d
	imul	eax, r9d
	cmp	eax, ebp
	jg	.L59
	sub	ebp, eax
	add	r12d, 1
	cmp	DWORD PTR 12[rsp], r12d
	jl	.L60
	mov	edi, DWORD PTR 4[rsp]
	mov	ecx, r12d
	mov	esi, 1
	sar	edi, cl
	call	max@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	ecx, r12d
	mov	esi, 1
	mov	r13d, eax
	sar	edi, cl
	call	max@PLT
	mov	ebx, eax
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L66:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L69:
	mov	rbx, QWORD PTR 80[rsp]
	mov	r14d, DWORD PTR 56[rsp]
	mov	r15d, DWORD PTR 68[rsp]
	mov	QWORD PTR 56[rsp], rbx
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L65:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L70:
	mov	r9, r15
	mov	r8d, eax
	mov	r14d, DWORD PTR 72[rsp]
	mov	r15d, DWORD PTR 76[rsp]
	mov	rbx, QWORD PTR 80[rsp]
	mov	eax, edx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L60:
	mov	r14d, DWORD PTR 76[rsp]
	jmp	.L23
.L59:
	mov	DWORD PTR 68[rsp], ebx
	mov	r8d, r15d
	mov	r14d, DWORD PTR 76[rsp]
	mov	r15d, DWORD PTR 80[rsp]
	mov	rbx, QWORD PTR 88[rsp]
	jmp	.L28
	.cfi_endproc
.LFE0:
	.size	reloc_tex, .-reloc_tex
	.comm	VC4_TILING_FORMAT_LINEAR,4,4
	.comm	VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE,4,4
	.comm	VC4_TEX_P2_PTYPE,4,4
	.comm	VC4_TEX_P2_CMST_MASK,4,4
	.comm	VC4_TEX_P1_WIDTH,4,4
	.comm	VC4_TEX_P1_TYPE4,4,4
	.comm	VC4_TEX_P1_HEIGHT,4,4
	.comm	VC4_TEX_P0_TYPE,4,4
	.comm	VC4_TEX_P0_OFFSET_MASK,4,4
	.comm	VC4_TEX_P0_MIPLVLS,4,4
	.comm	VC4_TEX_P0_CMMODE_MASK,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_vc4_validate.c_reloc_tex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UBO offset greater than UBO size\012\000"
	.align	2
.LC1:
	.ascii	"UBO clamp would allow reads outside of UBO\012\000"
	.align	2
.LC2:
	.ascii	"Cube map stride set twice\012\000"
	.align	2
.LC3:
	.ascii	"Cube map stride not set\012\000"
	.align	2
.LC4:
	.ascii	"Texture format %d unsupported\012\000"
	.align	2
.LC5:
	.ascii	"Level %d (%dx%d -> %dx%d) size %db overflowed buffe"
	.ascii	"r bounds (offset %d)\012\000"
	.align	2
.LC6:
	.ascii	"Texture p0 at %d: 0x%08x\012\000"
	.align	2
.LC7:
	.ascii	"Texture p1 at %d: 0x%08x\012\000"
	.align	2
.LC8:
	.ascii	"Texture p2 at %d: 0x%08x\012\000"
	.align	2
.LC9:
	.ascii	"Texture p3 at %d: 0x%08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reloc_tex, %function
reloc_tex:
	@ args = 4, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	ldr	r2, [r2]
	sub	sp, sp, #84
	str	r0, [sp, #28]
	ldr	r0, [r2, #8]
	mov	r4, r3
	cmn	r0, #1
	moveq	r3, #0
	ldrne	r3, [r1, r0]
	ldr	lr, [r2]
	str	r3, [sp, #40]
	ldr	r3, [r2, #12]
	ldr	r5, [sp, #28]
	cmn	r3, #1
	moveq	r3, #0
	ldrne	r3, [r1, r3]
	ldr	ip, [r2, #4]
	str	r3, [sp, #44]
	ldr	r3, .L72
	ldr	r9, [r1, lr]
	ldr	r2, .L72+4
	ldr	r8, [r3]
	ldr	r3, [r5]
	ldr	r10, [r1, ip]
	mov	r0, r9
	ldr	r1, [r2]
	str	lr, [sp, #48]
	str	r3, [sp, #52]
	bl	VC4_GET_FIELD
	mov	r3, r0
	ldr	r2, .L72+8
	mov	r0, r10
	ldr	r1, [r2]
	str	r3, [sp, #24]
	bl	VC4_GET_FIELD
	ldr	r2, .L72+12
	mov	fp, r0
	ldr	r1, [r2]
	mov	r0, r10
	bl	VC4_GET_FIELD
	mov	r3, r0
	mov	r1, r4
	mov	r0, r5
	str	r3, [sp, #20]
	bl	vc4_use_bo
	subs	r2, r0, #0
	str	r2, [sp, #36]
	beq	.L62
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r2, #4]
	sub	r2, r3, #3
	cmp	r2, r9
	sub	r3, r3, r9
	ble	.L64
	sub	r3, r3, #3
	cmp	r3, r10
	ble	.L65
	mov	r0, #1
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #48]
	ldr	r3, [r3]
	add	r9, r3, r9
	ldr	r3, [sp, #52]
	str	r9, [r3, r2, lsl #2]
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L72+16
	cmp	fp, #0
	ldr	r4, [r3]
	ldr	r3, [sp, #20]
	moveq	fp, #2048
	cmp	r3, #0
	moveq	r3, #2048
	ands	r4, r9, r4
	str	r3, [sp, #20]
	beq	.L11
	ldr	r4, .L72+20
	ldr	r0, [sp, #40]
	ldr	r1, [r4]
	bl	VC4_GET_FIELD
	ldr	r5, .L72+24
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L66
	ldr	r1, [r4]
	ldr	r0, [sp, #44]
	bl	VC4_GET_FIELD
	ldr	r3, [r5]
	cmp	r0, r3
	ldreq	r7, .L72+28
	beq	.L14
.L33:
	ldr	r0, .L72+32
	bl	DRM_DEBUG
.L7:
	ldr	r3, [r6]
	mov	r2, r9
	ldr	r1, [r3]
	ldr	r0, .L72+36
	bl	DRM_INFO
	ldr	r3, [r6]
	mov	r2, r10
	ldr	r1, [r3, #4]
	ldr	r0, .L72+40
	bl	DRM_INFO
	ldr	r3, [r6]
	ldr	r2, [sp, #40]
	ldr	r1, [r3, #8]
	ldr	r0, .L72+44
	bl	DRM_INFO
	ldr	r3, [r6]
	ldr	r2, [sp, #44]
	ldr	r1, [r3, #12]
	ldr	r0, .L72+48
	bl	DRM_INFO
.L62:
	mov	r0, #0
.L1:
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r4, [r7]
	ldr	r3, [sp, #44]
	and	r4, r4, r3
.L13:
	cmp	r4, #0
	beq	.L33
.L11:
	ldr	r3, .L72+52
	mov	r0, r9
	ldr	r1, [r3]
	bl	VC4_GET_FIELD
	ldr	r3, .L72+56
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r10
	bl	VC4_GET_FIELD
	orr	r5, r5, r0, lsl #4
	sub	r3, r5, #131
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L17:
	.word	.L37
	.word	.L19
	.word	.L19
	.word	.L20
	.word	.L20
	.word	.L15
	.word	.L19
	.word	.L19
	.word	.L20
	.word	.L19
	.word	.L37
	.word	.L19
	.word	.L18
	.word	.L15
	.word	.L37
.L19:
	mov	r3, #2
	str	r3, [sp, #32]
.L16:
	ldr	r7, [sp, #32]
	mov	r0, r7
	bl	utile_width
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #56]
	bl	utile_height
	cmp	r5, #139
	str	r0, [sp, #60]
	bne	.L21
	ldr	r3, .L72+60
	ldr	r3, [r3]
	mov	r1, r3
.L22:
	ldr	r3, [sp, #32]
	and	r8, r8, r9
	str	r3, [sp, #8]
	ldr	r3, [sp, #20]
	add	r4, r4, r4, lsl #2
	str	r3, [sp, #4]
	mov	r5, r1
	mov	r3, r1
	ldr	r0, [sp, #28]
	ldr	r1, [sp, #36]
	add	r2, r4, r8
	str	fp, [sp]
	bl	vc4_check_tex_size
	cmp	r0, #0
	beq	.L7
	ldr	r3, [sp, #24]
	cmp	r3, #0
	ble	.L23
	mov	r4, #1
	str	r6, [sp, #68]
	ldr	r6, [sp, #56]
	str	r10, [sp, #64]
.L32:
	mov	r1, #1
	asr	r0, fp, r4
	bl	max
	ldr	r3, [sp, #20]
	mov	r7, r0
	mov	r1, #1
	asr	r0, r3, r4
	bl	max
	cmp	r5, #128
	mov	r10, r0
	beq	.L67
	cmp	r5, #129
	beq	.L68
	mov	r1, r6
	mov	r0, r7
	bl	round_up
	ldr	r3, [sp, #32]
	mul	r3, r0, r3
	mul	r3, r10, r3
	cmp	r8, r3
	blt	.L69
	ldr	r2, [sp, #24]
	add	r4, r4, #1
	cmp	r2, r4
	sub	r8, r8, r3
	bge	.L32
.L23:
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #120]
	ldr	r3, [r3]
	cmp	r2, #0
	add	r9, r3, r9
	ldr	r2, [sp, #48]
	ldr	r3, [sp, #52]
	moveq	r0, #1
	str	r9, [r3, r2, lsl #2]
	beq	.L1
	ldr	r3, [sp, #36]
	ldr	r5, [sp, #28]
	add	r0, r3, #4
	ldr	r4, [r5, #4]
	bl	to_vc4_bo
	mov	r3, r0
	mov	r0, r4
	ldr	r1, [r3]
	bl	max
	mov	r3, r0
	mov	r0, #1
	str	r3, [r5, #4]
	b	.L1
.L37:
	mov	r3, #1
	str	r3, [sp, #32]
	b	.L16
.L20:
	mov	r3, #4
	str	r3, [sp, #32]
	b	.L16
.L66:
	ldr	r7, .L72+28
	ldr	r3, [sp, #40]
	ldr	r1, [r4]
	ldr	r4, [r7]
	ldr	r0, [sp, #44]
	and	r4, r4, r3
	bl	VC4_GET_FIELD
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L13
	cmp	r4, #0
	beq	.L14
	ldr	r0, .L72+64
	bl	DRM_DEBUG
	b	.L7
.L15:
	mov	r1, r5
	ldr	r0, .L72+68
	bl	DRM_DEBUG
	b	.L7
.L18:
	ldr	r3, [sp, #20]
	add	r2, fp, #3
	add	r3, r3, #3
	asr	r3, r3, #2
	mov	r0, #8
	asr	fp, r2, #2
	str	r3, [sp, #20]
	bl	utile_width
	mov	r3, r0
	mov	r0, #8
	str	r3, [sp, #56]
	bl	utile_height
	mov	r3, #8
	str	r0, [sp, #60]
	str	r3, [sp, #32]
.L21:
	ldr	r1, [sp, #20]
	mov	r0, fp
	ldr	r2, [sp, #32]
	bl	size_is_lt
	cmp	r0, #0
	movne	r3, #129
	moveq	r3, #128
	mov	r1, r3
	b	.L22
.L67:
	mov	r5, r0
	ldr	r3, [sp, #56]
	ldr	r6, [sp, #68]
	lsl	r3, r3, #3
	ldr	r10, [sp, #64]
	str	r3, [sp, #64]
	ldr	r3, [sp, #60]
	str	r6, [sp, #76]
	lsl	r3, r3, #3
	mov	r6, fp
	ldr	fp, [sp, #32]
	str	r3, [sp, #68]
	str	r10, [sp, #72]
.L29:
	mov	r2, fp
	mov	r1, r5
	mov	r0, r7
	bl	size_is_lt
	cmp	r0, #0
	beq	.L70
	ldr	r3, [sp, #72]
	mov	fp, r6
	str	r3, [sp, #68]
	ldr	r3, [sp, #76]
	ldr	r10, [sp, #60]
	ldr	r6, [sp, #56]
	str	r9, [sp, #64]
	str	r3, [sp, #60]
	b	.L30
.L71:
	ldr	r2, [sp, #24]
	add	r4, r4, #1
	cmp	r2, r4
	asr	r0, fp, r4
	sub	r8, r8, r3
	blt	.L60
	mov	r1, #1
	bl	max
	ldr	r3, [sp, #20]
	mov	r7, r0
	mov	r1, #1
	asr	r0, r3, r4
	bl	max
	mov	r5, r0
.L30:
	mov	r1, r6
	mov	r0, r7
	bl	round_up
	mov	r9, r0
	mov	r1, r10
	mov	r0, r5
	bl	round_up
	ldr	r3, [sp, #32]
	mul	r3, r9, r3
	mul	r3, r0, r3
	cmp	r3, r8
	ble	.L71
	mov	r2, r9
	ldr	r10, [sp, #68]
	ldr	r9, [sp, #64]
	ldr	r6, [sp, #60]
.L28:
	stmib	sp, {r0, r3, r8}
	str	r2, [sp]
	mov	r3, r5
	mov	r2, r7
	mov	r1, r4
	ldr	r0, .L72+72
	bl	DRM_DEBUG
	b	.L7
.L70:
	ldr	r1, [sp, #64]
	mov	r0, r7
	bl	round_up
	mov	r10, r0
	ldr	r1, [sp, #68]
	mov	r0, r5
	bl	round_up
	mul	r1, fp, r10
	mul	r1, r0, r1
	cmp	r1, r8
	bgt	.L57
	ldr	r3, [sp, #24]
	add	r4, r4, #1
	cmp	r3, r4
	asr	r0, r6, r4
	sub	r8, r8, r1
	blt	.L23
	mov	r1, #1
	bl	max
	ldr	r3, [sp, #20]
	mov	r7, r0
	mov	r1, #1
	asr	r0, r3, r4
	bl	max
	mov	r5, r0
	b	.L29
.L65:
	ldr	r0, .L72+76
	bl	DRM_DEBUG
	b	.L7
.L68:
	ldr	r10, [sp, #64]
	ldr	r6, [sp, #68]
	mov	r5, r0
	str	r10, [sp, #68]
	str	r9, [sp, #64]
	ldr	r10, [sp, #60]
	str	r6, [sp, #60]
	ldr	r6, [sp, #56]
	b	.L30
.L64:
	ldr	r0, .L72+80
	bl	DRM_DEBUG
	b	.L7
.L60:
	ldr	r9, [sp, #64]
	b	.L23
.L69:
	mov	r5, r10
	mov	r2, r0
	ldr	r10, [sp, #64]
	mov	r0, r5
	ldr	r6, [sp, #68]
	b	.L28
.L57:
	mov	r2, r10
	mov	r3, r1
	ldr	r10, [sp, #72]
	ldr	r6, [sp, #76]
	b	.L28
.L73:
	.align	2
.L72:
	.word	VC4_TEX_P0_OFFSET_MASK
	.word	VC4_TEX_P0_MIPLVLS
	.word	VC4_TEX_P1_WIDTH
	.word	VC4_TEX_P1_HEIGHT
	.word	VC4_TEX_P0_CMMODE_MASK
	.word	VC4_TEX_P2_PTYPE
	.word	VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE
	.word	VC4_TEX_P2_CMST_MASK
	.word	.LC3
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	VC4_TEX_P0_TYPE
	.word	VC4_TEX_P1_TYPE4
	.word	VC4_TILING_FORMAT_LINEAR
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.word	.LC1
	.word	.LC0
	.size	reloc_tex, .-reloc_tex
	.comm	VC4_TILING_FORMAT_LINEAR,4,4
	.comm	VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE,4,4
	.comm	VC4_TEX_P2_PTYPE,4,4
	.comm	VC4_TEX_P2_CMST_MASK,4,4
	.comm	VC4_TEX_P1_WIDTH,4,4
	.comm	VC4_TEX_P1_TYPE4,4,4
	.comm	VC4_TEX_P1_HEIGHT,4,4
	.comm	VC4_TEX_P0_TYPE,4,4
	.comm	VC4_TEX_P0_OFFSET_MASK,4,4
	.comm	VC4_TEX_P0_MIPLVLS,4,4
	.comm	VC4_TEX_P0_CMMODE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
