	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function backside_setup_pid
_backside_setup_pid:                    ## @backside_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	_backside_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	_backside_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	_backside_pid@GOTPCREL(%rip), %rdi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_wf_pid_init
	movq	_dimms_param@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_dimms_pid@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_wf_pid_init
	movq	_backside_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	_backside_fan,4,2               ## @backside_fan
	.comm	_backside_param,8,2             ## @backside_param
	.comm	_backside_pid,4,2               ## @backside_pid
	.comm	_dimms_param,8,2                ## @dimms_param
	.comm	_dimms_pid,4,2                  ## @dimms_pid
	.comm	_backside_tick,4,2              ## @backside_tick
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wf_rm31: Backside control loop started.\n"

	.no_dead_strip	_backside_setup_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function backside_setup_pid
_backside_setup_pid:                    ; @backside_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, _backside_fan@GOTPAGE
Lloh1:
	ldr	x20, [x20, _backside_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, _backside_param@GOTPAGE
Lloh3:
	ldr	x8, [x8, _backside_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, _backside_pid@GOTPAGE
Lloh5:
	ldr	x0, [x0, _backside_pid@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_wf_pid_init
Lloh6:
	adrp	x8, _dimms_param@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dimms_param@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh9:
	adrp	x0, _dimms_pid@GOTPAGE
Lloh10:
	ldr	x0, [x0, _dimms_pid@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_wf_pid_init
Lloh11:
	adrp	x8, _backside_tick@GOTPAGE
Lloh12:
	ldr	x8, [x8, _backside_tick@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	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	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_backside_fan,4,2               ; @backside_fan
	.comm	_backside_param,8,2             ; @backside_param
	.comm	_backside_pid,4,2               ; @backside_pid
	.comm	_dimms_param,8,2                ; @dimms_param
	.comm	_dimms_pid,4,2                  ; @dimms_pid
	.comm	_backside_tick,4,2              ; @backside_tick
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wf_rm31: Backside control loop started.\n"

	.no_dead_strip	_backside_setup_pid
.subsections_via_symbols
