	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_fan_ctrl_set_default_mode ## -- Begin function vega10_fan_ctrl_set_default_mode
	.p2align	4, 0x90
_vega10_fan_ctrl_set_default_mode:      ## @vega10_fan_ctrl_set_default_mode
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	movq	_THM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_mmCG_FDO_CTRL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_RREG32_SOC15
	movq	_CG_FDO_CTRL2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_FDO_PWM_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%r12), %ecx
	movl	%eax, %edi
	callq	_REG_SET_FIELD
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movq	_THM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %r15d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_RREG32_SOC15
	movl	(%r13), %esi
	movq	_TMIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	8(%r12), %ebx
	movq	_CG_FDO_CTRL2__TMIN__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	$1, (%r12)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THM,4,2                        ## @THM
	.comm	_mmCG_FDO_CTRL2,4,2             ## @mmCG_FDO_CTRL2
	.comm	_CG_FDO_CTRL2,4,2               ## @CG_FDO_CTRL2
	.comm	_FDO_PWM_MODE,4,2               ## @FDO_PWM_MODE
	.comm	_TMIN,4,2                       ## @TMIN
	.comm	_CG_FDO_CTRL2__TMIN__SHIFT,4,2  ## @CG_FDO_CTRL2__TMIN__SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vega10_fan_ctrl_set_default_mode ; -- Begin function vega10_fan_ctrl_set_default_mode
	.p2align	2
_vega10_fan_ctrl_set_default_mode:      ; @vega10_fan_ctrl_set_default_mode
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _THM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _THM@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh2:
	adrp	x23, _mmCG_FDO_CTRL2@GOTPAGE
Lloh3:
	ldr	x23, [x23, _mmCG_FDO_CTRL2@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_RREG32_SOC15
Lloh4:
	adrp	x24, _CG_FDO_CTRL2@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CG_FDO_CTRL2@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh6:
	adrp	x8, _FDO_PWM_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FDO_PWM_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	bl	_REG_SET_FIELD
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_WREG32_SOC15
	ldr	w20, [x22]
	ldr	w21, [x23]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_RREG32_SOC15
	ldr	w1, [x24]
Lloh9:
	adrp	x8, _TMIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TMIN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	w8, [x19, #8]
Lloh12:
	adrp	x9, _CG_FDO_CTRL2__TMIN__SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CG_FDO_CTRL2__TMIN__SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w3, w8, w9
	bl	_REG_SET_FIELD
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_WREG32_SOC15
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_THM,4,2                        ; @THM
	.comm	_mmCG_FDO_CTRL2,4,2             ; @mmCG_FDO_CTRL2
	.comm	_CG_FDO_CTRL2,4,2               ; @CG_FDO_CTRL2
	.comm	_FDO_PWM_MODE,4,2               ; @FDO_PWM_MODE
	.comm	_TMIN,4,2                       ; @TMIN
	.comm	_CG_FDO_CTRL2__TMIN__SHIFT,4,2  ; @CG_FDO_CTRL2__TMIN__SHIFT
.subsections_via_symbols
