	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_complete_dependency_tables
_smu7_complete_dependency_tables:       ## @smu7_complete_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%r12), %esi
	addq	$12, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_smu7_patch_lookup_table_with_leakage
	movl	%eax, %r15d
	leaq	12(%r12), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_smu7_patch_ppt_v1_with_vdd_leakage
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %esi
	addq	$8, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_smu7_patch_lookup_table_with_leakage
	movl	%eax, %r15d
	leaq	8(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_smu7_patch_clock_voltage_limits_with_vddc_leakage
	testl	%eax, %eax
	cmovnel	%eax, %r15d
LBB0_3:
	movq	%r14, %rdi
	callq	_smu7_patch_voltage_dependency_tables_with_lookup_table
	movl	%eax, %ebx
	testl	%eax, %eax
	cmovel	%r15d, %ebx
	movq	%r14, %rdi
	callq	_smu7_calc_voltage_dependency_tables
	movl	%eax, %r15d
	testl	%eax, %eax
	cmovel	%ebx, %r15d
	movq	%r14, %rdi
	callq	_smu7_calc_mm_voltage_dependency_table
	movl	%eax, %ebx
	testl	%eax, %eax
	cmovel	%r15d, %ebx
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_smu7_sort_lookup_table
	movl	%eax, %r15d
	testl	%eax, %eax
	cmovel	%ebx, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_smu7_sort_lookup_table
	testl	%eax, %eax
	cmovel	%r15d, %eax
	popq	%rbx
	popq	%r12
	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_complete_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_complete_dependency_tables
_smu7_complete_dependency_tables:       ; @smu7_complete_dependency_tables
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	x23, x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SMU7_VOLTAGE_CONTROL_BY_SVID2@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x23, #4]
	add	x21, x8, #12
	mov	x0, x19
	mov	x2, x21
	bl	_smu7_patch_lookup_table_with_leakage
	mov	x20, x0
	add	x1, x23, #12
	mov	x0, x19
	mov	x2, x21
	bl	_smu7_patch_ppt_v1_with_vdd_leakage
	b	LBB0_3
LBB0_2:
	mov	x20, x23
	ldr	w1, [x20], #8
	add	x21, x8, #8
	mov	x0, x19
	mov	x2, x21
	bl	_smu7_patch_lookup_table_with_leakage
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_smu7_patch_clock_voltage_limits_with_vddc_leakage
	cmp	w0, #0
	csel	w20, w22, w0, eq
LBB0_3:
	mov	x0, x19
	bl	_smu7_patch_voltage_dependency_tables_with_lookup_table
	cmp	w0, #0
	csel	w20, w20, w0, eq
	mov	x0, x19
	bl	_smu7_calc_voltage_dependency_tables
	cmp	w0, #0
	csel	w20, w20, w0, eq
	mov	x0, x19
	bl	_smu7_calc_mm_voltage_dependency_table
	cmp	w0, #0
	csel	w20, w20, w0, eq
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_smu7_sort_lookup_table
	cmp	w0, #0
	csel	w20, w20, w0, eq
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smu7_sort_lookup_table
	cmp	w0, #0
	csel	w0, w20, w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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_complete_dependency_tables
.subsections_via_symbols
