	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drives_setup_pid
_drives_setup_pid:                      ## @drives_setup_pid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_drives_fan@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_wf_control_get_min
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_wf_control_get_max
	movl	%eax, %r14d
	movq	_drives_param@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	_max
	movl	%eax, -28(%rbp)
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, -32(%rbp)
	movq	_drives_pid@GOTPCREL(%rip), %rdi
	leaq	-32(%rbp), %rsi
	callq	_wf_pid_init
	movq	_drives_tick@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drives_fan,4,2                 ## @drives_fan
	.comm	_drives_param,8,2               ## @drives_param
	.comm	_drives_pid,4,2                 ## @drives_pid
	.comm	_drives_tick,4,2                ## @drives_tick
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wf_pm72: Drive bay control loop started.\n"

	.no_dead_strip	_drives_setup_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drives_setup_pid
_drives_setup_pid:                      ; @drives_setup_pid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x20, _drives_fan@GOTPAGE
Lloh1:
	ldr	x20, [x20, _drives_fan@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_wf_control_get_min
	mov	x19, x0
	ldr	w0, [x20]
	bl	_wf_control_get_max
	mov	x20, x0
Lloh2:
	adrp	x8, _drives_param@GOTPAGE
Lloh3:
	ldr	x8, [x8, _drives_param@GOTPAGEOFF]
	ldp	w21, w0, [x8]
	mov	x1, x19
	bl	_max
	str	w0, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_min
	str	w0, [sp, #8]
Lloh4:
	adrp	x0, _drives_pid@GOTPAGE
Lloh5:
	ldr	x0, [x0, _drives_pid@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_wf_pid_init
Lloh6:
	adrp	x8, _drives_tick@GOTPAGE
Lloh7:
	ldr	x8, [x8, _drives_tick@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_drives_fan,4,2                 ; @drives_fan
	.comm	_drives_param,8,2               ; @drives_param
	.comm	_drives_pid,4,2                 ; @drives_pid
	.comm	_drives_tick,4,2                ; @drives_tick
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wf_pm72: Drive bay control loop started.\n"

	.no_dead_strip	_drives_setup_pid
.subsections_via_symbols
