	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_check_clk_voltage_valid
_smu7_check_clk_voltage_valid:          ## @smu7_check_clk_voltage_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r9
	movq	16(%r9), %rax
	movq	24(%r9), %r8
	cmpq	%rcx, %rax
	jg	LBB0_2
## %bb.1:
	cmpq	%rcx, %r8
	jl	LBB0_2
## %bb.3:
	movq	_PP_OD_EDIT_SCLK_VDDC_TABLE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	8(%r9), %rax
	movq	(%rax), %rsi
	movq	(%rdi), %rcx
	cmpq	%rdx, %rsi
	jg	LBB0_6
## %bb.5:
	movl	$1, %eax
	cmpq	%rdx, %rcx
	jl	LBB0_6
LBB0_13:
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r8d, %edx
	jmp	LBB0_12
LBB0_7:
	movq	_PP_OD_EDIT_MCLK_VDDC_TABLE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	jne	LBB0_13
## %bb.8:
	movq	(%r9), %rax
	movq	(%rax), %rsi
	movq	8(%rdi), %rcx
	cmpq	%rdx, %rsi
	jg	LBB0_10
## %bb.9:
	movl	$1, %eax
	cmpq	%rdx, %rcx
	jge	LBB0_13
LBB0_10:
	movabsq	$-6640827866535438581, %rdi     ## imm = 0xA3D70A3D70A3D70B
	movq	%rsi, %rax
	imulq	%rdi
	addq	%rdx, %rsi
	movq	%rsi, %rax
	shrq	$63, %rax
	shrq	$6, %rsi
	addl	%eax, %esi
	movq	%rcx, %rax
	imulq	%rdi
	addq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$6, %rdx
	addl	%eax, %edx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_6:
	movabsq	$-6640827866535438581, %rdi     ## imm = 0xA3D70A3D70A3D70B
	movq	%rsi, %rax
	imulq	%rdi
	addq	%rdx, %rsi
	movq	%rsi, %rax
	shrq	$63, %rax
	shrq	$6, %rsi
	addl	%eax, %esi
	movq	%rcx, %rax
	imulq	%rdi
	addq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$6, %rdx
	addl	%eax, %edx
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_12:
	callq	_pr_info
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OD voltage is out of range [%d - %d] mV\n"

	.comm	_PP_OD_EDIT_SCLK_VDDC_TABLE,4,2 ## @PP_OD_EDIT_SCLK_VDDC_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"OD engine clock is out of range [%d - %d] MHz\n"

	.comm	_PP_OD_EDIT_MCLK_VDDC_TABLE,4,2 ## @PP_OD_EDIT_MCLK_VDDC_TABLE
L_.str.2:                               ## @.str.2
	.asciz	"OD memory clock is out of range [%d - %d] MHz\n"

	.no_dead_strip	_smu7_check_clk_voltage_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_check_clk_voltage_valid
_smu7_check_clk_voltage_valid:          ; @smu7_check_clk_voltage_valid
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x10, [x0, #16]
	ldp	x8, x9, [x10, #16]
	cmp	x8, x3
	ccmp	x9, x3, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	mov	x2, x9
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x8, _PP_OD_EDIT_SCLK_VDDC_TABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PP_OD_EDIT_SCLK_VDDC_TABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x10, #8]
	ldr	x9, [x8]
	ldr	x8, [x0]
	cmp	x9, x2
	ccmp	x8, x2, #8, le
	b.ge	LBB0_10
; %bb.4:
	mov	x10, #55051
	movk	x10, #28835, lsl #16
	movk	x10, #2621, lsl #32
	movk	x10, #41943, lsl #48
	smulh	x11, x9, x10
	add	x9, x11, x9
	lsr	x11, x9, #63
	lsr	x9, x9, #6
	add	w1, w9, w11
	smulh	x9, x8, x10
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #6
	add	w2, w8, w9
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _PP_OD_EDIT_MCLK_VDDC_TABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PP_OD_EDIT_MCLK_VDDC_TABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x10]
	ldr	x9, [x8]
	ldr	x8, [x0, #8]
	cmp	x9, x2
	ccmp	x8, x2, #8, le
	b.ge	LBB0_10
; %bb.7:
	mov	x10, #55051
	movk	x10, #28835, lsl #16
	movk	x10, #2621, lsl #32
	movk	x10, #41943, lsl #48
	smulh	x11, x9, x10
	add	x9, x11, x9
	lsr	x11, x9, #63
	lsr	x9, x9, #6
	add	w1, w9, w11
	smulh	x9, x8, x10
	add	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #6
	add	w2, w8, w9
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_pr_info
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OD voltage is out of range [%d - %d] mV\n"

	.comm	_PP_OD_EDIT_SCLK_VDDC_TABLE,4,2 ; @PP_OD_EDIT_SCLK_VDDC_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"OD engine clock is out of range [%d - %d] MHz\n"

	.comm	_PP_OD_EDIT_MCLK_VDDC_TABLE,4,2 ; @PP_OD_EDIT_MCLK_VDDC_TABLE
l_.str.2:                               ; @.str.2
	.asciz	"OD memory clock is out of range [%d - %d] MHz\n"

	.no_dead_strip	_smu7_check_clk_voltage_valid
.subsections_via_symbols
