	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_set_xgmi_pstate
_smu_v11_0_set_xgmi_pstate:             ## @smu_v11_0_set_xgmi_pstate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	_SMU_MSG_SetXgmiMode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r14, %r14
	jne	LBB0_1
## %bb.2:
	movq	_XGMI_STATE_D3@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_XGMI_STATE_D0@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_smu_send_smc_msg_with_param
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_MSG_SetXgmiMode,4,2        ## @SMU_MSG_SetXgmiMode
	.comm	_XGMI_STATE_D0,4,2              ## @XGMI_STATE_D0
	.comm	_XGMI_STATE_D3,4,2              ## @XGMI_STATE_D3
	.no_dead_strip	_smu_v11_0_set_xgmi_pstate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_set_xgmi_pstate
_smu_v11_0_set_xgmi_pstate:             ; @smu_v11_0_set_xgmi_pstate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SMU_MSG_SetXgmiMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_MSG_SetXgmiMode@GOTPAGEOFF]
Lloh2:
	adrp	x9, _XGMI_STATE_D0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _XGMI_STATE_D0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _XGMI_STATE_D3@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XGMI_STATE_D3@GOTPAGEOFF]
	cmp	x19, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_smu_send_smc_msg_with_param
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_MSG_SetXgmiMode,4,2        ; @SMU_MSG_SetXgmiMode
	.comm	_XGMI_STATE_D0,4,2              ; @XGMI_STATE_D0
	.comm	_XGMI_STATE_D3,4,2              ; @XGMI_STATE_D3
	.no_dead_strip	_smu_v11_0_set_xgmi_pstate
.subsections_via_symbols
