	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_smc_table_hw_init
_smu_smc_table_hw_init:                 ## @smu_smc_table_hw_init
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	callq	_smu_is_dpm_running
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_30:
	callq	_pr_info
	jmp	LBB0_31
LBB0_3:
	movq	(%r12), %rax
	movq	_CHIP_ARCTURUS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_smu_init_display_count
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.6:
	movq	%r15, %rdi
	callq	_smu_get_vbios_bootup_values
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.7:
	movq	%r15, %rdi
	callq	_smu_setup_pptable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.8:
	movq	%r15, %rdi
	callq	_smu_get_clk_info_from_vbios
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.9:
	movq	%r15, %rdi
	callq	_smu_check_pptable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.10:
	movq	%r15, %rdi
	callq	_smu_init_fb_allocations
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.11:
	movq	%r15, %rdi
	callq	_smu_parse_pptable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.12:
	movq	%r15, %rdi
	callq	_smu_check_fw_version
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
LBB0_13:
	movq	%r15, %rdi
	callq	_smu_write_pptable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.14:
	movq	%r15, %rdi
	callq	_smu_run_afll_btc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.15:
	movq	%r15, %rdi
	callq	_smu_feature_set_allowed_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.16:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_smu_system_features_control
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_18
LBB0_21:
	movq	%r15, %rdi
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.22:
	callq	_smu_populate_smc_tables
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.23:
	movq	%r15, %rdi
	callq	_smu_init_max_sustainable_clocks
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.24:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_smu_set_default_od_settings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.25:
	movq	%r15, %rdi
	callq	_smu_populate_umd_state_clk
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.26:
	movq	%r15, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_smu_get_power_limit
	jmp	LBB0_27
LBB0_18:
	movq	%r15, %rdi
	callq	_smu_override_pcie_parameters
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.19:
	movq	%r15, %rdi
	callq	_smu_notify_display_change
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.20:
	movq	%r15, %rdi
	callq	_smu_set_min_dcef_deep_sleep
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_21
LBB0_32:
	xorl	%esi, %esi
	callq	_smu_set_default_od_settings
LBB0_27:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.28:
	movq	%r15, %rdi
	callq	_smu_set_tool_table_location
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_smu_is_dpm_running
	testq	%rax, %rax
	jne	LBB0_31
## %bb.29:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpm has been enabled\n"

	.comm	_CHIP_ARCTURUS,8,3              ## @CHIP_ARCTURUS
L_.str.1:                               ## @.str.1
	.asciz	"dpm has been disabled\n"

	.no_dead_strip	_smu_smc_table_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_smc_table_hw_init
_smu_smc_table_hw_init:                 ; @smu_smc_table_hw_init
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	bl	_smu_is_dpm_running
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w21, #0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	bl	_pr_info
	b	LBB0_18
LBB0_4:
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _CHIP_ARCTURUS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CHIP_ARCTURUS@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_smu_init_display_count
	mov	x21, x0
	cbnz	w0, LBB0_18
LBB0_6:
	cbz	w20, LBB0_14
; %bb.7:
	mov	x0, x19
	bl	_smu_get_vbios_bootup_values
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.8:
	mov	x0, x19
	bl	_smu_setup_pptable
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.9:
	mov	x0, x19
	bl	_smu_get_clk_info_from_vbios
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.10:
	mov	x0, x19
	bl	_smu_check_pptable
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.11:
	mov	x0, x19
	bl	_smu_init_fb_allocations
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.12:
	mov	x0, x19
	bl	_smu_parse_pptable
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.13:
	mov	x0, x19
	bl	_smu_check_fw_version
	mov	x21, x0
	cbnz	w0, LBB0_18
LBB0_14:
	mov	x0, x19
	bl	_smu_write_pptable
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.15:
	mov	x0, x19
	bl	_smu_run_afll_btc
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.16:
	mov	x0, x19
	bl	_smu_feature_set_allowed_mask
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	bl	_smu_system_features_control
	mov	x21, x0
	cbz	w0, LBB0_19
LBB0_18:
	mov	x0, x21
	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
LBB0_19:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_26
LBB0_20:
	mov	x0, x19
	cbz	w20, LBB0_29
; %bb.21:
	bl	_smu_populate_smc_tables
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.22:
	mov	x0, x19
	bl	_smu_init_max_sustainable_clocks
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.23:
	mov	x0, x19
	mov	x1, x20
	bl	_smu_set_default_od_settings
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.24:
	mov	x0, x19
	bl	_smu_populate_umd_state_clk
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.25:
	mov	x0, x19
	mov	x1, x19
	mov	w2, #1
	bl	_smu_get_power_limit
	b	LBB0_30
LBB0_26:
	mov	x0, x19
	bl	_smu_override_pcie_parameters
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.27:
	mov	x0, x19
	bl	_smu_notify_display_change
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.28:
	mov	x0, x19
	bl	_smu_set_min_dcef_deep_sleep
	mov	x21, x0
	cbnz	w0, LBB0_18
	b	LBB0_20
LBB0_29:
	mov	w1, #0
	bl	_smu_set_default_od_settings
LBB0_30:
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.31:
	mov	x0, x19
	bl	_smu_set_tool_table_location
	mov	x21, x0
	mov	x0, x19
	bl	_smu_is_dpm_running
	cbnz	x0, LBB0_18
; %bb.32:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpm has been enabled\n"

	.comm	_CHIP_ARCTURUS,8,3              ; @CHIP_ARCTURUS
l_.str.1:                               ; @.str.1
	.asciz	"dpm has been disabled\n"

	.no_dead_strip	_smu_smc_table_hw_init
.subsections_via_symbols
