	.file	"extr_npcm750-pwm-fan.c_npcm7xx_check_cmp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	npcm7xx_check_cmp, @function
npcm7xx_check_cmp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	NPCM7XX_FAN_INPUT@PLT
	cmp	QWORD PTR NPCM7XX_FAN_CMPA[rip], r12
	mov	r15, rax
	je	.L11
	mov	rdx, QWORD PTR NPCM7XX_FAN_TICTRL_TFPND[rip]
	mov	rbx, QWORD PTR NPCM7XX_FAN_TIEN_TBIEN[rip]
	mov	r10, QWORD PTR NPCM7XX_FAN_TICLR_TBCLR[rip]
	mov	rcx, QWORD PTR NPCM7XX_FAN_TICTRL_TBPND[rip]
	mov	r9, QWORD PTR NPCM7XX_FAN_TCKC_CLK2_APB[rip]
	or	rbx, QWORD PTR NPCM7XX_FAN_TIEN_TFIEN[rip]
	or	r10, QWORD PTR NPCM7XX_FAN_TICLR_TFCLR[rip]
	test	rdx, r14
	jne	.L12
.L4:
	test	rcx, r14
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdx, r12
	mov	r8, rbx
	mov	rcx, r15
	push	r10
	.cfi_def_cfa_offset 96
	mov	rsi, rbp
	mov	rdi, r13
	call	npcm7xx_fan_compute@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdx, QWORD PTR NPCM7XX_FAN_TICTRL_TEPND[rip]
	mov	rbx, QWORD PTR NPCM7XX_FAN_TIEN_TAIEN[rip]
	mov	r10, QWORD PTR NPCM7XX_FAN_TICLR_TACLR[rip]
	mov	rcx, QWORD PTR NPCM7XX_FAN_TICTRL_TAPND[rip]
	mov	r9, QWORD PTR NPCM7XX_FAN_TCKC_CLK1_APB[rip]
	or	rbx, QWORD PTR NPCM7XX_FAN_TIEN_TEIEN[rip]
	or	r10, QWORD PTR NPCM7XX_FAN_TICLR_TECLR[rip]
	test	rdx, r14
	je	.L4
.L12:
	mov	edi, DWORD PTR 8[r13]
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], r9
	not	rbx
	mov	QWORD PTR [rsp], r10
	call	NPCM7XX_FAN_REG_TIEN@PLT
	mov	edi, eax
	call	ioread8@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	rsi, rbp
	mov	r12, rax
	call	NPCM7XX_FAN_REG_TIEN@PLT
	mov	rdi, rbx
	and	rdi, r12
	mov	esi, eax
	call	iowrite8@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	rsi, rbp
	call	NPCM7XX_FAN_REG_TICLR@PLT
	mov	r10, QWORD PTR [rsp]
	mov	esi, eax
	mov	rdi, r10
	call	iowrite8@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	rsi, rbp
	call	NPCM7XX_FAN_REG_TCKC@PLT
	mov	edi, eax
	call	ioread8@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	rsi, rbp
	mov	rbx, rax
	call	NPCM7XX_FAN_REG_TCKC@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	esi, eax
	not	r9
	mov	rdi, r9
	and	rdi, rbx
	call	iowrite8@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR [rax+r15*8], 0
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	npcm7xx_check_cmp, .-npcm7xx_check_cmp
	.comm	NPCM7XX_FAN_TIEN_TFIEN,8,8
	.comm	NPCM7XX_FAN_TIEN_TEIEN,8,8
	.comm	NPCM7XX_FAN_TIEN_TBIEN,8,8
	.comm	NPCM7XX_FAN_TIEN_TAIEN,8,8
	.comm	NPCM7XX_FAN_TICTRL_TFPND,8,8
	.comm	NPCM7XX_FAN_TICTRL_TEPND,8,8
	.comm	NPCM7XX_FAN_TICTRL_TBPND,8,8
	.comm	NPCM7XX_FAN_TICTRL_TAPND,8,8
	.comm	NPCM7XX_FAN_TICLR_TFCLR,8,8
	.comm	NPCM7XX_FAN_TICLR_TECLR,8,8
	.comm	NPCM7XX_FAN_TICLR_TBCLR,8,8
	.comm	NPCM7XX_FAN_TICLR_TACLR,8,8
	.comm	NPCM7XX_FAN_TCKC_CLK2_APB,8,8
	.comm	NPCM7XX_FAN_TCKC_CLK1_APB,8,8
	.comm	NPCM7XX_FAN_CMPA,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_npcm750-pwm-fan.c_npcm7xx_check_cmp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	npcm7xx_check_cmp, %function
