	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_fan_isr
_npcm7xx_fan_isr:                       ## @npcm7xx_fan_isr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movslq	(%rax), %rax
	movslq	%edi, %rbx
	subq	%rax, %rbx
	movq	%rbx, %r15
	shlq	$2, %r15
	movq	8(%rsi), %rdi
	addq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	16(%r14), %edi
	movl	%ebx, %esi
	callq	_NPCM7XX_FAN_REG_TICTRL
	movl	%eax, %edi
	callq	_ioread8
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_NPCM7XX_FAN_CMPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	callq	_npcm7xx_check_cmp
	movq	_NPCM7XX_FAN_CMPB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	callq	_npcm7xx_check_cmp
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
LBB0_3:
	addq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPCM7XX_FAN_CMPA,4,2           ## @NPCM7XX_FAN_CMPA
	.comm	_NPCM7XX_FAN_CMPB,4,2           ## @NPCM7XX_FAN_CMPB
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_npcm7xx_fan_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_fan_isr
_npcm7xx_fan_isr:                       ; @npcm7xx_fan_isr
	.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, x1
	ldp	x8, x9, [x1]
	ldr	w8, [x8]
	sub	w21, w0, w8
	sxtw	x20, w21
	add	x0, x9, w21, sxtw #2
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	_NPCM7XX_FAN_REG_TICTRL
	bl	_ioread8
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _NPCM7XX_FAN_CMPA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPCM7XX_FAN_CMPA@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_npcm7xx_check_cmp
Lloh3:
	adrp	x8, _NPCM7XX_FAN_CMPB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPCM7XX_FAN_CMPB@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_npcm7xx_check_cmp
Lloh6:
	adrp	x21, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x21, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x19, #8]
	add	x0, x8, x20, lsl #2
	bl	_spin_unlock_irqrestore
	ldr	w0, [x21]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NPCM7XX_FAN_CMPA,4,2           ; @NPCM7XX_FAN_CMPA
	.comm	_NPCM7XX_FAN_CMPB,4,2           ; @NPCM7XX_FAN_CMPB
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_npcm7xx_fan_isr
.subsections_via_symbols
