	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm112_new_control
_pm112_new_control:                     ## @pm112_new_control
	.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	%rdi, %r14
	movq	_cpufreq_clamp@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_wf_get_control
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, (%rbx)
LBB0_4:
	movq	_NR_CPU_FANS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.5:
	xorl	%ebx, %ebx
	movq	_cpu_fan_names@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_11
LBB0_8:
	xorl	%ebx, %ebx
	cmpl	(%r15), %ebx
	jl	LBB0_12
LBB0_23:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_28
## %bb.24:
	movl	8(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_30
## %bb.25:
	movl	8(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_33
## %bb.26:
	movq	_drive_bay_fan@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_31
	jmp	LBB0_33
LBB0_9:
	movq	_cpu_fans@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_wf_get_control
	testq	%rax, %rax
	je	LBB0_22
LBB0_11:
	cmpl	(%r15), %ebx
	jge	LBB0_23
LBB0_12:
	movq	_CPU_FANS_REQD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_cpu_fans@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	testl	%eax, %eax
	jle	LBB0_16
## %bb.13:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_33
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_16:
	movq	(%rcx), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movl	%eax, %r15d
	movq	_FIRST_PUMP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_LAST_PUMP@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jle	LBB0_18
LBB0_17:
	movq	_have_all_controls@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_33
LBB0_28:
	movq	_backside_fan@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_33
	jmp	LBB0_31
LBB0_18:
	decq	%rbx
	movq	_cpu_fan_scale@GOTPCREL(%rip), %r13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	movslq	%eax, %rcx
	incq	%rbx
	cmpq	%rcx, %rbx
	jge	LBB0_17
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	8(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%rdi), %rax
	callq	*(%rax)
	imull	$100, %eax, %eax
	cltd
	idivl	%r15d
	movq	(%r13), %rcx
	movl	%eax, 4(%rcx,%rbx,4)
	movl	(%r12), %eax
	jmp	LBB0_19
LBB0_30:
	movq	_slots_fan@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_33
LBB0_31:
	movq	%r14, %rdi
	callq	_wf_get_control
	testq	%rax, %rax
	jne	LBB0_33
## %bb.32:
	movq	%r14, (%rbx)
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	(%r12), %rax
	movq	%r14, (%rax,%rbx,8)
	cmpl	(%r15), %ebx
	jl	LBB0_12
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_cpufreq_clamp,8,3              ## @cpufreq_clamp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpufreq-clamp"

	.comm	_NR_CPU_FANS,4,2                ## @NR_CPU_FANS
	.comm	_cpu_fan_names,8,3              ## @cpu_fan_names
	.comm	_cpu_fans,8,3                   ## @cpu_fans
L_.str.1:                               ## @.str.1
	.asciz	"backside-fan"

	.comm	_backside_fan,8,3               ## @backside_fan
L_.str.2:                               ## @.str.2
	.asciz	"slots-fan"

	.comm	_slots_fan,8,3                  ## @slots_fan
L_.str.3:                               ## @.str.3
	.asciz	"drive-bay-fan"

	.comm	_drive_bay_fan,8,3              ## @drive_bay_fan
	.comm	_CPU_FANS_REQD,4,2              ## @CPU_FANS_REQD
	.comm	_FIRST_PUMP,4,2                 ## @FIRST_PUMP
	.comm	_LAST_PUMP,4,2                  ## @LAST_PUMP
	.comm	_cpu_fan_scale,8,3              ## @cpu_fan_scale
	.comm	_have_all_controls,4,2          ## @have_all_controls
	.no_dead_strip	_pm112_new_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm112_new_control
_pm112_new_control:                     ; @pm112_new_control
	.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, x0
Lloh0:
	adrp	x20, _cpufreq_clamp@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cpufreq_clamp@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_wf_get_control
	cbnz	x0, LBB0_4
; %bb.3:
	str	x19, [x20]
LBB0_4:
Lloh4:
	adrp	x20, _NR_CPU_FANS@GOTPAGE
Lloh5:
	ldr	x20, [x20, _NR_CPU_FANS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, #0
Lloh6:
	adrp	x22, _cpu_fan_names@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cpu_fan_names@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x22]
	ldr	x1, [x8, x21, lsl #3]
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_6
	b	LBB0_12
LBB0_8:
	mov	w21, #0
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x22, _cpu_fans@GOTPAGE
Lloh9:
	ldr	x22, [x22, _cpu_fans@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	cbnz	x8, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_wf_get_control
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x22]
	str	x19, [x8, x21, lsl #3]
LBB0_12:
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_19
; %bb.13:
Lloh10:
	adrp	x8, _CPU_FANS_REQD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CPU_FANS_REQD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x20, _cpu_fans@GOTPAGE
Lloh14:
	ldr	x20, [x20, _cpu_fans@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.14:
	mov	x10, x9
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_17:
	ldr	x0, [x9]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
Lloh15:
	adrp	x8, _FIRST_PUMP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FIRST_PUMP@GOTPAGEOFF]
Lloh17:
	ldrsw	x21, [x8]
Lloh18:
	adrp	x22, _LAST_PUMP@GOTPAGE
Lloh19:
	ldr	x22, [x22, _LAST_PUMP@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w21, w8
	b.le	LBB0_24
LBB0_18:
Lloh20:
	adrp	x8, _have_all_controls@GOTPAGE
Lloh21:
	ldr	x8, [x8, _have_all_controls@GOTPAGEOFF]
	mov	w9, #1
Lloh22:
	str	w9, [x8]
	b	LBB0_31
LBB0_19:
	ldr	w0, [x19, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.20:
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_28
; %bb.21:
	ldr	w0, [x19, #8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_31
; %bb.22:
Lloh29:
	adrp	x20, _drive_bay_fan@GOTPAGE
Lloh30:
	ldr	x20, [x20, _drive_bay_fan@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_29
	b	LBB0_31
LBB0_23:
Lloh31:
	adrp	x20, _backside_fan@GOTPAGE
Lloh32:
	ldr	x20, [x20, _backside_fan@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_31
	b	LBB0_29
LBB0_24:
	mov	x19, x0
	mov	w23, #100
Lloh33:
	adrp	x24, _cpu_fan_scale@GOTPAGE
Lloh34:
	ldr	x24, [x24, _cpu_fan_scale@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	cmp	x21, w8, sxtw
	add	x21, x21, #1
	b.ge	LBB0_18
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mul	w8, w0, w23
	sdiv	w8, w8, w19
	ldr	x9, [x24]
	str	w8, [x9, x21, lsl #2]
	ldr	w8, [x22]
	b	LBB0_25
LBB0_28:
Lloh35:
	adrp	x20, _slots_fan@GOTPAGE
Lloh36:
	ldr	x20, [x20, _slots_fan@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_31
LBB0_29:
	mov	x0, x19
	bl	_wf_get_control
	cbnz	x0, LBB0_31
; %bb.30:
	str	x19, [x20]
LBB0_31:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_cpufreq_clamp,8,3              ; @cpufreq_clamp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpufreq-clamp"

	.comm	_NR_CPU_FANS,4,2                ; @NR_CPU_FANS
	.comm	_cpu_fan_names,8,3              ; @cpu_fan_names
	.comm	_cpu_fans,8,3                   ; @cpu_fans
l_.str.1:                               ; @.str.1
	.asciz	"backside-fan"

	.comm	_backside_fan,8,3               ; @backside_fan
l_.str.2:                               ; @.str.2
	.asciz	"slots-fan"

	.comm	_slots_fan,8,3                  ; @slots_fan
l_.str.3:                               ; @.str.3
	.asciz	"drive-bay-fan"

	.comm	_drive_bay_fan,8,3              ; @drive_bay_fan
	.comm	_CPU_FANS_REQD,4,2              ; @CPU_FANS_REQD
	.comm	_FIRST_PUMP,4,2                 ; @FIRST_PUMP
	.comm	_LAST_PUMP,4,2                  ; @LAST_PUMP
	.comm	_cpu_fan_scale,8,3              ; @cpu_fan_scale
	.comm	_have_all_controls,4,2          ; @have_all_controls
	.no_dead_strip	_pm112_new_control
.subsections_via_symbols
