	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function polaris10_get_dependency_volt_by_clk
_polaris10_get_dependency_volt_by_clk:  ## @polaris10_get_dependency_volt_by_clk
	.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
	movq	(%rdi), %r12
	movq	$0, (%r8)
	movq	$0, (%rcx)
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r13
	movq	%rsi, %r15
	movq	8(%rsi), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rsi,%r14)
	jae	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r14
	decq	%rax
	jne	LBB0_2
## %bb.4:
	leaq	-1(%rbx), %r14
	shlq	$5, %r14
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdx
	imulq	8(%rsi,%r14), %rdx
	movq	_VDDC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	movq	%rdx, (%r13)
	movq	_SMU7_VOLTAGE_CONTROL_NONE@GOTPCREL(%rip), %r9
	movq	(%r9), %rax
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.5:
	movq	(%rdi), %rax
	imulq	16(%r12), %rax
	movq	_VDDCI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	%rdx, %rax
	jmp	LBB0_14
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_7:
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdx
	imulq	8(%rsi,%r14), %rdx
	movq	_VDDC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	movq	%rdx, (%r13)
	movq	_SMU7_VOLTAGE_CONTROL_NONE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.8:
	movq	(%rdi), %rax
	imulq	16(%r12), %rax
	jmp	LBB0_11
LBB0_9:
	movslq	16(%rsi,%r14), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	imulq	(%rdi), %rax
LBB0_11:
	movq	_VDDCI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	%rdx, %rax
	jmp	LBB0_20
LBB0_12:
	cmpl	$0, 16(%rsi,%r14)
	je	LBB0_15
## %bb.13:
	leaq	32(%r12), %rdi
	movq	%rbx, %rax
	shlq	$5, %rax
	movq	8(%rsi,%rax), %rsi
	movq	_VDDC_VDDCI_DELTA@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_phm_find_closest_vddci
	movq	_SMU7_VOLTAGE_CONTROL_NONE@GOTPCREL(%rip), %r9
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rdi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	imulq	(%rdi), %rax
	movq	_VDDCI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	(%r13), %rax
LBB0_14:
	movq	%rax, (%r13)
LBB0_15:
	movq	(%r9), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_17
## %bb.16:
	movq	(%rdi), %rax
	imulq	24(%r12), %rax
	movq	%rax, (%r8)
	jmp	LBB0_25
LBB0_17:
	movq	8(%r15), %rcx
	shlq	$5, %rbx
	xorl	%eax, %eax
	cmpq	$0, 24(%rcx,%rbx)
	je	LBB0_26
## %bb.18:
	movq	(%rdi), %rdx
	imulq	24(%rcx,%r14), %rdx
	movq	%rdx, (%r8)
	jmp	LBB0_26
LBB0_19:
	leaq	32(%r12), %rdi
	movq	8(%rsi,%r14), %rsi
	movq	_VDDC_VDDCI_DELTA@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_phm_find_closest_vddci
	movq	_VOLTAGE_SCALE@GOTPCREL(%rip), %rdi
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	imulq	(%rdi), %rax
	movq	_VDDCI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	orq	(%r13), %rax
LBB0_20:
	movq	%rax, (%r13)
	movq	(%rbx), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_22
## %bb.21:
	movq	24(%r12), %rax
	jmp	LBB0_23
LBB0_22:
	movq	8(%r15), %rax
	movq	24(%rax,%r14), %rax
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	imulq	(%rdi), %rax
	movq	%rax, (%r8)
LBB0_24:
	movq	_PHASES_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cltq
	orq	%rax, (%r13)
LBB0_25:
	xorl	%eax, %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VOLTAGE_SCALE,8,3              ## @VOLTAGE_SCALE
	.comm	_VDDC_SHIFT,8,3                 ## @VDDC_SHIFT
	.comm	_SMU7_VOLTAGE_CONTROL_NONE,8,3  ## @SMU7_VOLTAGE_CONTROL_NONE
	.comm	_VDDCI_SHIFT,8,3                ## @VDDCI_SHIFT
	.comm	_VDDC_VDDCI_DELTA,8,3           ## @VDDC_VDDCI_DELTA
	.comm	_PHASES_SHIFT,4,2               ## @PHASES_SHIFT
	.no_dead_strip	_polaris10_get_dependency_volt_by_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function polaris10_get_dependency_volt_by_clk
_polaris10_get_dependency_volt_by_clk:  ; @polaris10_get_dependency_volt_by_clk
	.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
	ldr	x22, [x0]
	str	xzr, [x4]
	str	xzr, [x3]
	ldr	x24, [x1]
	cbz	x24, LBB0_6
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x23, #0
	ldr	x8, [x1, #8]
	mov	x9, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x23]
	cmp	x10, x2
	b.hs	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #32
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.4:
	sub	x25, x24, #1
	add	x9, x8, x25, lsl #5
	ldr	x10, [x9, #8]
Lloh0:
	adrp	x23, _VOLTAGE_SCALE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VOLTAGE_SCALE@GOTPAGEOFF]
	ldr	x11, [x23]
	mul	x10, x11, x10
