	.file	"extr_speedfax.c_speedfax_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: %d irqloops cpu%d\n"
.LC1:
	.string	"%s: %d IRQ LOOP cpu%d\n"
	.text
	.p2align 4
	.type	speedfax_irq, @function
speedfax_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR irqloops[rip]
	call	spin_lock@PLT
	mov	rdi, QWORD PTR TIGER_AUX_STATUS[rip]
	add	rdi, QWORD PTR 24[rbp]
	call	inb@PLT
	test	DWORD PTR SFAX_TIGER_IRQ_BIT[rip], eax
	jne	.L29
	add	DWORD PTR 16[rbp], 1
	mov	esi, DWORD PTR ISAR_IRQBIT[rip]
	mov	rdi, rbp
	lea	r12, 12[rbp]
	call	ReadISAR_IND@PLT
	mov	edx, DWORD PTR ISAR_IRQSTA[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR ISAC_ISTA[rip]
	mov	rdi, rbp
	call	ReadISAC_IND@PLT
	test	eax, eax
	jne	.L30
.L6:
	mov	esi, DWORD PTR ISAR_IRQBIT[rip]
	mov	rdi, rbp
	call	ReadISAR_IND@PLT
	mov	edx, DWORD PTR ISAR_IRQSTA[rip]
	test	edx, eax
	je	.L7
	lea	ecx, -1[rbx]
	test	ebx, ebx
	je	.L31
	mov	ebx, ecx
.L4:
	test	eax, edx
	je	.L5
	mov	rdi, r12
	call	mISDNisar_irq@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rdi, 8[rbp]
	mov	esi, eax
	call	mISDNisac_irq@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, rbp
	call	spin_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_NONE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR irqloops[rip]
	test	ebx, ebx
	sete	r12b
	cmp	eax, ebx
	jg	.L13
.L9:
	test	eax, eax
	je	.L12
	test	r12b, r12b
	jne	.L32
.L12:
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
.L33:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	eax, DWORD PTR irqloops[rip]
	test	eax, eax
	js	.L12
	xor	r12d, r12d
	mov	ebx, -1
.L13:
	xor	eax, eax
	call	smp_processor_id@PLT
	mov	edx, DWORD PTR irqloops[rip]
	mov	esi, DWORD PTR 4[rbp]
	lea	rdi, .LC0[rip]
	mov	ecx, eax
	sub	edx, ebx
	call	pr_debug@PLT
	mov	eax, DWORD PTR irqloops[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	smp_processor_id@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR irqloops[rip]
	lea	rdi, .LC1[rip]
	mov	ecx, eax
	call	pr_notice@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	jmp	.L33
	.cfi_endproc
.LFE0:
	.size	speedfax_irq, .-speedfax_irq
	.comm	irqloops,4,4
	.comm	TIGER_AUX_STATUS,8,8
	.comm	SFAX_TIGER_IRQ_BIT,4,4
	.comm	ISAR_IRQSTA,4,4
	.comm	ISAR_IRQBIT,4,4
	.comm	ISAC_ISTA,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.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_speedfax.c_speedfax_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: %d irqloops cpu%d\012\000"
	.align	2
.LC1:
	.ascii	"%s: %d IRQ LOOP cpu%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	speedfax_irq, %function
speedfax_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r9, .L29
	mov	r0, r1
	ldr	r5, [r9]
	bl	spin_lock
	ldr	r3, .L29+4
	ldr	r0, [r4, #20]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	inb
	ldr	r3, .L29+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L25
	ldr	r3, [r4, #16]
	ldr	r7, .L29+12
	add	r3, r3, #1
	str	r3, [r4, #16]
	mov	r0, r4
	ldr	r1, [r7]
	bl	ReadISAR_IND
	ldr	r6, .L29+16
	ldr	r8, .L29+20
	ldr	r3, [r6]
	add	fp, r4, #12
	and	r3, r3, r0
	add	r10, r4, #8
	b	.L4
.L5:
	ldr	r1, [r8]
	mov	r0, r4
	bl	ReadISAC_IND
	subs	r1, r0, #0
	bne	.L26
.L6:
	mov	r0, r4
	ldr	r1, [r7]
	bl	ReadISAR_IND
	ldr	r3, [r6]
	sub	r2, r5, #1
	ands	r3, r3, r0
	beq	.L7
	cmp	r5, #0
	beq	.L27
	mov	r5, r2
.L4:
	cmp	r3, #0
	beq	.L5
	mov	r0, fp
	bl	mISDNisar_irq
	b	.L5
.L26:
	mov	r0, r10
	bl	mISDNisac_irq
	b	.L6
.L25:
	mov	r0, r4
	bl	spin_unlock
	ldr	r3, .L29+24
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	clz	r7, r5
	ldr	r6, [r9]
	lsr	r7, r7, #5
	cmp	r6, r5
	bgt	.L12
	cmp	r6, #0
	moveq	r7, #0
	cmp	r7, #0
	bne	.L28
.L11:
	mov	r0, r4
	bl	spin_unlock
	ldr	r3, .L29+28
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r6, [r9]
	cmp	r6, #0
	blt	.L11
	mov	r7, r5
	mvn	r5, #0
.L12:
	sub	r5, r6, r5
	ldr	r6, [r4, #4]
	bl	smp_processor_id
	mov	r1, r6
	mov	r3, r0
	mov	r2, r5
	ldr	r0, .L29+32
	bl	pr_debug
	ldr	r6, [r9]
	cmp	r6, #0
	moveq	r7, #0
	cmp	r7, #0
	beq	.L11
.L28:
	ldr	r5, [r4, #4]
	bl	smp_processor_id
	mov	r2, r6
	mov	r3, r0
	mov	r1, r5
	ldr	r0, .L29+36
	bl	pr_notice
	b	.L11
.L30:
	.align	2
.L29:
	.word	irqloops
	.word	TIGER_AUX_STATUS
	.word	SFAX_TIGER_IRQ_BIT
	.word	ISAR_IRQBIT
	.word	ISAR_IRQSTA
	.word	ISAC_ISTA
	.word	IRQ_NONE
	.word	IRQ_HANDLED
	.word	.LC0
	.word	.LC1
	.size	speedfax_irq, .-speedfax_irq
	.comm	irqloops,4,4
	.comm	TIGER_AUX_STATUS,4,4
	.comm	SFAX_TIGER_IRQ_BIT,4,4
	.comm	ISAR_IRQSTA,4,4
	.comm	ISAR_IRQBIT,4,4
	.comm	ISAC_ISTA,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
