	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_fcu_fan_get_rpm
_wf_fcu_fan_get_rpm:                    ## @wf_fcu_fan_get_rpm
	.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	%rsi, %r14
	movq	(%rdi), %r12
	movq	8(%r12), %rbx
	movl	(%rbx), %r15d
	leaq	-34(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$11, %esi
	movl	$1, %ecx
	callq	_wf_fcu_read_reg
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movzbl	-34(%rbp), %eax
	movl	(%r12), %ecx
	btl	%ecx, %eax
	jae	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	leaq	-33(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$13, %esi
	movl	$1, %ecx
	callq	_wf_fcu_read_reg
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.6:
	movzbl	-33(%rbp), %ecx
	movl	(%r12), %eax
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.8:
	leal	(%rax,%rax), %esi
	addl	$16, %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_wf_fcu_read_reg
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.9:
	movzbl	-36(%rbp), %eax
	movb	$8, %cl
	subb	%r15b, %cl
	shll	%cl, %eax
	movzbl	-35(%rbp), %edx
	movl	%r15d, %ecx
	shrl	%cl, %edx
	orl	%eax, %edx
	movb	%dl, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_wf_fcu_fan_get_rpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_fcu_fan_get_rpm
_wf_fcu_fan_get_rpm:                    ; @wf_fcu_fan_get_rpm
	.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
	mov	x19, x1
	ldr	x22, [x0]
	ldr	x20, [x22, #8]
	ldr	w21, [x20]
	add	x2, sp, #15
	mov	x0, x20
	mov	w1, #11
	mov	w3, #1
	bl	_wf_fcu_read_reg
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.1:
	ldrb	w8, [sp, #15]
	ldr	w9, [x22]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	add	x2, sp, #14
	mov	x0, x20
	mov	w1, #13
	mov	w3, #1
	bl	_wf_fcu_read_reg
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	ldrb	w9, [sp, #14]
	ldr	w8, [x22]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_10
; %bb.5:
	lsl	w8, w8, #1
	add	w1, w8, #16
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #2
	bl	_wf_fcu_read_reg
	cmp	w0, #2
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
	ldrb	w8, [sp, #12]
	mov	w9, #8
	sub	w9, w9, w21
	lsl	w8, w8, w9
	ldrb	w9, [sp, #13]
	lsr	w9, w9, w21
	orr	w8, w9, w8
	strb	w8, [x19]
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_wf_fcu_fan_get_rpm
.subsections_via_symbols
