	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_smu_tick
_wf_smu_tick:                           ## @wf_smu_tick
	.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
	movq	_wf_smu_failure_state@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movq	_wf_smu_started@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	xorl	%eax, %eax
	callq	_wf_smu_create_drive_fans
	xorl	%eax, %eax
	callq	_wf_smu_create_slots_fans
	xorl	%eax, %eax
	callq	_wf_smu_create_cpu_fans
	movl	$1, (%rbx)
LBB0_2:
	movq	_wf_smu_skipping@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	decl	%eax
	movl	%eax, (%r14)
	jne	LBB0_35
LBB0_4:
	movl	$0, (%r15)
	movq	_wf_smu_drive_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_wf_smu_drive_fans_tick
LBB0_6:
	movq	_wf_smu_slots_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_wf_smu_slots_fans_tick
LBB0_8:
	movq	_wf_smu_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_wf_smu_cpu_fans_tick
LBB0_10:
	movq	_wf_smu_readjust@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	(%r15), %ebx
	movl	%r13d, %r12d
	notl	%r12d
	testl	%ebx, %ebx
	je	LBB0_24
## %bb.11:
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.12:
	movq	_cpufreq_clamp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_wf_control_set_max
LBB0_14:
	movq	_fan_cpu_main@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_wf_control_set_max
LBB0_16:
	movq	_fan_cpu_second@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_wf_control_set_max
LBB0_18:
	movq	_fan_cpu_third@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_wf_control_set_max
LBB0_20:
	movq	_fan_hd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_wf_control_set_max
LBB0_22:
	movq	_fan_slots@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:
	callq	_wf_control_set_max
LBB0_24:
	andl	%r12d, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_29
## %bb.25:
	testl	%r13d, %r13d
	je	LBB0_29
## %bb.26:
	movq	_cpufreq_clamp@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_wf_control_set_min
LBB0_28:
	movq	_wf_smu_readjust@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_29:
	movq	_FAILURE_OVERTEMP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_30
## %bb.31:
	xorl	%eax, %eax
	callq	_wf_set_overtemp
	movl	$2, (%r14)
	movq	_wf_smu_overtemp@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movb	$1, %al
	cmpl	$0, (%r15)
	je	LBB0_33
	jmp	LBB0_35
LBB0_30:
	movq	_wf_smu_overtemp@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
	cmpl	$0, (%r15)
	jne	LBB0_35
LBB0_33:
	testb	%al, %al
	je	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_wf_clear_overtemp
	movq	_wf_smu_overtemp@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wf_smu_failure_state,4,2       ## @wf_smu_failure_state
	.comm	_wf_smu_started,4,2             ## @wf_smu_started
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wf: creating control loops !\n"

	.comm	_wf_smu_skipping,4,2            ## @wf_smu_skipping
	.comm	_wf_smu_drive_fans,8,3          ## @wf_smu_drive_fans
	.comm	_wf_smu_slots_fans,8,3          ## @wf_smu_slots_fans
	.comm	_wf_smu_cpu_fans,8,3            ## @wf_smu_cpu_fans
	.comm	_wf_smu_readjust,4,2            ## @wf_smu_readjust
	.comm	_cpufreq_clamp,8,3              ## @cpufreq_clamp
	.comm	_fan_cpu_main,8,3               ## @fan_cpu_main
	.comm	_fan_cpu_second,8,3             ## @fan_cpu_second
	.comm	_fan_cpu_third,8,3              ## @fan_cpu_third
	.comm	_fan_hd,8,3                     ## @fan_hd
	.comm	_fan_slots,8,3                  ## @fan_slots
	.comm	_FAILURE_OVERTEMP,4,2           ## @FAILURE_OVERTEMP
	.comm	_wf_smu_overtemp,4,2            ## @wf_smu_overtemp
	.no_dead_strip	_wf_smu_tick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_smu_tick
_wf_smu_tick:                           ; @wf_smu_tick
	.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
Lloh0:
	adrp	x19, _wf_smu_failure_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _wf_smu_failure_state@GOTPAGEOFF]
	ldr	w21, [x19]
Lloh2:
	adrp	x20, _wf_smu_started@GOTPAGE
