	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_read_fan
_npcm7xx_read_fan:                      ## @npcm7xx_read_fan
	.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	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	cmpl	$128, %ebx
	jne	LBB0_5
## %bb.1:
	movq	$0, (%r14)
	movq	8(%rax), %rcx
	movslq	%r15d, %rsi
	movl	(%rcx,%rsi,8), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movl	4(%rcx,%rsi,8), %esi
	xorl	%ecx, %ecx
	testl	%esi, %esi
	jle	LBB0_6
## %bb.4:
	imull	$60, (%rax), %eax
	imull	%edx, %esi
	cltd
	idivl	%esi
	cltq
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_6
LBB0_2:
	movl	%edx, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_npcm7xx_read_fan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_read_fan
_npcm7xx_read_fan:                      ; @npcm7xx_read_fan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	cmp	w21, #128
	b.ne	LBB0_5
; %bb.1:
	mov	x8, x0
	str	xzr, [x19]
	ldr	x9, [x0, #8]
	sbfiz	x10, x20, #3, #32
	ldr	w0, [x9, x10]
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	sxtw	x10, w20
	add	x9, x9, x10, lsl #3
	ldr	w9, [x9, #4]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [x8]
	mov	w10, #60
	mul	w8, w8, w10
	mul	w9, w9, w0
	sdiv	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19]
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_npcm7xx_read_fan
.subsections_via_symbols
