	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reloc_tex
_reloc_tex:                             ## @reloc_tex
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -132(%rbp)                ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	(%rdx), %rax
	movslq	(%rax), %rbx
	movslq	4(%rax), %r8
	movslq	8(%rax), %rdx
	xorl	%ecx, %ecx
	movl	$0, %edi
	cmpq	$-1, %rdx
	je	LBB0_2
## %bb.1:
	movl	(%rsi,%rdx), %edi
LBB0_2:
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	movl	(%rsi,%rbx), %edi
	movl	(%rsi,%r8), %ebx
	movslq	12(%rax), %rax
	cmpq	$-1, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rsi,%rax), %ecx
LBB0_4:
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	(%r15), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	_VC4_TEX_P0_OFFSET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_VC4_TEX_P0_MIPLVLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_VC4_GET_FIELD
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_VC4_TEX_P1_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_VC4_GET_FIELD
	movl	%eax, %r13d
	movq	_VC4_TEX_P1_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_VC4_GET_FIELD
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_vc4_use_bo
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_46
## %bb.5:
	movq	-112(%rbp), %r12                ## 8-byte Reload
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.6:
	movl	4(%rax), %esi
	leal	-4(%rsi), %ecx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	jle	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_12:
	testl	%r13d, %r13d
	movl	$2048, %ecx                     ## imm = 0x800
	cmovel	%ecx, %r13d
	testl	%r14d, %r14d
	cmovel	%ecx, %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_VC4_TEX_P0_CMMODE_MASK@GOTPCREL(%rip), %rcx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, (%rcx)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	je	LBB0_13
## %bb.16:
	movq	_VC4_TEX_P2_PTYPE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_VC4_GET_FIELD
	movq	_VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE@GOTPCREL(%rip), %r13
	movq	_VC4_TEX_P2_CMST_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	xorl	%r14d, %r14d
	cmpl	(%r13), %eax
	cmovel	%ecx, %r14d
	movl	(%r15), %esi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_VC4_GET_FIELD
	cmpl	(%r13), %eax
	jne	LBB0_21
## %bb.17:
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_19
LBB0_9:
	subl	%edx, %esi
	addl	$-4, %esi
	cmpl	%esi, %ebx
	jle	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_45
LBB0_11:
	addl	(%rax), %edx
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	%edx, (%rcx,%rax,4)
	movl	$1, %ecx
	jmp	LBB0_46
LBB0_13:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_20:
	movq	_VC4_TEX_P2_CMST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%ebx, %r14d
LBB0_21:
	testl	%r14d, %r14d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_22
LBB0_14:
	movq	_VC4_TEX_P0_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_GET_FIELD
	movl	%eax, %r15d
	movq	_VC4_TEX_P1_TYPE4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_VC4_GET_FIELD
	movl	%eax, %ebx
	shll	$4, %ebx
	orl	%r15d, %ebx
	leal	-131(%rbx), %eax
	cmpl	$14, %eax
	ja	LBB0_43
## %bb.15:
	movl	$4, %r15d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	movl	$2, %r15d
	jmp	LBB0_26
LBB0_22:
	leaq	L_.str.3(%rip), %rdi
LBB0_19:
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_44
LBB0_23:
	movl	$1, %r15d
	jmp	LBB0_26
LBB0_43:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_44
LBB0_24:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	addl	$3, %eax
	sarl	$2, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	$3, %eax
	sarl	$2, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$8, %r15d
LBB0_26:
	movl	%r15d, %edi
	callq	_utile_width
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_utile_height
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	$139, %ebx
	jne	LBB0_28
## %bb.27:
	movq	_VC4_TILING_FORMAT_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rbx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_29
LBB0_28:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_size_is_lt
	cmpq	$1, %rax
	movl	$129, %ecx
	sbbl	$0, %ecx
	movq	%r15, %rbx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
LBB0_29:
	leal	(%r14,%r14,4), %edx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	addl	%r14d, %edx
	subq	$8, %rsp
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	pushq	%rbx
	callq	_vc4_check_tex_size
	addq	$16, %rsp
	testl	%eax, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%r12d, %edi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	je	LBB0_45