Lloh3:
	ldr	x20, [x20, _wf_smu_started@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	bl	_wf_smu_create_drive_fans
	bl	_wf_smu_create_slots_fans
	bl	_wf_smu_create_cpu_fans
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
Lloh6:
	adrp	x20, _wf_smu_skipping@GOTPAGE
Lloh7:
	ldr	x20, [x20, _wf_smu_skipping@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	subs	w8, w8, #1
	str	w8, [x20]
	b.ne	LBB0_33
LBB0_4:
	str	wzr, [x19]
Lloh8:
	adrp	x8, _wf_smu_drive_fans@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wf_smu_drive_fans@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_wf_smu_drive_fans_tick
LBB0_6:
Lloh11:
	adrp	x8, _wf_smu_slots_fans@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wf_smu_slots_fans@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_wf_smu_slots_fans_tick
LBB0_8:
Lloh14:
	adrp	x8, _wf_smu_cpu_fans@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wf_smu_cpu_fans@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_wf_smu_cpu_fans_tick
LBB0_10:
Lloh17:
	adrp	x22, _wf_smu_readjust@GOTPAGE
Lloh18:
	ldr	x22, [x22, _wf_smu_readjust@GOTPAGEOFF]
	str	wzr, [x22]
	ldr	w23, [x19]
	cmp	w23, #0
	ccmp	w21, #0, #0, ne
	b.ne	LBB0_23
; %bb.11:
Lloh19:
	adrp	x8, _cpufreq_clamp@GOTPAGE
Lloh20:
	ldr	x8, [x8, _cpufreq_clamp@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_wf_control_set_max
LBB0_13:
Lloh22:
	adrp	x8, _fan_cpu_main@GOTPAGE
Lloh23:
	ldr	x8, [x8, _fan_cpu_main@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_wf_control_set_max
LBB0_15:
Lloh25:
	adrp	x8, _fan_cpu_second@GOTPAGE
Lloh26:
	ldr	x8, [x8, _fan_cpu_second@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_wf_control_set_max
LBB0_17:
Lloh28:
	adrp	x8, _fan_cpu_third@GOTPAGE
Lloh29:
	ldr	x8, [x8, _fan_cpu_third@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_wf_control_set_max
LBB0_19:
Lloh31:
	adrp	x8, _fan_hd@GOTPAGE
Lloh32:
	ldr	x8, [x8, _fan_hd@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	cbz	x0, LBB0_21
; %bb.20:
	bl	_wf_control_set_max
LBB0_21:
Lloh34:
	adrp	x8, _fan_slots@GOTPAGE
Lloh35:
	ldr	x8, [x8, _fan_slots@GOTPAGEOFF]
Lloh36:
	ldr	x0, [x8]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_wf_control_set_max
LBB0_23:
	bic	w23, w23, w21
	ldr	w8, [x19]
	cbnz	w8, LBB0_28
; %bb.24:
	cbz	w21, LBB0_28
; %bb.25:
Lloh37:
	adrp	x8, _cpufreq_clamp@GOTPAGE
Lloh38:
	ldr	x8, [x8, _cpufreq_clamp@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	cbz	x0, LBB0_27
; %bb.26:
	bl	_wf_control_set_min
LBB0_27:
	mov	w8, #1
	str	w8, [x22]
LBB0_28:
Lloh40:
	adrp	x8, _FAILURE_OVERTEMP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FAILURE_OVERTEMP@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x21, _wf_smu_overtemp@GOTPAGE
Lloh44:
	ldr	x21, [x21, _wf_smu_overtemp@GOTPAGEOFF]
	tst	w23, w8
	b.eq	LBB0_30
; %bb.29:
	bl	_wf_set_overtemp
	mov	w8, #2
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x21]
	ldr	w9, [x19]
	cbz	w9, LBB0_31
	b	LBB0_33
LBB0_30:
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w8, ne
	ldr	w9, [x19]
	cbnz	w9, LBB0_33
LBB0_31:
	cbz	w8, LBB0_33
; %bb.32:
	bl	_wf_clear_overtemp
	str	wzr, [x21]
LBB0_33:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_wf_smu_failure_state,4,2       ; @wf_smu_failure_state
	.comm	_wf_smu_started,4,2             ; @wf_smu_started
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wf: creating control loops !\n"

	.comm	_wf_smu_skipping,4,2            ; @wf_smu_skipping
	.comm	_wf_smu_drive_fans,8,3          ; @wf_smu_drive_fans
	.comm	_wf_smu_slots_fans,8,3          ; @wf_smu_slots_fans
	.comm	_wf_smu_cpu_fans,8,3            ; @wf_smu_cpu_fans
	.comm	_wf_smu_readjust,4,2            ; @wf_smu_readjust
	.comm	_cpufreq_clamp,8,3              ; @cpufreq_clamp
	.comm	_fan_cpu_main,8,3               ; @fan_cpu_main
	.comm	_fan_cpu_second,8,3             ; @fan_cpu_second
	.comm	_fan_cpu_third,8,3              ; @fan_cpu_third
	.comm	_fan_hd,8,3                     ; @fan_hd
	.comm	_fan_slots,8,3                  ; @fan_slots
	.comm	_FAILURE_OVERTEMP,4,2           ; @FAILURE_OVERTEMP
	.comm	_wf_smu_overtemp,4,2            ; @wf_smu_overtemp
	.no_dead_strip	_wf_smu_tick
.subsections_via_symbols
