	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_setup_default_dpm_tables
_smu7_setup_default_dpm_tables:         ## @smu7_setup_default_dpm_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	callq	_smu7_reset_dpm_tables
	movq	(%rbx), %rax
	movq	_PP_TABLE_V1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_smu7_setup_dpm_tables_v1
	jmp	LBB0_4
LBB0_2:
	movq	_PP_TABLE_V0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_smu7_setup_dpm_tables_v0
LBB0_4:
	movq	%rbx, %rdi
	callq	_smu7_setup_default_pcie_table
	leaq	12(%r14), %rdi
	leaq	8(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_smu7_check_dpm_table_updated
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_smu7_setup_voltage_range_from_vbios
	movq	%rbx, %rdi
	callq	_smu7_odn_initial_default_setting
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_TABLE_V1,8,3                ## @PP_TABLE_V1
	.comm	_PP_TABLE_V0,8,3                ## @PP_TABLE_V0
	.no_dead_strip	_smu7_setup_default_dpm_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_setup_default_dpm_tables
_smu7_setup_default_dpm_tables:         ; @smu7_setup_default_dpm_tables
	.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	x19, x0
	ldr	x20, [x0, #16]
	bl	_smu7_reset_dpm_tables
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PP_TABLE_V1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PP_TABLE_V1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_smu7_setup_dpm_tables_v1
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _PP_TABLE_V0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PP_TABLE_V0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_smu7_setup_dpm_tables_v0
LBB0_4:
	mov	x0, x19
	bl	_smu7_setup_default_pcie_table
	add	x0, x20, #12
	add	x1, x20, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_smu7_check_dpm_table_updated
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_smu7_setup_voltage_range_from_vbios
	mov	x0, x19
	bl	_smu7_odn_initial_default_setting
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_TABLE_V1,8,3                ; @PP_TABLE_V1
	.comm	_PP_TABLE_V0,8,3                ; @PP_TABLE_V0
	.no_dead_strip	_smu7_setup_default_dpm_tables
.subsections_via_symbols
