	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npcm7xx_fan_start_capture
_npcm7xx_fan_start_capture:             ## @npcm7xx_fan_start_capture
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_NPCM7XX_FAN_INPUT
	movq	%rax, %rbx
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_FAN_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	(,%r14,4), %r15
	movq	(%r13), %rdi
	addq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_FAN_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	8(%r13), %edi
	movq	%r14, %rsi
	callq	_NPCM7XX_FAN_REG_TIEN
	movl	%eax, %edi
	callq	_ioread8
	movq	%rax, %rbx
	movq	_NPCM7XX_FAN_CMPA@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	movq	_NPCM7XX_FAN_TIEN_TBIEN@GOTPCREL(%rip), %rax
	cmoveq	_NPCM7XX_FAN_TIEN_TAIEN@GOTPCREL(%rip), %rax
	movq	_NPCM7XX_FAN_TIEN_TFIEN@GOTPCREL(%rip), %rcx
	cmoveq	_NPCM7XX_FAN_TIEN_TEIEN@GOTPCREL(%rip), %rcx
	movl	8(%r13), %edi
	movq	_NPCM7XX_FAN_TCKC_CLK2_APB@GOTPCREL(%rip), %r12
	cmoveq	_NPCM7XX_FAN_TCKC_CLK1_APB@GOTPCREL(%rip), %r12
	orq	(%rax), %rbx
	orq	(%rcx), %rbx
	movq	%r14, %rsi
	callq	_NPCM7XX_FAN_REG_TIEN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_iowrite8
	movq	(%r12), %rbx
	movl	8(%r13), %edi
	movq	%r14, %rsi
	callq	_NPCM7XX_FAN_REG_TCKC
	movl	%eax, %edi
	callq	_ioread8
	orq	%rax, %rbx
	movl	8(%r13), %edi
	movq	%r14, %rsi
	callq	_NPCM7XX_FAN_REG_TCKC
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_iowrite8
	addq	(%r13), %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FAN_DISABLE,8,3                ## @FAN_DISABLE
	.comm	_FAN_INIT,8,3                   ## @FAN_INIT
	.comm	_NPCM7XX_FAN_CMPA,8,3           ## @NPCM7XX_FAN_CMPA
	.comm	_NPCM7XX_FAN_TIEN_TAIEN,8,3     ## @NPCM7XX_FAN_TIEN_TAIEN
	.comm	_NPCM7XX_FAN_TIEN_TEIEN,8,3     ## @NPCM7XX_FAN_TIEN_TEIEN
	.comm	_NPCM7XX_FAN_TCKC_CLK1_APB,8,3  ## @NPCM7XX_FAN_TCKC_CLK1_APB
	.comm	_NPCM7XX_FAN_TIEN_TBIEN,8,3     ## @NPCM7XX_FAN_TIEN_TBIEN
	.comm	_NPCM7XX_FAN_TIEN_TFIEN,8,3     ## @NPCM7XX_FAN_TIEN_TFIEN
	.comm	_NPCM7XX_FAN_TCKC_CLK2_APB,8,3  ## @NPCM7XX_FAN_TCKC_CLK2_APB
	.no_dead_strip	_npcm7xx_fan_start_capture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npcm7xx_fan_start_capture
_npcm7xx_fan_start_capture:             ; @npcm7xx_fan_start_capture
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_NPCM7XX_FAN_INPUT
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x0, lsl #3]
Lloh0:
	adrp	x9, _FAN_DISABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FAN_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x22, x0
	ldr	x8, [x19]
	lsl	x23, x20, #2
	add	x0, x8, x23
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _FAN_INIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FAN_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	str	x8, [x9, x22, lsl #3]
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TIEN
	bl	_ioread8
Lloh6:
	adrp	x8, _NPCM7XX_FAN_CMPA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NPCM7XX_FAN_CMPA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _NPCM7XX_FAN_TIEN_TAIEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NPCM7XX_FAN_TIEN_TAIEN@GOTPAGEOFF]
Lloh11:
	adrp	x10, _NPCM7XX_FAN_TIEN_TBIEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NPCM7XX_FAN_TIEN_TBIEN@GOTPAGEOFF]
	cmp	x8, x21
	csel	x8, x9, x10, eq
Lloh13:
	adrp	x9, _NPCM7XX_FAN_TIEN_TEIEN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NPCM7XX_FAN_TIEN_TEIEN@GOTPAGEOFF]
Lloh15:
	adrp	x10, _NPCM7XX_FAN_TIEN_TFIEN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NPCM7XX_FAN_TIEN_TFIEN@GOTPAGEOFF]
	ldr	x8, [x8]
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	orr	x8, x8, x0
	orr	x21, x8, x9
	ldr	w0, [x19, #8]
Lloh17:
	adrp	x8, _NPCM7XX_FAN_TCKC_CLK1_APB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NPCM7XX_FAN_TCKC_CLK1_APB@GOTPAGEOFF]
Lloh19:
	adrp	x9, _NPCM7XX_FAN_TCKC_CLK2_APB@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NPCM7XX_FAN_TCKC_CLK2_APB@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TIEN
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	ldr	x21, [x22]
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TCKC
	bl	_ioread8
	orr	x21, x0, x21
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_NPCM7XX_FAN_REG_TCKC
	mov	x1, x0
	mov	x0, x21
	bl	_iowrite8
	ldr	x8, [x19]
	add	x0, x8, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FAN_DISABLE,8,3                ; @FAN_DISABLE
	.comm	_FAN_INIT,8,3                   ; @FAN_INIT
	.comm	_NPCM7XX_FAN_CMPA,8,3           ; @NPCM7XX_FAN_CMPA
	.comm	_NPCM7XX_FAN_TIEN_TAIEN,8,3     ; @NPCM7XX_FAN_TIEN_TAIEN
	.comm	_NPCM7XX_FAN_TIEN_TEIEN,8,3     ; @NPCM7XX_FAN_TIEN_TEIEN
	.comm	_NPCM7XX_FAN_TCKC_CLK1_APB,8,3  ; @NPCM7XX_FAN_TCKC_CLK1_APB
	.comm	_NPCM7XX_FAN_TIEN_TBIEN,8,3     ; @NPCM7XX_FAN_TIEN_TBIEN
	.comm	_NPCM7XX_FAN_TIEN_TFIEN,8,3     ; @NPCM7XX_FAN_TIEN_TFIEN
	.comm	_NPCM7XX_FAN_TCKC_CLK2_APB,8,3  ; @NPCM7XX_FAN_TCKC_CLK2_APB
	.no_dead_strip	_npcm7xx_fan_start_capture
.subsections_via_symbols
