	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcu_start
_fcu_start:                             ## @fcu_start
	.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	%rdi, %r14
	movb	$-1, -25(%rbp)
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	leaq	-25(%rbp), %r15
	movl	$14, %edx
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_fcu_write
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movl	$46, %edx
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_fcu_write
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_fcu_read_1
	xorl	%edx, %edx
	cmpb	$1, -25(%rbp)
	sete	%dl
	xorl	$3, %edx
	movq	_fcu_rpm_shift@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
	movl	%r14d, %edi
	callq	_fcu_attach_fans
	movq	%rbx, %rdi
	callq	_config_intrhook_disestablish
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fcu_rpm_shift,4,2              ## @fcu_rpm_shift
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FCU initialized, RPM shift: %d\n"

	.no_dead_strip	_fcu_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcu_start
_fcu_start:                             ; @fcu_start
	.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]
	bl	_device_get_softc
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x20, #4]
	add	x3, sp, #15
	mov	w2, #14
	mov	w4, #1
	bl	_fcu_write
	ldp	w1, w0, [x20, #4]
	add	x3, sp, #15
	mov	w2, #46
	mov	w4, #1
	bl	_fcu_write
	ldp	w1, w0, [x20, #4]
	add	x3, sp, #15
	mov	w2, #0
	bl	_fcu_read_1
	ldrb	w8, [sp, #15]
	cmp	w8, #1
	mov	w8, #2
	cinc	w2, w8, ne
Lloh0:
	adrp	x8, _fcu_rpm_shift@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fcu_rpm_shift@GOTPAGEOFF]
Lloh2:
	str	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	mov	x0, x19
	bl	_fcu_attach_fans
	mov	x0, x20
	bl	_config_intrhook_disestablish
	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	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fcu_rpm_shift,4,2              ; @fcu_rpm_shift
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FCU initialized, RPM shift: %d\n"

	.no_dead_strip	_fcu_start
.subsections_via_symbols
