	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_calc_voltage_dependency_tables
_smu7_calc_voltage_dependency_tables:   ## @smu7_calc_voltage_dependency_tables
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	(%rdi), %r13
	movq	8(%r13), %r15
	movq	16(%r13), %rbx
	cmpq	$0, (%rbx)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	movl	$16, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movslq	-16(%rax,%r14), %rcx
	leaq	-65535(%rcx), %rdx
	testl	$32768, %ecx                    ## imm = 0x8000
	cmoveq	%rcx, %rdx
	addq	-8(%rax,%r14), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	%rdx, (%rax,%r14)
	movl	4(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-80(%rbp), %rdx
	callq	_phm_add_voltage
	incq	%r12
	addq	$24, %r14
	cmpq	(%rbx), %r12
	jb	LBB0_3
LBB0_4:
	movq	%r15, %rax
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.5:
	movl	$16, %ebx
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movslq	-16(%rax,%rbx), %rcx
	leaq	-65535(%rcx), %rdx
	testl	$32768, %ecx                    ## imm = 0x8000
	cmoveq	%rcx, %rdx
	addq	(%rax,%rbx), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rdx, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	%rdx, -8(%rax,%rbx)
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_phm_add_voltage
	movq	%r15, %rax
	incq	%r12
	addq	$24, %rbx
	cmpq	(%r15), %r12
	jb	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_VOLTAGE_CONTROL_BY_SVID2,8,3 ## @SMU7_VOLTAGE_CONTROL_BY_SVID2
	.no_dead_strip	_smu7_calc_voltage_dependency_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_calc_voltage_dependency_tables
_smu7_calc_voltage_dependency_tables:   ; @smu7_calc_voltage_dependency_tables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0]
	ldp	x21, x22, [x20, #8]
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	mov	x25, #-65535
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x23
	ldrsw	x9, [x8]
	ldr	x10, [x8, #8]
	add	x11, x9, x25
	tst	w9, #0x8000
	csel	x9, x9, x11, eq
	add	x9, x10, x9
	stp	x9, x9, [sp]
	stp	x9, x9, [sp, #16]
	str	x9, [x8, #16]
	ldr	w1, [x20, #4]
	mov	x2, sp
	mov	x0, x19
	bl	_phm_add_voltage
	add	x24, x24, #1
	ldr	x8, [x22]
	add	x23, x23, #24
	cmp	x24, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #-65535
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	ldrsw	x9, [x8]
	ldr	x10, [x8, #16]
	add	x11, x9, x24
	tst	w9, #0x8000
	csel	x9, x9, x11, eq
	add	x9, x10, x9
	stp	x9, x9, [sp]
	stp	x9, x9, [sp, #16]
	str	x9, [x8, #8]
	ldr	w1, [x20]
	mov	x2, sp
	mov	x0, x19
	bl	_phm_add_voltage
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x22, x22, #24
	cmp	x23, x8
	b.lo	LBB0_6
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_VOLTAGE_CONTROL_BY_SVID2,8,3 ; @SMU7_VOLTAGE_CONTROL_BY_SVID2
	.no_dead_strip	_smu7_calc_voltage_dependency_tables
.subsections_via_symbols
