	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_thermal_initialize
_vega10_thermal_initialize:             ## @vega10_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_THM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_mmCG_TACH_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_RREG32_SOC15
	movq	_CG_TACH_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_EDGE_PER_REV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rbx), %ecx
	decl	%ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
LBB0_2:
	movq	_THM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_mmCG_FDO_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_RREG32_SOC15
	movq	_CG_FDO_CTRL2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TACH_PWM_RESP_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$40, %ecx
	callq	_REG_SET_FIELD
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THM,4,2                        ## @THM
	.comm	_mmCG_TACH_CTRL,4,2             ## @mmCG_TACH_CTRL
	.comm	_CG_TACH_CTRL,4,2               ## @CG_TACH_CTRL
	.comm	_EDGE_PER_REV,4,2               ## @EDGE_PER_REV
	.comm	_mmCG_FDO_CTRL2,4,2             ## @mmCG_FDO_CTRL2
	.comm	_CG_FDO_CTRL2,4,2               ## @CG_FDO_CTRL2
	.comm	_TACH_PWM_RESP_RATE,4,2         ## @TACH_PWM_RESP_RATE
	.no_dead_strip	_vega10_thermal_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_thermal_initialize
_vega10_thermal_initialize:             ; @vega10_thermal_initialize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _THM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _THM@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w20, [x22]
Lloh2:
	adrp	x8, _mmCG_TACH_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCG_TACH_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_RREG32_SOC15
Lloh5:
	adrp	x8, _CG_TACH_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CG_TACH_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _EDGE_PER_REV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EDGE_PER_REV@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w8, [x19]
	sub	w3, w8, #1
	bl	_REG_SET_FIELD
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_WREG32_SOC15
LBB0_2:
	ldr	w19, [x22]
Lloh11:
	adrp	x8, _mmCG_FDO_CTRL2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmCG_FDO_CTRL2@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_RREG32_SOC15
Lloh14:
	adrp	x8, _CG_FDO_CTRL2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CG_FDO_CTRL2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _TACH_PWM_RESP_RATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TACH_PWM_RESP_RATE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w3, #40
	bl	_REG_SET_FIELD
	mov	x3, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WREG32_SOC15
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_THM,4,2                        ; @THM
	.comm	_mmCG_TACH_CTRL,4,2             ; @mmCG_TACH_CTRL
	.comm	_CG_TACH_CTRL,4,2               ; @CG_TACH_CTRL
	.comm	_EDGE_PER_REV,4,2               ; @EDGE_PER_REV
	.comm	_mmCG_FDO_CTRL2,4,2             ; @mmCG_FDO_CTRL2
	.comm	_CG_FDO_CTRL2,4,2               ; @CG_FDO_CTRL2
	.comm	_TACH_PWM_RESP_RATE,4,2         ; @TACH_PWM_RESP_RATE
	.no_dead_strip	_vega10_thermal_initialize
.subsections_via_symbols