Lloh2:
	adrp	x11, _VDDC_SHIFT@GOTPAGE
Lloh3:
	ldr	x11, [x11, _VDDC_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	lsl	x10, x10, x11
	str	x10, [x20]
Lloh5:
	adrp	x26, _SMU7_VOLTAGE_CONTROL_NONE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SMU7_VOLTAGE_CONTROL_NONE@GOTPAGEOFF]
	ldr	x11, [x26]
	ldr	x12, [x22]
	cmp	x11, x12
	b.ne	LBB0_17
; %bb.5:
	ldr	x8, [x22, #16]
	ldr	x9, [x23]
	mul	x8, x9, x8
Lloh7:
	adrp	x9, _VDDCI_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VDDCI_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	orr	x8, x8, x10
	b	LBB0_19
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_7:
	add	x9, x8, x23
	ldr	x8, [x9, #8]
Lloh13:
	adrp	x24, _VOLTAGE_SCALE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _VOLTAGE_SCALE@GOTPAGEOFF]
	ldr	x10, [x24]
	mul	x8, x10, x8
Lloh15:
	adrp	x10, _VDDC_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VDDC_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x8, x8, x10
	str	x8, [x20]
Lloh18:
	adrp	x25, _SMU7_VOLTAGE_CONTROL_NONE@GOTPAGE
Lloh19:
	ldr	x25, [x25, _SMU7_VOLTAGE_CONTROL_NONE@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	x11, [x22]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.8:
	ldr	x9, [x22, #16]
	ldr	x10, [x24]
	mul	x9, x10, x9
	b	LBB0_11
LBB0_9:
	ldrsw	x10, [x9, #16]
	cbz	w10, LBB0_26
; %bb.10:
	ldr	x9, [x24]
	mul	x9, x9, x10
LBB0_11:
Lloh20:
	adrp	x10, _VDDCI_SHIFT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _VDDCI_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	lsl	x9, x9, x10
LBB0_12:
	orr	x8, x9, x8
	str	x8, [x20]
	ldr	x8, [x25]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x22, #24]
	b	LBB0_15
LBB0_14:
	ldr	x8, [x21, #8]
	add	x8, x8, x23
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_16
LBB0_15:
	ldr	x9, [x24]
	mul	x8, x9, x8
	str	x8, [x19]
LBB0_16:
	mov	w0, #0
Lloh23:
	adrp	x8, _PHASES_SHIFT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PHASES_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x8, w8
	ldr	x9, [x20]
	orr	x8, x9, x8
	str	x8, [x20]
	b	LBB0_25
LBB0_17:
	ldr	w9, [x9, #16]
	cbz	w9, LBB0_20
; %bb.18:
	add	x0, x22, #32
	add	x8, x8, x24, lsl #5
	ldr	x8, [x8, #8]
Lloh26:
	adrp	x9, _VDDC_VDDCI_DELTA@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VDDC_VDDCI_DELTA@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	sub	x1, x8, x9
	bl	_phm_find_closest_vddci
	ldr	x8, [x23]
	mul	x8, x8, x0
Lloh29:
	adrp	x9, _VDDCI_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VDDCI_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	ldr	x9, [x20]
	orr	x8, x9, x8
LBB0_19:
	str	x8, [x20]
LBB0_20:
	ldr	x8, [x26]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	mov	w0, #0
	ldr	x8, [x22, #24]
	b	LBB0_24
LBB0_22:
	ldr	x8, [x21, #8]
	add	x9, x8, x24, lsl #5
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_27
; %bb.23:
	mov	w0, #0
	add	x8, x8, x25, lsl #5
	ldr	x8, [x8, #24]
LBB0_24:
	ldr	x9, [x23]
	mul	x8, x9, x8
	str	x8, [x19]
LBB0_25:
	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
LBB0_26:
	add	x0, x22, #32
	ldr	x8, [x9, #8]
Lloh32:
	adrp	x9, _VDDC_VDDCI_DELTA@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VDDC_VDDCI_DELTA@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	sub	x1, x8, x9
	bl	_phm_find_closest_vddci
	ldr	x8, [x24]
	mul	x8, x8, x0
Lloh35:
	adrp	x9, _VDDCI_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VDDCI_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	ldr	x9, [x20]
	b	LBB0_12
LBB0_27:
	mov	w0, #0
	b	LBB0_25
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VOLTAGE_SCALE,8,3              ; @VOLTAGE_SCALE
	.comm	_VDDC_SHIFT,8,3                 ; @VDDC_SHIFT
	.comm	_SMU7_VOLTAGE_CONTROL_NONE,8,3  ; @SMU7_VOLTAGE_CONTROL_NONE
	.comm	_VDDCI_SHIFT,8,3                ; @VDDCI_SHIFT
	.comm	_VDDC_VDDCI_DELTA,8,3           ; @VDDC_VDDCI_DELTA
	.comm	_PHASES_SHIFT,4,2               ; @PHASES_SHIFT
	.no_dead_strip	_polaris10_get_dependency_volt_by_clk
.subsections_via_symbols