npcm7xx_check_cmp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r1, r2
	mov	r6, r0
	sub	sp, sp, #20
	mov	r0, r4
	mov	r7, r3
	bl	NPCM7XX_FAN_INPUT
	ldr	r2, .L14
	mov	r10, r0
	ldr	r2, [r2]
	cmp	r2, r5
	beq	.L11
	ldr	r2, .L14+4
	ldr	ip, .L14+8
	ldr	lr, .L14+12
	ldr	r0, .L14+16
	ldr	r1, .L14+20
	ldr	r2, [r2]
	ldr	r9, [ip]
	ldr	r3, .L14+24
	ldr	r8, [lr]
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	ip, .L14+28
	tst	r2, r7
	ldr	r3, [r3]
	ldr	fp, [ip]
	orr	r8, r8, r0
	orr	r9, r9, r1
	bne	.L12
.L4:
	tst	r3, r7
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r3, r10
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	stm	sp, {r8, fp}
	str	r9, [sp, #8]
	bl	npcm7xx_fan_compute
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r2, .L14+32
	ldr	r0, .L14+36
	ldr	r9, [r2]
	ldr	r2, .L14+40
	ldr	r1, .L14+44
	ldr	r3, .L14+48
	ldr	r2, [r2]
	ldr	r8, [r0]
	ldr	ip, [r3]
	ldr	r0, [r1]
	ldr	r3, .L14+52
	ldr	r1, .L14+56
	tst	r2, r7
	ldr	r3, [r3]
	ldr	fp, [r1]
	orr	r8, r8, r0
	orr	r9, r9, ip
	beq	.L4
.L12:
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	NPCM7XX_FAN_REG_TIEN
	bl	ioread8
	mov	r1, r4
	bic	r8, r0, r8
	ldr	r0, [r6, #4]
	bl	NPCM7XX_FAN_REG_TIEN
	mov	r1, r0
	mov	r0, r8
	bl	iowrite8
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	NPCM7XX_FAN_REG_TICLR
	mov	r1, r0
	mov	r0, r9
	bl	iowrite8
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	NPCM7XX_FAN_REG_TCKC
	bl	ioread8
	mov	r1, r4
	bic	fp, r0, fp
	ldr	r0, [r6, #4]
	bl	NPCM7XX_FAN_REG_TCKC
	mov	r1, r0
	mov	r0, fp
	bl	iowrite8
	mov	r2, #0
	ldr	r3, [r6]
	str	r2, [r3, r10, lsl #2]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	NPCM7XX_FAN_CMPA
	.word	NPCM7XX_FAN_TICTRL_TFPND
	.word	NPCM7XX_FAN_TICLR_TBCLR
	.word	NPCM7XX_FAN_TIEN_TBIEN
	.word	NPCM7XX_FAN_TIEN_TFIEN
	.word	NPCM7XX_FAN_TICLR_TFCLR
	.word	NPCM7XX_FAN_TICTRL_TBPND
	.word	NPCM7XX_FAN_TCKC_CLK2_APB
	.word	NPCM7XX_FAN_TICLR_TACLR
	.word	NPCM7XX_FAN_TIEN_TAIEN
	.word	NPCM7XX_FAN_TICTRL_TEPND
	.word	NPCM7XX_FAN_TIEN_TEIEN
	.word	NPCM7XX_FAN_TICLR_TECLR
	.word	NPCM7XX_FAN_TICTRL_TAPND
	.word	NPCM7XX_FAN_TCKC_CLK1_APB
	.size	npcm7xx_check_cmp, .-npcm7xx_check_cmp
	.comm	NPCM7XX_FAN_TIEN_TFIEN,4,4
	.comm	NPCM7XX_FAN_TIEN_TEIEN,4,4
	.comm	NPCM7XX_FAN_TIEN_TBIEN,4,4
	.comm	NPCM7XX_FAN_TIEN_TAIEN,4,4
	.comm	NPCM7XX_FAN_TICTRL_TFPND,4,4
	.comm	NPCM7XX_FAN_TICTRL_TEPND,4,4
	.comm	NPCM7XX_FAN_TICTRL_TBPND,4,4
	.comm	NPCM7XX_FAN_TICTRL_TAPND,4,4
	.comm	NPCM7XX_FAN_TICLR_TFCLR,4,4
	.comm	NPCM7XX_FAN_TICLR_TECLR,4,4
	.comm	NPCM7XX_FAN_TICLR_TBCLR,4,4
	.comm	NPCM7XX_FAN_TICLR_TACLR,4,4
	.comm	NPCM7XX_FAN_TCKC_CLK2_APB,4,4
	.comm	NPCM7XX_FAN_TCKC_CLK1_APB,4,4
	.comm	NPCM7XX_FAN_CMPA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
