	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_fans_tick
_cpu_fans_tick:                         ## @cpu_fans_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
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	movq	_nr_chips@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_nr_chips@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jge	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cpu_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	(%r12,%r13), %r14
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	callq	_wf_control_get
	movl	%ebx, %edi
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_read_one_cpu_vals
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	movl	%r15d, %edi
	callq	_max
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_cpu_check_overtemp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	callq	_wf_cpu_pid_run
	movl	(%r12,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	movl	(%r12,%rbx,4), %edi
	movq	_dimms_output_clamp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movl	%eax, %r14d
	movq	_cpu_fans@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_wf_control_set
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warning
	movq	_FAILURE_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_failure_state@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rdi
	movl	%r14d, %esi
	callq	_wf_control_set
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warning
	movq	_FAILURE_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_failure_state@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	16(%rax), %rdi
	movl	%r14d, %esi
	callq	_wf_control_set
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	16(%rcx), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warning
	movq	_FAILURE_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_failure_state@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_11
LBB0_3:
	movq	_FAILURE_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_failure_state@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_cpu_max_all_fans
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"* cpu fans_tick_split()\n"

	.comm	_nr_chips,4,2                   ## @nr_chips
	.comm	_cpu_pid,8,3                    ## @cpu_pid
	.comm	_cpu_fans,8,3                   ## @cpu_fans
	.comm	_FAILURE_SENSOR,4,2             ## @FAILURE_SENSOR
	.comm	_failure_state,4,2              ## @failure_state
L_.str.1:                               ## @.str.1
	.asciz	"  CPU%d: target = %d RPM\n"

	.comm	_dimms_output_clamp,4,2         ## @dimms_output_clamp
L_.str.2:                               ## @.str.2
	.asciz	"wf_rm31: Fan %s reports error %d\n"

	.comm	_FAILURE_FAN,4,2                ## @FAILURE_FAN
	.no_dead_strip	_cpu_fans_tick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_fans_tick
_cpu_fans_tick:                         ; @cpu_fans_tick
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_LOTS
Lloh2:
	adrp	x24, _nr_chips@GOTPAGE
Lloh3:
	ldr	x24, [x24, _nr_chips@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x25, #0
	mov	x19, #0
	mov	w20, #0
Lloh4:
	adrp	x27, _cpu_fans@GOTPAGE
Lloh5:
	ldr	x27, [x27, _cpu_fans@GOTPAGEOFF]
Lloh6:
	adrp	x21, _FAILURE_FAN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FAILURE_FAN@GOTPAGEOFF]
Lloh8:
	adrp	x28, _failure_state@GOTPAGE
Lloh9:
	ldr	x28, [x28, _failure_state@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.2@PAGE
Lloh11:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x19, x8
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh12:
	adrp	x8, _cpu_pid@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cpu_pid@GOTPAGEOFF]
Lloh14:
	ldr	x26, [x8]
	add	x23, x26, x25
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_wf_control_get
	add	x1, sp, #28
	add	x2, sp, #24
	mov	x0, x19
	bl	_read_one_cpu_vals
	cbnz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #28]
	mov	x0, x20
	bl	_max
	mov	x20, x0
	bl	_cpu_check_overtemp
	cbnz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w1, w2, [sp, #24]
	mov	x0, x23
	bl	_wf_cpu_pid_run
	lsl	x23, x19, #2
	ldr	w8, [x26, x23]
	stp	x19, x8, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG_LOTS
	ldr	w0, [x26, x23]
Lloh17:
	adrp	x8, _dimms_output_clamp@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dimms_output_clamp@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_max
	mov	x23, x0
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_wf_control_set
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_pr_warning
	ldr	w8, [x21]
	ldr	w9, [x28]
	orr	w8, w9, w8
	str	w8, [x28]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x0, [x8, #8]
	mov	x1, x23
	bl	_wf_control_set
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_pr_warning
	ldr	w8, [x21]
	ldr	w9, [x28]
	orr	w8, w9, w8
	str	w8, [x28]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x0, [x8, #16]
	mov	x1, x23
	bl	_wf_control_set
	cbz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	ldr	x8, [x27]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8, #16]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_pr_warning
	ldr	w8, [x21]
	ldr	w9, [x28]
	orr	w8, w9, w8
	str	w8, [x28]
	b	LBB0_2
LBB0_11:
Lloh20:
	adrp	x8, _FAILURE_SENSOR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FAILURE_SENSOR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	str	w8, [x28]
	bl	_cpu_max_all_fans
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"* cpu fans_tick_split()\n"

	.comm	_nr_chips,4,2                   ; @nr_chips
	.comm	_cpu_pid,8,3                    ; @cpu_pid
	.comm	_cpu_fans,8,3                   ; @cpu_fans
	.comm	_FAILURE_SENSOR,4,2             ; @FAILURE_SENSOR
	.comm	_failure_state,4,2              ; @failure_state
l_.str.1:                               ; @.str.1
	.asciz	"  CPU%d: target = %d RPM\n"

	.comm	_dimms_output_clamp,4,2         ; @dimms_output_clamp
l_.str.2:                               ; @.str.2
	.asciz	"wf_rm31: Fan %s reports error %d\n"

	.comm	_FAILURE_FAN,4,2                ; @FAILURE_FAN
	.no_dead_strip	_cpu_fans_tick
.subsections_via_symbols
