	.file	"extr_niu.c___niu_fastpath_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__niu_fastpath_interrupt, @function
__niu_fastpath_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, edx
	mov	ecx, 32
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	sar	eax, cl
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 24[rdi]
	mov	DWORD PTR 12[rsp], edx
	mov	edx, DWORD PTR [rdi]
	mov	DWORD PTR 8[rsp], eax
	test	edx, edx
	jle	.L2
	xor	r14d, r14d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	r14, 1
	cmp	DWORD PTR [rbx], r14d
	jle	.L2
.L6:
	mov	rax, QWORD PTR 16[rbx]
	lea	r15, [rax+r14*4]
	mov	edi, DWORD PTR [r15]
	call	LDN_RXDMA@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR 0[r13]
	mov	r12, rdx
	cmp	DWORD PTR [rax+rdx*4], ebp
	jne	.L4
	mov	esi, DWORD PTR LD_IM0_MASK[rip]
	mov	edi, edx
	mov	DWORD PTR 4[rsp], esi
	call	LD_IM0@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, eax
	call	nw64@PLT
	mov	eax, DWORD PTR [r15]
	mov	ecx, DWORD PTR 12[rsp]
	bt	ecx, eax
	jnc	.L4
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rbx
	add	r14, 1
	call	niu_rxchan_intr@PLT
	cmp	DWORD PTR [rbx], r14d
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L1
	xor	r15d, r15d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	add	r15, 1
	cmp	DWORD PTR 4[rbx], r15d
	jle	.L1
.L11:
	mov	rax, QWORD PTR 8[rbx]
	lea	r14, [rax+r15*4]
	mov	edi, DWORD PTR [r14]
	call	LDN_TXDMA@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR 0[r13]
	mov	r12, rdx
	cmp	DWORD PTR [rax+rdx*4], ebp
	jne	.L9
	mov	esi, DWORD PTR LD_IM0_MASK[rip]
	mov	edi, edx
	mov	DWORD PTR 4[rsp], esi
	call	LD_IM0@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, eax
	call	nw64@PLT
	mov	eax, DWORD PTR [r14]
	mov	ecx, DWORD PTR 8[rsp]
	bt	ecx, eax
	jnc	.L9
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, rbx
	add	r15, 1
	call	niu_txchan_intr@PLT
	cmp	DWORD PTR 4[rbx], r15d
	jg	.L11
.L1:
	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	__niu_fastpath_interrupt, .-__niu_fastpath_interrupt
	.comm	LD_IM0_MASK,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_niu.c___niu_fastpath_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__niu_fastpath_interrupt, %function
__niu_fastpath_interrupt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, #32
	ldr	r3, [r0]
	sub	sp, sp, #12
	cmp	r3, #0
	asr	r3, r2, r9
	mov	r5, r0
	mov	r7, r1
	ldr	r8, [r0, #16]
	str	r3, [sp, #4]
	ble	.L2
	mov	r10, r2
	mov	r4, #0
	b	.L6
.L4:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L6:
	ldr	r9, [r5, #12]
	ldr	r0, [r9, r4, lsl #2]
	bl	LDN_RXDMA
	ldr	r1, [r8]
	mov	r6, r0
	ldr	r1, [r1, r0, lsl #2]
	add	fp, r9, r4, lsl #2
	cmp	r1, r7
	bne	.L4
	bl	LD_IM0
	ldr	r3, .L22
	ldr	r1, [r3]
	bl	nw64
	ldr	r2, [r9, r4, lsl #2]
	asr	r2, r10, r2
	tst	r2, #1
	beq	.L4
	mov	r2, r6
	mov	r1, fp
	mov	r0, r5
	bl	niu_rxchan_intr
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L2:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	ble	.L1
	mov	r4, #0
	ldr	r9, .L22
	b	.L11
.L9:
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L11:
	ldr	r10, [r5, #8]
	ldr	r0, [r10, r4, lsl #2]
	bl	LDN_TXDMA
	ldr	r2, [r8]
	mov	r6, r0
	ldr	r2, [r2, r0, lsl #2]
	add	fp, r10, r4, lsl #2
	cmp	r2, r7
	bne	.L9
	bl	LD_IM0
	ldr	r1, [r9]
	bl	nw64
	ldr	r2, [r10, r4, lsl #2]
	ldr	r3, [sp, #4]
	asr	r2, r3, r2
	tst	r2, #1
	beq	.L9
	mov	r2, r6
	mov	r1, fp
	mov	r0, r5
	bl	niu_txchan_intr
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L11
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	LD_IM0_MASK
	.size	__niu_fastpath_interrupt, .-__niu_fastpath_interrupt
	.comm	LD_IM0_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
