	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_thermal_parameter_init
_smu7_thermal_parameter_init:           ## @smu7_thermal_parameter_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	104(%rdi), %r14
	movq	_VDDC_PCC_GPIO_PINID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_atomctrl_get_pp_assign_pin
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	96(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ixCNB_PWRMGT_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_cgs_read_ind_register
	movslq	-40(%rbp), %rcx
	cmpq	$4, %rcx
	ja	LBB0_3
## %bb.2:
	leaq	l_switch.table.smu7_thermal_parameter_init(%rip), %rdx
	movq	(%rdx,%rcx,8), %rdx
	leaq	l_switch.table.smu7_thermal_parameter_init.1(%rip), %rsi
	movl	(%rsi,%rcx,4), %ecx
	movq	_CNB_PWRMGT_CNTL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	(%rdx), %edx
	movl	%eax, %edi
	callq	_PHM_SET_FIELD
LBB0_3:
	movl	96(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	%eax, %ecx
	callq	_cgs_write_ind_register
LBB0_4:
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.6:
	cmpq	$0, 88(%rbx)
	je	LBB0_9
## %bb.7:
	movq	40(%rbx), %rdx
	movq	56(%rbx), %rsi
	movq	%rsi, 80(%rbx)
	movq	%rdx, 72(%rbx)
	movabsq	$429496729601, %rdi             ## imm = 0x6400000001
	movq	%rdi, 16(%rbx)
	movq	%rsi, 64(%rbx)
	leal	-50(%rcx), %esi
	xorl	%edi, %edi
	cmpl	$50, %ecx
	cmovgel	%esi, %edi
	movl	$1, 24(%rbx)
	movl	%edi, (%rax)
	movl	%edi, 4(%rax)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 8(%rax)
	movq	%rdx, 48(%rbx)
	movl	28(%rbx), %ecx
	movl	%ecx, 32(%rbx)
	movl	20(%rax), %ecx
	movq	8(%rbx), %rdx
	movl	%ecx, 16(%rdx)
	movl	%edi, (%rdx)
	movl	%edi, 4(%rdx)
	movl	$1, 8(%rdx)
	movl	16(%rax), %eax
	movl	%eax, 12(%rdx)
	movq	_PP_OD_FUZZY_FAN_CONTROL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %edi
	movq	_PHM_PlatformCaps_ODFuzzyFanControlSupport@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_set
LBB0_9:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VDDC_PCC_GPIO_PINID,4,2        ## @VDDC_PCC_GPIO_PINID
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_ixCNB_PWRMGT_CNTL,4,2          ## @ixCNB_PWRMGT_CNTL
	.comm	_CNB_PWRMGT_CNTL,4,2            ## @CNB_PWRMGT_CNTL
	.comm	_GNB_SLOW_MODE,4,2              ## @GNB_SLOW_MODE
	.comm	_GNB_SLOW,4,2                   ## @GNB_SLOW
	.comm	_FORCE_NB_PS1,4,2               ## @FORCE_NB_PS1
	.comm	_DPM_ENABLED,4,2                ## @DPM_ENABLED
	.comm	_PP_OD_FUZZY_FAN_CONTROL_MASK,4,2 ## @PP_OD_FUZZY_FAN_CONTROL_MASK
	.comm	_PHM_PlatformCaps_ODFuzzyFanControlSupport,4,2 ## @PHM_PlatformCaps_ODFuzzyFanControlSupport
	.no_dead_strip	_smu7_thermal_parameter_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.smu7_thermal_parameter_init
l_switch.table.smu7_thermal_parameter_init:
	.quad	_GNB_SLOW_MODE
	.quad	_GNB_SLOW_MODE
	.quad	_GNB_SLOW
	.quad	_FORCE_NB_PS1
	.quad	_DPM_ENABLED

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.smu7_thermal_parameter_init.1
l_switch.table.smu7_thermal_parameter_init.1:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function smu7_thermal_parameter_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	100                             ; 0x64
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smu7_thermal_parameter_init:           ; @smu7_thermal_parameter_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #104]
Lloh0:
	adrp	x8, _VDDC_PCC_GPIO_PINID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VDDC_PCC_GPIO_PINID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_atomctrl_get_pp_assign_pin
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #96]
Lloh3:
	adrp	x21, _CGS_IND_REG__SMC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CGS_IND_REG__SMC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x22, _ixCNB_PWRMGT_CNTL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ixCNB_PWRMGT_CNTL@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_cgs_read_ind_register
	mov	x4, x0
	ldrsw	x8, [sp, #8]
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.2:
Lloh7:
	adrp	x9, l_switch.table.smu7_thermal_parameter_init@PAGE
Lloh8:
	add	x9, x9, l_switch.table.smu7_thermal_parameter_init@PAGEOFF
	ldr	x9, [x9, x8, lsl #3]
Lloh9:
	adrp	x10, l_switch.table.smu7_thermal_parameter_init.1@PAGE
Lloh10:
	add	x10, x10, l_switch.table.smu7_thermal_parameter_init.1@PAGEOFF
	ldr	w3, [x10, x8, lsl #2]
Lloh11:
	adrp	x8, _CNB_PWRMGT_CNTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CNB_PWRMGT_CNTL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x9]
	mov	x0, x4
	bl	_PHM_SET_FIELD
	mov	x4, x0
LBB0_3:
	ldr	w0, [x19, #96]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, x4
	bl	_cgs_write_ind_register
LBB0_4:
	cbz	x20, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	w9, [x8]
	cbz	w9, LBB0_9
; %bb.6:
	ldr	x10, [x19, #88]
	cbz	x10, LBB0_9
; %bb.7:
	ldr	x10, [x19, #56]
	ldr	x11, [x19, #40]
Lloh14:
	adrp	x12, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x12, lCPI0_0@PAGEOFF]
	str	d0, [x19, #16]
	stp	x11, x10, [x19, #72]
	str	x10, [x19, #64]
	mov	w10, #1
	str	w10, [x19, #24]
	sub	w12, w9, #50
	cmp	w9, #49
	csel	w9, w12, wzr, gt
	stp	w9, w9, [x8]
	movi.2s	v0, #1
	str	d0, [x8, #8]
	str	x11, [x19, #48]
	ldr	w11, [x19, #28]
	str	w11, [x19, #32]
	ldr	x11, [x19, #8]
	stp	w9, w9, [x11]
	str	w10, [x11, #8]
	ldr	d0, [x8, #16]
	stur	d0, [x11, #12]
	ldr	w8, [x19]
Lloh16:
	adrp	x9, _PP_OD_FUZZY_FAN_CONTROL_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PP_OD_FUZZY_FAN_CONTROL_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh19:
	adrp	x8, _PHM_PlatformCaps_ODFuzzyFanControlSupport@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PHM_PlatformCaps_ODFuzzyFanControlSupport@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_phm_cap_set
LBB0_9:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_VDDC_PCC_GPIO_PINID,4,2        ; @VDDC_PCC_GPIO_PINID
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_ixCNB_PWRMGT_CNTL,4,2          ; @ixCNB_PWRMGT_CNTL
	.comm	_CNB_PWRMGT_CNTL,4,2            ; @CNB_PWRMGT_CNTL
	.comm	_GNB_SLOW_MODE,4,2              ; @GNB_SLOW_MODE
	.comm	_GNB_SLOW,4,2                   ; @GNB_SLOW
	.comm	_FORCE_NB_PS1,4,2               ; @FORCE_NB_PS1
	.comm	_DPM_ENABLED,4,2                ; @DPM_ENABLED
	.comm	_PP_OD_FUZZY_FAN_CONTROL_MASK,4,2 ; @PP_OD_FUZZY_FAN_CONTROL_MASK
	.comm	_PHM_PlatformCaps_ODFuzzyFanControlSupport,4,2 ; @PHM_PlatformCaps_ODFuzzyFanControlSupport
	.no_dead_strip	_smu7_thermal_parameter_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.smu7_thermal_parameter_init
l_switch.table.smu7_thermal_parameter_init:
	.quad	_GNB_SLOW_MODE
	.quad	_GNB_SLOW_MODE
	.quad	_GNB_SLOW
	.quad	_FORCE_NB_PS1
	.quad	_DPM_ENABLED

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.smu7_thermal_parameter_init.1
l_switch.table.smu7_thermal_parameter_init.1:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
