	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_fan_polling
_npcm7xx_fan_polling:                   ## @npcm7xx_fan_polling
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_fan_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r14
	movl	(%rax), %r12d
	movq	_NPCM7XX_FAN_MAX_MODULE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_8
## %bb.1:
	movslq	%r12d, %rbx
	addl	%r12d, %r12d
	movq	_NPCM7XX_FAN_TCNT@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	movq	_NPCM7XX_FAN_MAX_MODULE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addl	$8, %r12d
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NPCM7XX_FAN_TICLR_CLEAR_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	16(%r14), %edi
	movl	%ebx, %esi
	callq	_NPCM7XX_FAN_REG_TICLR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_iowrite8
	movq	24(%r14), %rax
	movslq	%r12d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %r15d
	movl	16(%r14), %edi
	movl	%ebx, %esi
	callq	_NPCM7XX_FAN_REG_TCNT1
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_iowrite16
	movq	_NPCM7XX_FAN_CMPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_npcm7xx_fan_start_capture
	movq	24(%r14), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r12), %ecx
	movslq	%ecx, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %r15d
	movl	16(%r14), %edi
	movl	%ebx, %esi
	callq	_NPCM7XX_FAN_REG_TCNT2
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_iowrite16
	movq	_NPCM7XX_FAN_CMPB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_npcm7xx_fan_start_capture
	jmp	LBB0_6
LBB0_7:
	movl	(%r14), %r12d
LBB0_8:
	incl	%r12d
	andl	$3, %r12d
	movl	%r12d, (%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_NPCM7XX_FAN_POLL_TIMER_200MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	%rax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fan_timer,4,2                  ## @fan_timer
	.comm	_NPCM7XX_FAN_MAX_MODULE,4,2     ## @NPCM7XX_FAN_MAX_MODULE
	.comm	_NPCM7XX_FAN_TICLR_CLEAR_ALL,4,2 ## @NPCM7XX_FAN_TICLR_CLEAR_ALL
	.comm	_NPCM7XX_FAN_TCNT,4,2           ## @NPCM7XX_FAN_TCNT
	.comm	_NPCM7XX_FAN_CMPA,4,2           ## @NPCM7XX_FAN_CMPA
	.comm	_NPCM7XX_FAN_CMPB,4,2           ## @NPCM7XX_FAN_CMPB
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_NPCM7XX_FAN_POLL_TIMER_200MS,4,2 ## @NPCM7XX_FAN_POLL_TIMER_200MS
	.no_dead_strip	_npcm7xx_fan_polling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_fan_polling
_npcm7xx_fan_polling:                   ; @npcm7xx_fan_polling
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _fan_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fan_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x22, _NPCM7XX_FAN_MAX_MODULE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NPCM7XX_FAN_MAX_MODULE@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.1:
	sxtw	x20, w8
	lsl	w23, w8, #1
Lloh5:
	adrp	x24, _NPCM7XX_FAN_TICLR_CLEAR_ALL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NPCM7XX_FAN_TICLR_CLEAR_ALL@GOTPAGEOFF]
Lloh7:
	adrp	x25, _NPCM7XX_FAN_TCNT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _NPCM7XX_FAN_TCNT@GOTPAGEOFF]
Lloh9:
	adrp	x26, _NPCM7XX_FAN_CMPB@GOTPAGE
Lloh10:
	ldr	x26, [x26, _NPCM7XX_FAN_CMPB@GOTPAGEOFF]
Lloh11:
	adrp	x27, _NPCM7XX_FAN_CMPA@GOTPAGE
Lloh12:
	ldr	x27, [x27, _NPCM7XX_FAN_CMPA@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #4
	ldrsw	x8, [x22]
	add	w23, w23, #8
	cmp	x20, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x24]
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TICLR
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	ldr	x8, [x19, #24]
	ldr	x9, [x8, w23, sxtw #3]
	cbz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x25]
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TCNT1
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite16
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_npcm7xx_fan_start_capture
	ldr	x8, [x19, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w23, #1
	ldr	x8, [x8, w9, sxtw #3]
	cbz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x25]
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TCNT2
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite16
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_npcm7xx_fan_start_capture
	b	LBB0_2
LBB0_7:
	ldr	w8, [x19]
LBB0_8:
	add	w8, w8, #1
	and	w8, w8, #0x3
	str	w8, [x19]
Lloh13:
	adrp	x8, _jiffies@GOTPAGE
Lloh14:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
Lloh16:
	adrp	x8, _NPCM7XX_FAN_POLL_TIMER_200MS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NPCM7XX_FAN_POLL_TIMER_200MS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x8, x0, x20
	str	x8, [x19, #8]!
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_add_timer
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_fan_timer,4,2                  ; @fan_timer
	.comm	_NPCM7XX_FAN_MAX_MODULE,4,2     ; @NPCM7XX_FAN_MAX_MODULE
	.comm	_NPCM7XX_FAN_TICLR_CLEAR_ALL,4,2 ; @NPCM7XX_FAN_TICLR_CLEAR_ALL
	.comm	_NPCM7XX_FAN_TCNT,4,2           ; @NPCM7XX_FAN_TCNT
	.comm	_NPCM7XX_FAN_CMPA,4,2           ; @NPCM7XX_FAN_CMPA
	.comm	_NPCM7XX_FAN_CMPB,4,2           ; @NPCM7XX_FAN_CMPB
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_NPCM7XX_FAN_POLL_TIMER_200MS,4,2 ; @NPCM7XX_FAN_POLL_TIMER_200MS
	.no_dead_strip	_npcm7xx_fan_polling
.subsections_via_symbols
