	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_set_mclk_od
_smu7_set_mclk_od:                      ## @smu7_set_mclk_od
	.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	%rdi, %rax
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpl	$20, %esi
	movl	$20, %ebx
	cmovll	%esi, %ebx
	movq	8(%rax), %r14
	callq	_cast_phw_smu7_power_state
	movq	8(%r14), %rcx
	movslq	(%r14), %rdx
	movl	-4(%rcx,%rdx,4), %ecx
	imull	%ecx, %ebx
	movslq	%ebx, %rdx
	imulq	$1374389535, %rdx, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rdx
	addl	%esi, %edx
	addl	%ecx, %edx
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	movl	%edx, -4(%rcx,%rax,4)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu7_set_mclk_od
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_set_mclk_od
_smu7_set_mclk_od:                      ; @smu7_set_mclk_od
	.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	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w9, #20
	cmp	w1, #20
	csel	w19, w1, w9, lt
	ldr	x20, [x8, #8]
	bl	_cast_phw_smu7_power_state
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20, #8]
	ldrsw	x10, [x20]
	add	x9, x9, x10, lsl #2
	ldur	w9, [x9, #-4]
	mul	w10, w9, w19
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w11
	add	w9, w10, w9
	ldr	x10, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x10, x8, lsl #2
	stur	w9, [x8, #-4]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu7_set_mclk_od
.subsections_via_symbols
