	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r600_texture_size
_r600_texture_size:                     ## @r600_texture_size
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movq	56(%rbp), %rax
	movl	24(%rbp), %edi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	subl	%esi, %r13d
	movl	$-1, (%rax)
	callq	_r600_fmt_get_blocksize
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_r600_mip_minify
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_r600_mip_minify
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_r600_mip_minify
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	incl	%r13d
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_7
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	16(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	48(%rbp), %esi
	callq	_round_up
	movl	%eax, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r15d, %ebx
	incl	%r14d
	cmpl	%r14d, -68(%rbp)                ## 4-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_r600_mip_minify
	movl	24(%rbp), %r15d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_r600_fmt_get_nblocksx
	movl	%eax, %edi
	movl	32(%rbp), %esi
	callq	_round_up
	movl	%eax, %r12d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_r600_mip_minify
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_r600_fmt_get_nblocksy
	movl	%eax, %edi
	movl	40(%rbp), %esi
	callq	_round_up
	movl	%eax, %r13d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_r600_mip_minify
	movl	%eax, %r15d
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovnel	%eax, %r15d
	imull	-44(%rbp), %r12d                ## 4-byte Folded Reload
	imull	%r13d, %r15d
	imull	%r12d, %r15d
	cmpl	$1, %r14d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rbp), %rax
	movl	%r15d, (%rax)
	jmp	LBB0_5
LBB0_7:
	movq	64(%rbp), %rax
	movl	%ebx, (%rax)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.9:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	56(%rbp), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, (%rax)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
LBB0_10:
	movq	56(%rbp), %rcx
	subl	(%rcx), %ebx
	movl	%ebx, (%rax)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_r600_texture_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r600_texture_size
_r600_texture_size:                     ; @r600_texture_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x7
	mov	x19, x6
	mov	x24, x5
	mov	x25, x4
	mov	x23, x3
	mov	x22, x0
	ldr	x8, [x29, #40]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x9, [x29, #32]
	stp	w2, w1, [sp, #8]                ; 8-byte Folded Spill
	sub	w8, w2, w1
	add	w27, w8, #1
	mov	w8, #-1
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	str	w8, [x9]
	mov	x0, x7
	bl	_r600_fmt_get_blocksize
	mov	x20, x0
	mov	x0, x23
	mov	w1, #0
	bl	_r600_mip_minify
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x25
	mov	w1, #0
	bl	_r600_mip_minify
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x24
	mov	w1, #0
	bl	_r600_mip_minify
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	cbz	w27, LBB0_7
; %bb.1:
	mov	x26, x27
	mov	w24, #0
	mov	w27, #0
	ldr	w8, [x29, #24]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	mul	w25, w20, w19
	ldp	w20, w19, [x29, #16]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	ldr	w1, [sp, #32]                   ; 4-byte Folded Reload
	bl	_round_up
	mov	x24, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, w23
	add	w27, w27, #1
	cmp	w26, w27
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #44]                   ; 4-byte Folded Reload
	mov	x1, x27
	bl	_r600_mip_minify
	mov	x1, x0
	mov	x0, x21
	bl	_r600_fmt_get_nblocksx
	mov	x1, x20
	bl	_round_up
	mov	x28, x0
	ldr	w0, [sp, #40]                   ; 4-byte Folded Reload
	mov	x1, x27
	bl	_r600_mip_minify
	mov	x1, x0
	mov	x0, x21
	bl	_r600_fmt_get_nblocksy
	mov	x1, x19
	bl	_round_up
	mov	x23, x0
	ldr	w0, [sp, #36]                   ; 4-byte Folded Reload
	mov	x1, x27
	bl	_r600_mip_minify
	cmp	w22, #0
	csel	w8, w0, w22, eq
	mul	w9, w25, w28
	mul	w9, w9, w23
	mul	w23, w9, w8
	cmp	w27, #1
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w27, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w23, [x8]
	b	LBB0_2
LBB0_7:
	mov	w24, #0
LBB0_8:
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w24, [x9]
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_11
; %bb.9:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_12
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w24, [x8]
	str	w24, [x9]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_10
LBB0_12:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	sub	w8, w24, w8
	str	w8, [x9]
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_r600_texture_size
.subsections_via_symbols
