	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_thermal_initialize
_smu7_thermal_initialize:               ## @smu7_thermal_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %r8d
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CG_TACH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EDGE_PER_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	decl	%r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
LBB0_2:
	movl	(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CG_FDO_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TACH_PWM_RESP_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$40, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_CG_TACH_CTRL,4,2               ## @CG_TACH_CTRL
	.comm	_EDGE_PER_REV,4,2               ## @EDGE_PER_REV
	.comm	_CG_FDO_CTRL2,4,2               ## @CG_FDO_CTRL2
	.comm	_TACH_PWM_RESP_RATE,4,2         ## @TACH_PWM_RESP_RATE
	.no_dead_strip	_smu7_thermal_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_thermal_initialize
_smu7_thermal_initialize:               ; @smu7_thermal_initialize
	.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	w8, [x0, #4]
Lloh0:
	adrp	x20, _CGS_IND_REG__SMC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CGS_IND_REG__SMC@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x9, _CG_TACH_CTRL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CG_TACH_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	ldr	w2, [x9]
Lloh5:
	adrp	x9, _EDGE_PER_REV@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EDGE_PER_REV@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x9]
	sub	w4, w8, #1
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
LBB0_2:
	ldr	w0, [x19]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _CG_FDO_CTRL2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CG_FDO_CTRL2@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _TACH_PWM_RESP_RATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TACH_PWM_RESP_RATE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w4, #40
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_CG_TACH_CTRL,4,2               ; @CG_TACH_CTRL
	.comm	_EDGE_PER_REV,4,2               ; @EDGE_PER_REV
	.comm	_CG_FDO_CTRL2,4,2               ; @CG_FDO_CTRL2
	.comm	_TACH_PWM_RESP_RATE,4,2         ; @TACH_PWM_RESP_RATE
	.no_dead_strip	_smu7_thermal_initialize
.subsections_via_symbols
