	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_init_pa_sc_tile_steering_override
_gfx_v10_0_init_pa_sc_tile_steering_override: ## @gfx_v10_0_init_pa_sc_tile_steering_override
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %r14d
	imull	(%rdi), %r14d
	imull	8(%rdi), %r14d
	callq	_gfx_v10_0_get_rb_active_bitmap
	movl	%eax, %edi
	callq	_hweight32
	cltd
	idivl	8(%rbx)
	movl	%eax, %r15d
	movl	12(%rbx), %r12d
	movl	%r14d, %edi
	callq	_order_base_2
	movl	%eax, %r14d
	movq	_PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movq	_PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_order_base_2
	movl	%eax, %ebx
	movq	_PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_order_base_2
	movq	_PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%r14d, %eax
	orl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT,4,2 ## @PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK,4,2 ## @PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT,4,2 ## @PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK,4,2 ## @PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT,4,2 ## @PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK,4,2 ## @PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK
	.no_dead_strip	_gfx_v10_0_init_pa_sc_tile_steering_override
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_init_pa_sc_tile_steering_override
_gfx_v10_0_init_pa_sc_tile_steering_override: ; @gfx_v10_0_init_pa_sc_tile_steering_override
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	ldr	w9, [x0, #8]
	mul	w20, w8, w9
	bl	_gfx_v10_0_get_rb_active_bitmap
	bl	_hweight32
	ldp	w8, w19, [x19, #8]
	sdiv	w21, w0, w8
	mov	x0, x20
	bl	_order_base_2
Lloh0:
	adrp	x8, _PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh3:
	adrp	x9, _PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w20, w8, w9
	mov	x0, x21
	bl	_order_base_2
Lloh6:
	adrp	x8, _PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh9:
	adrp	x9, _PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w8, w9
	orr	w20, w8, w20
	mov	x0, x19
	bl	_order_base_2
Lloh12:
	adrp	x8, _PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh15:
	adrp	x9, _PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w8, w9
	orr	w0, w20, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT,4,2 ; @PA_SC_TILE_STEERING_OVERRIDE__NUM_SC__SHIFT
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK,4,2 ; @PA_SC_TILE_STEERING_OVERRIDE__NUM_SC_MASK
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT,4,2 ; @PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC__SHIFT
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK,4,2 ; @PA_SC_TILE_STEERING_OVERRIDE__NUM_RB_PER_SC_MASK
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT,4,2 ; @PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC__SHIFT
	.comm	_PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK,4,2 ; @PA_SC_TILE_STEERING_OVERRIDE__NUM_PACKER_PER_SC_MASK
	.no_dead_strip	_gfx_v10_0_init_pa_sc_tile_steering_override
.subsections_via_symbols
