	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_set_uvd_clocks            ## -- Begin function sumo_set_uvd_clocks
	.p2align	4, 0x90
_sumo_set_uvd_clocks:                   ## @sumo_set_uvd_clocks
	.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	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_CG_SCRATCH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r12d
	movq	_CG_VCLK_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CG_VCLK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sumo_set_uvd_clock
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_2:
	movslq	%r13d, %rax
	imulq	$1374389535, %rax, %r13         ## imm = 0x51EB851F
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$37, %r13
	addl	%eax, %r13d
	movq	_CG_DCLK_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CG_DCLK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_uvd_clock
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	andl	$-65536, %r12d                  ## imm = 0xFFFF0000
	orl	%r13d, %r12d
	jmp	LBB0_5
LBB0_4:
	movzwl	%r13w, %eax
	movslq	%r14d, %rcx
	imulq	$1374389535, %rcx, %r12         ## imm = 0x51EB851F
	movq	%r12, %rcx
	shrq	$63, %rcx
	shrq	$37, %r12
	addl	%ecx, %r12d
	shll	$16, %r12d
	orl	%eax, %r12d
	xorl	%ebx, %ebx
LBB0_5:
	movq	_CG_SCRATCH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_WREG32
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_SCRATCH1,4,2                ## @CG_SCRATCH1
	.comm	_CG_VCLK_CNTL,4,2               ## @CG_VCLK_CNTL
	.comm	_CG_VCLK_STATUS,4,2             ## @CG_VCLK_STATUS
	.comm	_CG_DCLK_CNTL,4,2               ## @CG_DCLK_CNTL
	.comm	_CG_DCLK_STATUS,4,2             ## @CG_DCLK_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_set_uvd_clocks            ; -- Begin function sumo_set_uvd_clocks
	.p2align	2
_sumo_set_uvd_clocks:                   ; @sumo_set_uvd_clocks
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _CG_SCRATCH1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CG_SCRATCH1@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_RREG32
	mov	x21, x0
Lloh2:
	adrp	x8, _CG_VCLK_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CG_VCLK_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _CG_VCLK_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CG_VCLK_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_sumo_set_uvd_clock
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	and	w8, w21, #0xffff0000
	mov	w21, #34079
	movk	w21, #20971, lsl #16
	smull	x9, w22, w21
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w22, w9, w10
	orr	w25, w8, w22
Lloh8:
	adrp	x8, _CG_DCLK_CNTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CG_DCLK_CNTL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _CG_DCLK_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CG_DCLK_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_uvd_clock
	smull	x8, w19, w21
	lsr	x9, x8, #63
	lsr	x8, x8, #37
	add	w8, w8, w9
	bfi	w22, w8, #16, #16
	cmp	w0, #0
	csel	w23, w0, wzr, ne
	csel	w21, w25, w22, ne
LBB0_3:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_WREG32
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_SCRATCH1,4,2                ; @CG_SCRATCH1
	.comm	_CG_VCLK_CNTL,4,2               ; @CG_VCLK_CNTL
	.comm	_CG_VCLK_STATUS,4,2             ; @CG_VCLK_STATUS
	.comm	_CG_DCLK_CNTL,4,2               ; @CG_DCLK_CNTL
	.comm	_CG_DCLK_STATUS,4,2             ; @CG_DCLK_STATUS
.subsections_via_symbols
