	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_hqd_set_priority
_gfx_v9_0_hqd_set_priority:             ## @gfx_v9_0_hqd_set_priority
	.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	%rsi, %r12
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	testl	%edx, %edx
	setne	%bl
	movl	$15, %r14d
	cmovel	%edx, %r14d
	addl	%ebx, %ebx
	callq	_mutex_lock
	movl	8(%r12), %esi
	movl	(%r12), %ecx
	movl	4(%r12), %edx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_soc15_grbm_select
	movq	_GC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_mmCP_HQD_PIPE_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_WREG32_SOC15_RLC
	movl	(%r12), %edi
	movq	_mmCP_HQD_QUEUE_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	_WREG32_SOC15_RLC
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_soc15_grbm_select
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmCP_HQD_PIPE_PRIORITY,4,2     ## @mmCP_HQD_PIPE_PRIORITY
	.comm	_mmCP_HQD_QUEUE_PRIORITY,4,2    ## @mmCP_HQD_QUEUE_PRIORITY
	.no_dead_strip	_gfx_v9_0_hqd_set_priority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_hqd_set_priority
_gfx_v9_0_hqd_set_priority:             ; @gfx_v9_0_hqd_set_priority
	.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, x1
	mov	x20, x0
	mov	w8, #15
	cmp	w2, #0
	csel	w21, wzr, w8, eq
	cset	w8, ne
	lsl	w22, w8, #1
	bl	_mutex_lock
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	mov	x0, x20
	mov	w4, #0
	bl	_soc15_grbm_select
Lloh0:
	adrp	x19, _GC@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GC@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _mmCP_HQD_PIPE_PRIORITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCP_HQD_PIPE_PRIORITY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x22
	bl	_WREG32_SOC15_RLC
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _mmCP_HQD_QUEUE_PRIORITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCP_HQD_QUEUE_PRIORITY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x21
	bl	_WREG32_SOC15_RLC
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_soc15_grbm_select
	mov	x0, x20
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmCP_HQD_PIPE_PRIORITY,4,2     ; @mmCP_HQD_PIPE_PRIORITY
	.comm	_mmCP_HQD_QUEUE_PRIORITY,4,2    ; @mmCP_HQD_QUEUE_PRIORITY
	.no_dead_strip	_gfx_v9_0_hqd_set_priority
.subsections_via_symbols
