	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_set_uvd_dcm
_si_set_uvd_dcm:                        ## @si_set_uvd_dcm
	.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	_UVD_CGC_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movq	_CLK_OD_MASK@GOTPCREL(%rip), %rcx
	movq	_CG_DT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_DCM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$1, %edi
	callq	_CG_DT
	movl	%eax, %r15d
	orl	%r13d, %r15d
	movl	$4, %edi
	callq	_CLK_OD
	movl	%eax, %r13d
	orl	%r15d, %r13d
	orl	%ebx, %r13d
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	andl	$-2147481601, %r13d             ## imm = 0x800007FF
	movq	_DYN_OR_EN@GOTPCREL(%rip), %rax
	movq	_DYN_RR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	$7, %edi
	callq	_G_DIV_ID
	movl	%eax, %r14d
	orl	%ebx, %r14d
	jmp	LBB0_3
LBB0_2:
	orl	$2147481600, %r13d              ## imm = 0x7FFFF800
	xorl	%r14d, %r14d
LBB0_3:
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_WREG32
	movq	_UVD_CGC_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_UVD_CTX                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UVD_CGC_CTRL,4,2               ## @UVD_CGC_CTRL
	.comm	_CLK_OD_MASK,4,2                ## @CLK_OD_MASK
	.comm	_CG_DT_MASK,4,2                 ## @CG_DT_MASK
	.comm	_DCM,4,2                        ## @DCM
	.comm	_DYN_OR_EN,4,2                  ## @DYN_OR_EN
	.comm	_DYN_RR_EN,4,2                  ## @DYN_RR_EN
	.comm	_UVD_CGC_CTRL2,4,2              ## @UVD_CGC_CTRL2
	.no_dead_strip	_si_set_uvd_dcm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_set_uvd_dcm
_si_set_uvd_dcm:                        ; @si_set_uvd_dcm
	.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
Lloh0:
	adrp	x21, _UVD_CGC_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UVD_CGC_CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
Lloh2:
	adrp	x8, _CLK_OD_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CLK_OD_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CG_DT_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CG_DT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w0, w8
Lloh8:
	adrp	x8, _DCM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCM@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_CG_DT
	orr	w22, w0, w22
	mov	w0, #4
	bl	_CLK_OD
	orr	w8, w22, w20
	orr	w8, w8, w0
	cbz	w19, LBB0_2
; %bb.1:
Lloh11:
	adrp	x9, _DYN_OR_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DYN_OR_EN@GOTPAGEOFF]
	and	w19, w8, #0x800007ff
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _DYN_RR_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DYN_RR_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	w0, #7
	bl	_G_DIV_ID
	orr	w20, w20, w0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
	orr	w19, w8, #0x7ffff800
LBB0_3:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_WREG32
Lloh17:
	adrp	x8, _UVD_CGC_CTRL2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UVD_CGC_CTRL2@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, 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	_WREG32_UVD_CTX
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UVD_CGC_CTRL,4,2               ; @UVD_CGC_CTRL
	.comm	_CLK_OD_MASK,4,2                ; @CLK_OD_MASK
	.comm	_CG_DT_MASK,4,2                 ; @CG_DT_MASK
	.comm	_DCM,4,2                        ; @DCM
	.comm	_DYN_OR_EN,4,2                  ; @DYN_OR_EN
	.comm	_DYN_RR_EN,4,2                  ; @DYN_RR_EN
	.comm	_UVD_CGC_CTRL2,4,2              ; @UVD_CGC_CTRL2
	.no_dead_strip	_si_set_uvd_dcm
.subsections_via_symbols
