	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_fcu_init_chip
_wf_fcu_init_chip:                      ## @wf_fcu_init_chip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movb	$-1, -17(%rbp)
	leaq	-17(%rbp), %rdx
	movl	$14, %esi
	movl	$1, %ecx
	callq	_wf_fcu_write_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	-17(%rbp), %rdx
	movq	%r14, %rdi
	movl	$46, %esi
	movl	$1, %ecx
	callq	_wf_fcu_write_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-17(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_wf_fcu_read_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	xorl	%esi, %esi
	cmpb	$1, -17(%rbp)
	sete	%sil
	xorl	$3, %esi
	movl	%esi, (%r14)
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wf_fcu: FCU Initialized, RPM fan shift is %d\n"

	.no_dead_strip	_wf_fcu_init_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_fcu_init_chip
_wf_fcu_init_chip:                      ; @wf_fcu_init_chip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #255
	strb	w8, [sp, #15]
	add	x2, sp, #15
	mov	w1, #14
	mov	w3, #1
	bl	_wf_fcu_write_reg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	add	x2, sp, #15
	mov	x0, x19
	mov	w1, #46
	mov	w3, #1
	bl	_wf_fcu_write_reg
	tbnz	w0, #31, LBB0_4
; %bb.2:
	add	x2, sp, #15
	mov	x0, x19
	mov	w1, #0
	mov	w3, #1
	bl	_wf_fcu_read_reg
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldrb	w8, [sp, #15]
	cmp	w8, #1
	mov	w8, #2
	cinc	w1, w8, ne
	str	w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wf_fcu: FCU Initialized, RPM fan shift is %d\n"

	.no_dead_strip	_wf_fcu_init_chip
.subsections_via_symbols
