	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r100_cs_track_cube
_r100_cs_track_cube:                    ## @r100_cs_track_cube
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movl	%edx, %ecx
	leaq	(%rcx,%rcx,2), %r12
	movl	(%rax,%r12,8), %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax,%r12,8), %rcx
	movq	16(%rcx,%r14), %r13
	movl	(%rcx,%r14), %esi
	movl	4(%rcx,%r14), %ebx
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_r100_track_compress_size
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	16(%rax,%r12,8), %rcx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	imull	%esi, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	imulq	8(%rax,%r12,8), %rbx
	addq	8(%rcx,%r14), %rbx
	movq	%r13, %rdi
	callq	_radeon_bo_size
	cmpq	%rax, %rbx
	ja	LBB0_8
## %bb.1:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$96, %r14
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	$24, %r14
	jmp	LBB0_4
LBB0_8:
	movq	%r13, %rdi
	callq	_radeon_bo_size
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_DRM_ERROR
	shlq	$3, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %r12
	movq	%r12, %rdi
	callq	_r100_cs_track_texture_print
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_2:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cube texture offset greater than object size %lu %lu\n"

	.no_dead_strip	_r100_cs_track_cube
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r100_cs_track_cube
_r100_cs_track_cube:                    ; @r100_cs_track_cube
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x24, #0
	ldr	x8, [x1]
	mov	w23, w2
	mov	w25, #24
	umull	x9, w2, w25
	ldr	w20, [x8, x9]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	madd	x9, x23, x25, x8
	ldr	x9, [x9, #16]
	add	x10, x9, x24
	ldr	x21, [x10, #16]
	ldp	w1, w2, [x10]
	cbz	w20, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_r100_track_compress_size
	ldr	x8, [x19]
	madd	x9, x23, x25, x8
	ldr	x9, [x9, #16]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mul	w0, w2, w1
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	madd	x8, x23, x25, x8
	ldr	x8, [x8, #8]
	add	x9, x9, x24
	ldr	x9, [x9, #8]
	madd	x22, x8, x0, x9
	mov	x0, x21
	bl	_radeon_bo_size
	cmp	x22, x0
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x24, #96
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	add	x24, x24, #24
	b	LBB0_1
LBB0_7:
	mov	x0, x21
	bl	_radeon_bo_size
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_ERROR
	ldr	x8, [x19]
	mov	w9, #24
	madd	x0, x23, x9, x8
	bl	_r100_cs_track_texture_print
	mov	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cube texture offset greater than object size %lu %lu\n"

	.no_dead_strip	_r100_cs_track_cube
.subsections_via_symbols
