	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_update_uvd_dpm
_ci_update_uvd_dpm:                     ## @ci_update_uvd_dpm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_ci_get_pi
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.1:
	movq	%rax, %r15
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	(%r12), %rcx
	leaq	-1(%rcx), %rdx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovgq	%rdx, %rax
LBB0_4:
	movq	%rax, (%r15)
	movq	_DPM_TABLE_475@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_RREG32_SMC
	movq	_UvdBootLevel_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_UvdBootLevel
	orl	%eax, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_WREG32_SMC
LBB0_5:
	xorl	%esi, %esi
	testl	%r14d, %r14d
	sete	%sil
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ci_enable_uvd_dpm              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPM_TABLE_475,4,2              ## @DPM_TABLE_475
	.comm	_UvdBootLevel_MASK,4,2          ## @UvdBootLevel_MASK
	.no_dead_strip	_ci_update_uvd_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_update_uvd_dpm
_ci_update_uvd_dpm:                     ; @ci_update_uvd_dpm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_ci_get_pi
	cbnz	w20, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	sub	x9, x8, #1
	cmp	x8, #0
	csel	x8, x9, xzr, gt
LBB0_4:
	str	x8, [x21]
Lloh0:
	adrp	x22, _DPM_TABLE_475@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DPM_TABLE_475@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32_SMC
Lloh2:
	adrp	x8, _UvdBootLevel_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UvdBootLevel_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w23, w0, w8
	ldr	x0, [x21]
	bl	_UvdBootLevel
	orr	w1, w0, w23
	ldr	w0, [x22]
	bl	_WREG32_SMC
LBB0_5:
	cmp	w20, #0
	cset	w1, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ci_enable_uvd_dpm
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DPM_TABLE_475,4,2              ; @DPM_TABLE_475
	.comm	_UvdBootLevel_MASK,4,2          ; @UvdBootLevel_MASK
	.no_dead_strip	_ci_update_uvd_dpm
.subsections_via_symbols
