	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	leaq	L_.str(%rip), %rdi
	callq	_of_find_node_by_path
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%rax), %eax
	andl	$60, %eax
	cmpl	$52, %eax
	jae	LBB0_6
## %bb.3:
	movq	_backside_u3_param@GOTPCREL(%rip), %r12
	jmp	LBB0_7
LBB0_6:
	movq	_backside_u3h_param@GOTPCREL(%rip), %r12
LBB0_7:
	movq	%rbx, %rdi
	callq	_of_node_put
	jmp	LBB0_8
LBB0_4:
	movq	_backside_u3h_param@GOTPCREL(%rip), %r12
LBB0_8:
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	_max
	movl	%eax, -36(%rbp)
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, -40(%rbp)
	movq	_backside_pid@GOTPCREL(%rip), %rdi
	leaq	-40(%rbp), %rsi
	callq	_wf_pid_init
	movq	_backside_tick@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backside_fan,4,2               ## @backside_fan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/u3@0,f8000000"

L_.str.1:                               ## @.str.1
	.asciz	"device-rev"

	.comm	_backside_u3h_param,8,2         ## @backside_u3h_param
	.comm	_backside_u3_param,8,2          ## @backside_u3_param
	.comm	_backside_pid,4,2               ## @backside_pid
	.comm	_backside_tick,4,2              ## @backside_tick
L_.str.2:                               ## @.str.2
	.asciz	"wf_pm72: 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	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_of_find_node_by_path
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
Lloh6:
	adrp	x22, _backside_u3h_param@GOTPAGE
Lloh7:
	ldr	x22, [x22, _backside_u3h_param@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x0]
	and	w8, w8, #0x3c
Lloh8:
	adrp	x9, _backside_u3_param@GOTPAGE
Lloh9:
	ldr	x9, [x9, _backside_u3_param@GOTPAGEOFF]
	cmp	w8, #52
	csel	x22, x9, x22, lo
LBB0_3:
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x22, _backside_u3h_param@GOTPAGE
Lloh11:
	ldr	x22, [x22, _backside_u3h_param@GOTPAGEOFF]
LBB0_5:
	ldp	w21, w0, [x22]
	mov	x1, x19
	bl	_max
	str	w0, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_min
	str	w0, [sp, #8]
Lloh12:
	adrp	x0, _backside_pid@GOTPAGE
Lloh13:
	ldr	x0, [x0, _backside_pid@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_wf_pid_init
Lloh14:
	adrp	x8, _backside_tick@GOTPAGE
Lloh15:
	ldr	x8, [x8, _backside_tick@GOTPAGEOFF]
	mov	w9, #1
Lloh16:
	str	w9, [x8]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_backside_fan,4,2               ; @backside_fan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/u3@0,f8000000"

l_.str.1:                               ; @.str.1
	.asciz	"device-rev"

	.comm	_backside_u3h_param,8,2         ; @backside_u3h_param
	.comm	_backside_u3_param,8,2          ; @backside_u3_param
	.comm	_backside_pid,4,2               ; @backside_pid
	.comm	_backside_tick,4,2              ; @backside_tick
l_.str.2:                               ; @.str.2
	.asciz	"wf_pm72: Backside control loop started.\n"

	.no_dead_strip	_backside_setup_pid
.subsections_via_symbols
