	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_fan_ctrl_set_static_mode  ## -- Begin function smu7_fan_ctrl_set_static_mode
	.p2align	4, 0x90
_smu7_fan_ctrl_set_static_mode:         ## @smu7_fan_ctrl_set_static_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CG_FDO_CTRL2@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_FDO_PWM_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_PHM_READ_VFPF_INDIRECT_FIELD
	movq	%rax, 16(%rbx)
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	_TMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_PHM_READ_VFPF_INDIRECT_FIELD
	movq	%rax, 8(%rbx)
	movl	$0, (%rbx)
LBB0_2:
	movl	4(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CG_FDO_CTRL2@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_TMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	_FDO_PWM_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_CG_FDO_CTRL2,4,2               ## @CG_FDO_CTRL2
	.comm	_FDO_PWM_MODE,4,2               ## @FDO_PWM_MODE
	.comm	_TMIN,4,2                       ## @TMIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_fan_ctrl_set_static_mode  ; -- Begin function smu7_fan_ctrl_set_static_mode
	.p2align	2
_smu7_fan_ctrl_set_static_mode:         ; @smu7_fan_ctrl_set_static_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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _CGS_IND_REG__SMC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh2:
	adrp	x22, _CG_FDO_CTRL2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CG_FDO_CTRL2@GOTPAGEOFF]
Lloh4:
	adrp	x24, _TMIN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TMIN@GOTPAGEOFF]
Lloh6:
	adrp	x23, _FDO_PWM_MODE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FDO_PWM_MODE@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	bl	_PHM_READ_VFPF_INDIRECT_FIELD
	str	x0, [x20, #16]
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x24]
	bl	_PHM_READ_VFPF_INDIRECT_FIELD
	str	x0, [x20, #8]
	str	wzr, [x20]
LBB0_2:
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x24]
	mov	w4, #0
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x4, x19
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_CG_FDO_CTRL2,4,2               ; @CG_FDO_CTRL2
	.comm	_FDO_PWM_MODE,4,2               ; @FDO_PWM_MODE
	.comm	_TMIN,4,2                       ; @TMIN
.subsections_via_symbols
