	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_fans_tick_combined
_cpu_fans_tick_combined:                ## @cpu_fans_tick_combined
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cpu_pid@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	movq	_cpu_rear_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_wf_control_get
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	leaq	-48(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	xorl	%edi, %edi
	callq	_read_one_cpu_vals
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	$1, %edi
	callq	_read_one_cpu_vals
	testl	%eax, %eax
	je	LBB0_2
LBB0_15:
	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_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_max
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, %edi
	callq	_cpu_check_overtemp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	callq	_max
	movl	%eax, %r14d
	movl	-60(%rbp), %edi
	movl	-56(%rbp), %esi
	callq	_max
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_wf_cpu_pid_run
	movl	(%r13), %r15d
	movq	_CPU_INTAKE_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	imull	%r15d, %r14d
	sarl	$16, %r14d
	movq	_cpu_pumps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.4:
	movq	8(%rax), %rdi
LBB0_5:
	callq	_wf_control_get_max
	imull	%r15d, %eax
	movq	_cpu_mpu_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r15d
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DBG_LOTS
	movq	_nr_chips@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.6:
	xorl	%r15d, %r15d
	movq	_cpu_front_fans@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movq	_nr_chips@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_cpu_rear_fans@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	movl	(%r13), %esi
	callq	_wf_control_set
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%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_7 Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rdi
	movl	%r14d, %esi
	callq	_wf_control_set
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%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_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_cpu_pumps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_wf_control_set
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_cpu_pumps@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%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_14
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_pid,8,3                    ## @cpu_pid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"* cpu fans_tick_combined()\n"

	.comm	_cpu_rear_fans,8,3              ## @cpu_rear_fans
L_.str.1:                               ## @.str.1
	.asciz	"  CPUs: cur_target = %d RPM\n"

	.comm	_FAILURE_SENSOR,4,2             ## @FAILURE_SENSOR
	.comm	_failure_state,4,2              ## @failure_state
	.comm	_CPU_INTAKE_SCALE,4,2           ## @CPU_INTAKE_SCALE
	.comm	_cpu_pumps,8,3                  ## @cpu_pumps
	.comm	_cpu_mpu_data,8,3               ## @cpu_mpu_data
L_.str.2:                               ## @.str.2
	.asciz	"  CPUs: target = %d RPM\n"

L_.str.3:                               ## @.str.3
	.asciz	"  CPUs: intake = %d RPM\n"

L_.str.4:                               ## @.str.4
	.asciz	"  CPUs: pump   = %d RPM\n"

	.comm	_nr_chips,4,2                   ## @nr_chips
L_.str.5:                               ## @.str.5
	.asciz	"wf_pm72: Fan %s reports error %d\n"

	.comm	_FAILURE_FAN,4,2                ## @FAILURE_FAN
	.comm	_cpu_front_fans,8,3             ## @cpu_front_fans
L_.str.6:                               ## @.str.6
	.asciz	"wf_pm72: Pump %s reports error %d\n"

	.no_dead_strip	_cpu_fans_tick_combined
.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_combined
_cpu_fans_tick_combined:                ; @cpu_fans_tick_combined
	.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	x8, _cpu_pid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_pid@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_LOTS
Lloh5:
	adrp	x24, _cpu_rear_fans@GOTPAGE
Lloh6:
	ldr	x24, [x24, _cpu_rear_fans@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_wf_control_get
	ldr	w8, [x19]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG_LOTS
	add	x1, sp, #28
	add	x2, sp, #24
	mov	w0, #0
	bl	_read_one_cpu_vals
	cbnz	w0, LBB0_2
; %bb.1:
	add	x1, sp, #20
	add	x2, sp, #16
	mov	w0, #1
	bl	_read_one_cpu_vals
	cbz	w0, LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _FAILURE_SENSOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FAILURE_SENSOR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _failure_state@GOTPAGE
Lloh13:
	ldr	x9, [x9, _failure_state@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	bl	_cpu_max_all_fans
LBB0_3:
	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
LBB0_4:
	ldr	w0, [sp, #28]
	ldr	w1, [sp, #20]
	bl	_max
	mov	x1, x0
	mov	w0, #0
	bl	_max
	bl	_cpu_check_overtemp
	cbnz	x0, LBB0_3
; %bb.5:
	ldr	w0, [sp, #28]
	ldr	w1, [sp, #20]
	bl	_max
	mov	x20, x0
	ldr	w0, [sp, #24]
	ldr	w1, [sp, #16]
	bl	_max
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_wf_cpu_pid_run
	ldr	w21, [x19]
Lloh14:
	adrp	x8, _CPU_INTAKE_SCALE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPU_INTAKE_SCALE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	mul	w8, w8, w21
	asr	w20, w8, #16
Lloh17:
	adrp	x8, _cpu_pumps@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cpu_pumps@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x8, #8]
LBB0_7:
	bl	_wf_control_get_max
Lloh20:
	adrp	x8, _cpu_mpu_data@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cpu_mpu_data@GOTPAGEOFF]
	mul	w9, w0, w21
Lloh22:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sdiv	w21, w9, w8
	ldr	w8, [x19]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG_LOTS
	str	x20, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DBG_LOTS
	str	x21, [sp]
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG_LOTS
Lloh29:
	adrp	x26, _nr_chips@GOTPAGE
Lloh30:
	ldr	x26, [x26, _nr_chips@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.8:
	mov	x27, #0
Lloh31:
	adrp	x28, _cpu_front_fans@GOTPAGE
Lloh32:
	ldr	x28, [x28, _cpu_front_fans@GOTPAGEOFF]
Lloh33:
	adrp	x22, _FAILURE_FAN@GOTPAGE
Lloh34:
	ldr	x22, [x22, _FAILURE_FAN@GOTPAGEOFF]
Lloh35:
	adrp	x25, _failure_state@GOTPAGE
Lloh36:
	ldr	x25, [x25, _failure_state@GOTPAGEOFF]
Lloh37:
	adrp	x23, l_.str.5@PAGE
Lloh38:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x26]
	cmp	x27, x8
	b.ge	LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x0, [x8, x27, lsl #3]
	ldr	w1, [x19]
	bl	_wf_control_set
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, x0
	ldr	x8, [x24]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_pr_warning
	ldr	w8, [x22]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x28]
	ldr	x0, [x8, x27, lsl #3]
	mov	x1, x20
	bl	_wf_control_set
	cbz	w0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, x0
	ldr	x8, [x28]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_pr_warning
	ldr	w8, [x22]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh39:
	adrp	x8, _cpu_pumps@GOTPAGE
Lloh40:
	ldr	x8, [x8, _cpu_pumps@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x0, [x8, x27, lsl #3]
	cbz	x0, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x21
	bl	_wf_control_set
	cbz	w0, LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, x0
Lloh42:
	adrp	x8, _cpu_pumps@GOTPAGE
Lloh43:
	ldr	x8, [x8, _cpu_pumps@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w1, [x8]
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_warning
	ldr	w8, [x22]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	b	LBB0_9
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_pid,8,3                    ; @cpu_pid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"* cpu fans_tick_combined()\n"

	.comm	_cpu_rear_fans,8,3              ; @cpu_rear_fans
l_.str.1:                               ; @.str.1
	.asciz	"  CPUs: cur_target = %d RPM\n"

	.comm	_FAILURE_SENSOR,4,2             ; @FAILURE_SENSOR
	.comm	_failure_state,4,2              ; @failure_state
	.comm	_CPU_INTAKE_SCALE,4,2           ; @CPU_INTAKE_SCALE
	.comm	_cpu_pumps,8,3                  ; @cpu_pumps
	.comm	_cpu_mpu_data,8,3               ; @cpu_mpu_data
l_.str.2:                               ; @.str.2
	.asciz	"  CPUs: target = %d RPM\n"

l_.str.3:                               ; @.str.3
	.asciz	"  CPUs: intake = %d RPM\n"

l_.str.4:                               ; @.str.4
	.asciz	"  CPUs: pump   = %d RPM\n"

	.comm	_nr_chips,4,2                   ; @nr_chips
l_.str.5:                               ; @.str.5
	.asciz	"wf_pm72: Fan %s reports error %d\n"

	.comm	_FAILURE_FAN,4,2                ; @FAILURE_FAN
	.comm	_cpu_front_fans,8,3             ; @cpu_front_fans
l_.str.6:                               ; @.str.6
	.asciz	"wf_pm72: Pump %s reports error %d\n"

	.no_dead_strip	_cpu_fans_tick_combined
.subsections_via_symbols
