	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navi10_dpm_set_uvd_enable
_navi10_dpm_set_uvd_enable:             ## @navi10_dpm_set_uvd_enable
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SMU_FEATURE_VCN_PG_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smu_feature_is_enabled
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_SMU_MSG_PowerUpVcn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_smu_send_smc_msg_with_param
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_SMU_MSG_PowerDownVcn@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smu_send_smc_msg
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU_FEATURE_VCN_PG_BIT,4,2     ## @SMU_FEATURE_VCN_PG_BIT
	.comm	_SMU_MSG_PowerUpVcn,4,2         ## @SMU_MSG_PowerUpVcn
	.comm	_SMU_MSG_PowerDownVcn,4,2       ## @SMU_MSG_PowerDownVcn
	.no_dead_strip	_navi10_dpm_set_uvd_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navi10_dpm_set_uvd_enable
_navi10_dpm_set_uvd_enable:             ; @navi10_dpm_set_uvd_enable
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SMU_FEATURE_VCN_PG_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_FEATURE_VCN_PG_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_smu_feature_is_enabled
	cbz	w20, LBB0_4
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SMU_MSG_PowerUpVcn@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU_MSG_PowerUpVcn@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_smu_send_smc_msg_with_param
	cbnz	w0, LBB0_8
LBB0_3:
	mov	w8, #0
	b	LBB0_7
LBB0_4:
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _SMU_MSG_PowerDownVcn@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU_MSG_PowerDownVcn@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smu_send_smc_msg
	cbnz	w0, LBB0_8
LBB0_6:
	mov	w8, #1
LBB0_7:
	mov	w0, #0
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU_FEATURE_VCN_PG_BIT,4,2     ; @SMU_FEATURE_VCN_PG_BIT
	.comm	_SMU_MSG_PowerUpVcn,4,2         ; @SMU_MSG_PowerUpVcn
	.comm	_SMU_MSG_PowerDownVcn,4,2       ; @SMU_MSG_PowerDownVcn
	.no_dead_strip	_navi10_dpm_set_uvd_enable
.subsections_via_symbols