## %bb.30:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_41
## %bb.31:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	shll	$3, %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	shll	$3, %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	negl	%eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ecx
	sarl	%cl, %edi
	movl	$1, %esi
	callq	_max
	movq	%rax, %rbx
	movl	%r15d, %ecx
	sarl	%cl, %r13d
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_max
	movq	%rax, %r13
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	$129, %eax
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$128, %eax
	jne	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	%ebx, %edi
	movl	%r13d, %esi
	movq	-160(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_size_is_lt
	testq	%rax, %rax
	je	LBB0_35
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%ebx, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_round_up
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_round_up
	movl	$129, -64(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%ebx, %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_round_up
	movl	%eax, %r12d
	movl	%r13d, %eax
	jmp	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%ebx, %edi
	movl	-128(%rbp), %esi                ## 4-byte Reload
	callq	_round_up
	movl	%eax, %r12d
	movl	%r13d, %edi
	movl	-124(%rbp), %esi                ## 4-byte Reload
	callq	_round_up
	movl	$128, -64(%rbp)                 ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%r12d, %ebx
	imull	-160(%rbp), %ebx                ## 4-byte Folded Reload
	imull	%eax, %ebx
	movl	%r14d, %ecx
	subl	%ebx, %ecx
	jl	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	incl	%eax
	movl	%r15d, %edx
	incl	%edx
	movl	%ecx, %r14d
	movl	%edx, %r15d
	cmpl	$1, %eax
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_32
LBB0_41:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	addl	(%rdi), %eax
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movl	$1, %ecx
	cmpl	$0, -132(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_46
## %bb.42:
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	8(%rbx), %r14d
	addq	$4, %rdi
	callq	_to_vc4_bo
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_max
	movl	$1, %ecx
	movl	%eax, 8(%rbx)
	jmp	LBB0_46
LBB0_39:
	leaq	L_.str.5(%rip), %rdi
	movl	%r15d, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	pushq	%r14
	pushq	%rbx
	callq	_DRM_DEBUG
	addq	$16, %rsp
	movq	-112(%rbp), %r12                ## 8-byte Reload
LBB0_44:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_45:
	movq	(%r12), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_DRM_INFO
	movq	(%r12), %rax
	movl	4(%rax), %esi
	leaq	L_.str.7(%rip), %rdi
	movl	%ebx, %edx
	callq	_DRM_INFO
	movq	(%r12), %rax
	movl	8(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_DRM_INFO
	movq	(%r12), %rax
	movl	12(%rax), %esi
	leaq	L_.str.9(%rip), %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_DRM_INFO
	xorl	%ecx, %ecx
LBB0_46:
	movl	%ecx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_43, LBB0_43-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_43
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_25
	.long	L0_0_set_23
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_43
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_VC4_TEX_P0_OFFSET_MASK,4,2     ## @VC4_TEX_P0_OFFSET_MASK
	.comm	_VC4_TEX_P0_MIPLVLS,4,2         ## @VC4_TEX_P0_MIPLVLS
	.comm	_VC4_TEX_P1_WIDTH,4,2           ## @VC4_TEX_P1_WIDTH
	.comm	_VC4_TEX_P1_HEIGHT,4,2          ## @VC4_TEX_P1_HEIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UBO offset greater than UBO size\n"

L_.str.1:                               ## @.str.1
	.asciz	"UBO clamp would allow reads outside of UBO\n"

	.comm	_VC4_TEX_P0_CMMODE_MASK,4,2     ## @VC4_TEX_P0_CMMODE_MASK
	.comm	_VC4_TEX_P2_PTYPE,4,2           ## @VC4_TEX_P2_PTYPE
	.comm	_VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE,4,2 ## @VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE
	.comm	_VC4_TEX_P2_CMST_MASK,4,2       ## @VC4_TEX_P2_CMST_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Cube map stride set twice\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cube map stride not set\n"

	.comm	_VC4_TEX_P0_TYPE,4,2            ## @VC4_TEX_P0_TYPE
	.comm	_VC4_TEX_P1_TYPE4,4,2           ## @VC4_TEX_P1_TYPE4
L_.str.4:                               ## @.str.4
	.asciz	"Texture format %d unsupported\n"

	.comm	_VC4_TILING_FORMAT_LINEAR,4,2   ## @VC4_TILING_FORMAT_LINEAR
L_.str.5:                               ## @.str.5
	.asciz	"Level %d (%dx%d -> %dx%d) size %db overflowed buffer bounds (offset %d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Texture p0 at %d: 0x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Texture p1 at %d: 0x%08x\n"

L_.str.8:                               ## @.str.8
	.asciz	"Texture p2 at %d: 0x%08x\n"

L_.str.9:                               ## @.str.9
	.asciz	"Texture p3 at %d: 0x%08x\n"

	.no_dead_strip	_reloc_tex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reloc_tex
_reloc_tex:                             ; @reloc_tex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	str	w4, [sp, #88]                   ; 4-byte Folded Spill
	mov	x21, x3
	mov	x19, x2
	mov	x26, x0
	ldr	x8, [x2]
	ldpsw	x10, x9, [x8]
	str	x10, [sp, #104]                 ; 8-byte Folded Spill
	ldr	w22, [x1, x10]
	ldr	w20, [x1, x9]
	ldrsw	x9, [x8, #8]
	cmn	w9, #1
	b.eq	LBB0_2
; %bb.1:
	ldr	w27, [x1, x9]
	b	LBB0_3
LBB0_2:
	mov	w27, #0
LBB0_3:
	ldrsw	x8, [x8, #12]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w28, [x1, x8]
	b	LBB0_6
LBB0_5:
	mov	w28, #0
LBB0_6:
	ldr	x8, [x26]
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _VC4_TEX_P0_OFFSET_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC4_TEX_P0_OFFSET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _VC4_TEX_P0_MIPLVLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC4_TEX_P0_MIPLVLS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_VC4_GET_FIELD
	stur	w0, [x29, #-84]                 ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _VC4_TEX_P1_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC4_TEX_P1_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_GET_FIELD
	mov	x23, x0
Lloh9:
	adrp	x8, _VC4_TEX_P1_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC4_TEX_P1_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_GET_FIELD
	mov	x25, x0
	mov	x0, x26
	mov	x1, x21
	bl	_vc4_use_bo
	cbz	x0, LBB0_48
; %bb.7:
	ldr	x8, [x19, #8]
	str	w28, [sp, #92]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x0, #4]
	sub	w9, w8, #4
	cmp	w22, w9
	b.le	LBB0_14
; %bb.9:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_16
LBB0_10:
	str	w27, [sp, #72]                  ; 4-byte Folded Spill
	mov	w8, #2048
	cmp	w23, #0
	csel	w9, w8, w23, eq
	stur	w9, [x29, #-88]                 ; 4-byte Folded Spill
	cmp	w25, #0
	csel	w27, w8, w25, eq
Lloh14:
	adrp	x8, _VC4_TEX_P0_CMMODE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC4_TEX_P0_CMMODE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	stur	x26, [x29, #-96]                ; 8-byte Folded Spill
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	b.eq	LBB0_18
; %bb.11:
Lloh17:
	adrp	x23, _VC4_TEX_P2_PTYPE@GOTPAGE
Lloh18:
	ldr	x23, [x23, _VC4_TEX_P2_PTYPE@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w25, [sp, #72]                  ; 4-byte Folded Reload
	mov	x0, x25
	bl	_VC4_GET_FIELD
Lloh19:
	adrp	x26, _VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE@GOTPAGEOFF]
Lloh21:
	adrp	x21, _VC4_TEX_P2_CMST_MASK@GOTPAGE
Lloh22:
	ldr	x21, [x21, _VC4_TEX_P2_CMST_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	w9, [x21]
	and	w9, w9, w25
	cmp	w0, w8
	csel	w25, w9, wzr, eq
	ldr	w1, [x23]
	mov	x0, x28
	bl	_VC4_GET_FIELD
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.12:
	cbz	w25, LBB0_19
; %bb.13:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_46
LBB0_14:
	sub	w8, w8, w22
	sub	w8, w8, #4
	cmp	w20, w8
	b.le	LBB0_17
; %bb.15:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_16:
	bl	_DRM_DEBUG
	b	LBB0_47
LBB0_17:
	ldr	w8, [x0]
	add	w8, w8, w22
	ldp	x10, x9, [sp, #96]              ; 16-byte Folded Reload
	str	w8, [x10, x9, lsl #2]
	b	LBB0_44
LBB0_18:
	mov	w25, #0
	b	LBB0_21
LBB0_19:
	ldr	w8, [x21]
	and	w25, w8, w28
LBB0_20:
	ldur	x26, [x29, #-96]                ; 8-byte Folded Reload
	cbz	w25, LBB0_24
LBB0_21:
Lloh27:
	adrp	x8, _VC4_TEX_P0_TYPE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VC4_TEX_P0_TYPE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_VC4_GET_FIELD
	mov	x21, x0
Lloh30:
	adrp	x8, _VC4_TEX_P1_TYPE4@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VC4_TEX_P1_TYPE4@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_VC4_GET_FIELD
	orr	w21, w21, w0, lsl #4
	sub	w8, w21, #131
	cmp	w8, #14
	b.hi	LBB0_26
; %bb.22:
	mov	w23, #4
Lloh33:
	adrp	x9, lJTI0_0@PAGE
Lloh34:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_23
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:
	mov	w23, #2
	b	LBB0_28
LBB0_24:
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_46
LBB0_25:
	mov	w23, #1
	b	LBB0_28
LBB0_26:
	str	x21, [sp]
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_46
LBB0_27:
	ldur	w8, [x29, #-88]                 ; 4-byte Folded Reload
	add	w8, w8, #3
	asr	w8, w8, #2
	stur	w8, [x29, #-88]                 ; 4-byte Folded Spill
	add	w8, w27, #3
	asr	w27, w8, #2
	mov	w23, #8
LBB0_28:
	and	w24, w24, w22
	mov	x0, x23
	bl	_utile_width
	str	w0, [sp, #80]                   ; 4-byte Folded Spill
	mov	x0, x23
	bl	_utile_height
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	cmp	w21, #139
	str	w25, [sp, #84]                  ; 4-byte Folded Spill
	b.ne	LBB0_30
; %bb.29:
Lloh39:
	adrp	x8, _VC4_TILING_FORMAT_LINEAR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VC4_TILING_FORMAT_LINEAR@GOTPAGEOFF]
Lloh41:
	ldr	w28, [x8]
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
	ldur	w25, [x29, #-88]                ; 4-byte Folded Reload
	b	LBB0_31
LBB0_30:
	ldur	w25, [x29, #-88]                ; 4-byte Folded Reload
	mov	x0, x25
	mov	x1, x27
	mov	x2, x23
	bl	_size_is_lt
	cmp	x0, #0
	mov	w8, #128
	cinc	w28, w8, ne
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
LBB0_31:
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	add	w8, w8, w8, lsl #2
	add	w2, w8, w24
	mov	x0, x26
	mov	x1, x21
	mov	x3, x28
	mov	x4, x25
	str	w27, [sp, #84]                  ; 4-byte Folded Spill
	mov	x5, x27
	mov	x6, x23
	bl	_vc4_check_tex_size
	ldr	w27, [sp, #72]                  ; 4-byte Folded Reload
	cbz	w0, LBB0_47
; %bb.32:
	ldur	w8, [x29, #-84]                 ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_42
; %bb.33:
	mov	w27, #0
	ldr	w8, [sp, #80]                   ; 4-byte Folded Reload
	lsl	w9, w8, #3
	ldr	w8, [sp, #76]                   ; 4-byte Folded Reload
	lsl	w8, w8, #3
	stp	w8, w9, [sp, #56]               ; 8-byte Folded Spill
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w27, #1
	asr	w0, w25, w21
	mov	w1, #1
	bl	_max
	mov	x25, x0
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	asr	w0, w8, w21
	mov	w1, #1
	bl	_max
	mov	x21, x0
	cmp	w28, #129
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x0, x25
	cmp	w28, #128
	b.ne	LBB0_38
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=1
	mov	x1, x21
	mov	x2, x23
	bl	_size_is_lt
	cbz	x0, LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_34 Depth=1
	mov	x0, x25
	ldr	w1, [sp, #80]                   ; 4-byte Folded Reload
	bl	_round_up
	mov	x26, x0
	mov	x0, x21
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	bl	_round_up
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w28, #129
	b	LBB0_40
LBB0_38:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	w1, [sp, #80]                   ; 4-byte Folded Reload
	bl	_round_up
	mov	x26, x0
	mov	x0, x21
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_34 Depth=1
	mov	x0, x25
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	bl	_round_up
	mov	x26, x0
	mov	x0, x21
	ldr	w1, [sp, #56]                   ; 4-byte Folded Reload
	bl	_round_up
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w28, #128
LBB0_40:                                ;   in Loop: Header=BB0_34 Depth=1
	mul	w8, w26, w23
	mul	w8, w8, w0
	subs	w9, w24, w8
	b.lt	LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_34 Depth=1
	add	w27, w27, #1
	mov	x24, x9
	ldp	w25, w8, [x29, #-88]            ; 8-byte Folded Reload
	cmp	w8, w27
	ldur	x26, [x29, #-96]                ; 8-byte Folded Reload
	b.ne	LBB0_34
LBB0_42:
	ldr	x11, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w8, [x11]
	add	w8, w8, w22
	ldp	x10, x9, [sp, #96]              ; 16-byte Folded Reload
	str	w8, [x10, x9, lsl #2]
	ldr	w8, [sp, #88]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_44
; %bb.43:
	ldr	w19, [x26, #8]
	add	x0, x11, #4
	bl	_to_vc4_bo
	ldr	w1, [x0]
	mov	x0, x19
	bl	_max
	str	w0, [x26, #8]
LBB0_44:
	mov	w0, #1
	b	LBB0_48
LBB0_45:
	add	w9, w27, #1
	stp	x8, x24, [sp, #40]
	stp	x26, x0, [sp, #24]
	stp	x25, x21, [sp, #8]
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	str	x9, [sp]
LBB0_46:
	bl	_DRM_DEBUG
	ldr	w27, [sp, #72]                  ; 4-byte Folded Reload
LBB0_47:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh44:
	adrp	x0, l_.str.6@PAGE
Lloh45:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x2, x22
	bl	_DRM_INFO
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
Lloh46:
	adrp	x0, l_.str.7@PAGE
Lloh47:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x2, x20
	bl	_DRM_INFO
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
Lloh48:
	adrp	x0, l_.str.8@PAGE
Lloh49:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x2, x27
	bl	_DRM_INFO
	ldr	x8, [x19]
	ldr	w1, [x8, #12]
Lloh50:
	adrp	x0, l_.str.9@PAGE
Lloh51:
	add	x0, x0, l_.str.9@PAGEOFF
	ldr	w2, [sp, #92]                   ; 4-byte Folded Reload
	bl	_DRM_INFO
	mov	w0, #0
LBB0_48:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
	.byte	(LBB0_26-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_28-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_25-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_27-LBB0_23)>>2
	.byte	(LBB0_26-LBB0_23)>>2
	.byte	(LBB0_25-LBB0_23)>>2
                                        ; -- End function
	.comm	_VC4_TEX_P0_OFFSET_MASK,4,2     ; @VC4_TEX_P0_OFFSET_MASK
	.comm	_VC4_TEX_P0_MIPLVLS,4,2         ; @VC4_TEX_P0_MIPLVLS
	.comm	_VC4_TEX_P1_WIDTH,4,2           ; @VC4_TEX_P1_WIDTH
	.comm	_VC4_TEX_P1_HEIGHT,4,2          ; @VC4_TEX_P1_HEIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UBO offset greater than UBO size\n"

l_.str.1:                               ; @.str.1
	.asciz	"UBO clamp would allow reads outside of UBO\n"

	.comm	_VC4_TEX_P0_CMMODE_MASK,4,2     ; @VC4_TEX_P0_CMMODE_MASK
	.comm	_VC4_TEX_P2_PTYPE,4,2           ; @VC4_TEX_P2_PTYPE
	.comm	_VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE,4,2 ; @VC4_TEX_P2_PTYPE_CUBE_MAP_STRIDE
	.comm	_VC4_TEX_P2_CMST_MASK,4,2       ; @VC4_TEX_P2_CMST_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Cube map stride set twice\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cube map stride not set\n"

	.comm	_VC4_TEX_P0_TYPE,4,2            ; @VC4_TEX_P0_TYPE
	.comm	_VC4_TEX_P1_TYPE4,4,2           ; @VC4_TEX_P1_TYPE4
l_.str.4:                               ; @.str.4
	.asciz	"Texture format %d unsupported\n"

	.comm	_VC4_TILING_FORMAT_LINEAR,4,2   ; @VC4_TILING_FORMAT_LINEAR
l_.str.5:                               ; @.str.5
	.asciz	"Level %d (%dx%d -> %dx%d) size %db overflowed buffer bounds (offset %d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Texture p0 at %d: 0x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Texture p1 at %d: 0x%08x\n"

l_.str.8:                               ; @.str.8
	.asciz	"Texture p2 at %d: 0x%08x\n"

l_.str.9:                               ; @.str.9
	.asciz	"Texture p3 at %d: 0x%08x\n"

	.no_dead_strip	_reloc_tex
.subsections_via_symbols
