	.file	"extr_ehea_main.c_ehea_refill_rq_def.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: rq%i ran dry - no mem for skb"
	.text
	.p2align 4
	.type	ehea_refill_rq_def, @function
ehea_refill_rq_def:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 16[rdi]
	add	ecx, DWORD PTR [rsi]
	mov	QWORD PTR 56[rsp], rsi
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 28[rsp], edx
	mov	DWORD PTR 48[rsp], r8d
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR [rsi], 0
	mov	edi, DWORD PTR __EHEA_STOP_XFER[rip]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 16[rsi]
	lea	rsi, ehea_driver_flags[rip]
	mov	DWORD PTR 24[rsp], ecx
	mov	QWORD PTR 32[rsp], rax
	call	test_bit@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	mov	rax, QWORD PTR 56[rsp]
	jne	.L20
	mov	ebx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 12[rsp], eax
	sub	eax, 1
	mov	DWORD PTR 52[rsp], eax
	mov	eax, DWORD PTR 24[rsp]
	test	eax, eax
	jle	.L11
	xor	r12d, r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR NET_IP_ALIGN[rip]
	mov	rdi, rax
	call	skb_reserve@PLT
	mov	rdx, QWORD PTR 32[rsp]
	movsx	rax, ebx
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR [rdx+rax*8], rbp
	call	ehea_map_vaddr@PLT
	cmp	eax, -1
	je	.L21
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	mov	DWORD PTR 12[rsp], eax
	add	r12d, 1
	call	ehea_get_next_rwqe@PLT
	mov	esi, DWORD PTR 48[rsp]
	mov	edi, DWORD PTR EHEA_WR_ID_TYPE[rip]
	mov	r15, rax
	call	EHEA_BMASK_SET@PLT
	mov	edi, DWORD PTR EHEA_WR_ID_INDEX[rip]
	mov	esi, ebx
	add	ebx, 1
	mov	ebp, eax
	call	EHEA_BMASK_SET@PLT
	mov	esi, DWORD PTR 8[r14]
	mov	ecx, DWORD PTR 12[rsp]
	or	ebp, eax
	mov	rax, QWORD PTR 8[r15]
	and	ebx, DWORD PTR 52[rsp]
	mov	DWORD PTR [r15], ebp
	mov	DWORD PTR 8[rax], esi
	mov	DWORD PTR [rax], ecx
	mov	DWORD PTR 4[rax], r13d
	mov	DWORD PTR 4[r15], 1
	cmp	DWORD PTR 24[rsp], r12d
	je	.L22
.L7:
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, r13d
	call	netdev_alloc_skb@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	ecx, DWORD PTR 24[rsp]
	mov	rax, QWORD PTR 56[rsp]
	xor	r13d, r13d
	sub	ecx, r12d
	mov	DWORD PTR [rax], ecx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 12[rsp], eax
	sub	eax, 2
	cmp	ecx, eax
	je	.L23
.L5:
	mov	rax, QWORD PTR 56[rsp]
	mov	DWORD PTR 4[rax], ebx
	test	r12d, r12d
	jne	.L10
.L1:
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L20:
	.cfi_restore_state
	mov	edx, DWORD PTR 24[rsp]
	xor	r13d, r13d
	mov	DWORD PTR [rax], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR 56[rsp]
	xor	r13d, r13d
	mov	DWORD PTR 4[rax], ebx
.L10:
	xor	eax, eax
	call	iosync@PLT
	cmp	DWORD PTR 28[rsp], 2
	mov	rdi, QWORD PTR [r14]
	mov	esi, r12d
	je	.L24
	call	ehea_update_rq3a@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	xor	r13d, r13d
	call	dev_kfree_skb@PLT
	mov	ecx, DWORD PTR 24[rsp]
	mov	rax, QWORD PTR 56[rsp]
	sub	ecx, r12d
	mov	DWORD PTR [rax], ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	call	ehea_update_rq2a@PLT
	jmp	.L1
.L23:
	mov	rax, QWORD PTR 16[r14]
	mov	edx, DWORD PTR 28[rsp]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR [rax]
	call	ehea_info@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L5
.L11:
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ehea_refill_rq_def, .-ehea_refill_rq_def
	.comm	ehea_driver_flags,4,4
	.comm	__EHEA_STOP_XFER,4,4
	.comm	NET_IP_ALIGN,4,4
	.comm	ENOMEM,4,4
	.comm	EHEA_WR_ID_TYPE,4,4
	.comm	EHEA_WR_ID_INDEX,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_ehea_main.c_ehea_refill_rq_def.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: rq%i ran dry - no mem for skb\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehea_refill_rq_def, %function
ehea_refill_rq_def:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, r1
	mov	r5, r0
	mov	r4, #0
	ldr	ip, [lr]
	sub	sp, sp, #36
	add	r3, r3, ip
	str	r0, [sp, #12]
	str	r1, [sp, #24]
	ldr	r0, [r0, #8]
	ldr	r1, .L23
	str	r3, [sp, #8]
	ldr	r3, [lr, #12]
	ldr	r10, [r0]
	ldr	fp, [r5]
	ldr	r0, [r1]
	ldr	r1, .L23+4
	str	r4, [lr]
	str	r3, [sp, #16]
	mov	r9, r2
	ldr	r7, [sp, #76]
	bl	test_bit
	bl	unlikely
	subs	r3, r0, #0
	str	r3, [sp, #28]
	bne	.L18
	ldr	r2, [sp, #24]
	ldr	r1, [sp, #8]
	ldr	r3, [r2, #8]
	cmp	r1, #0
	sub	r3, r3, #1
	ldr	r5, [r2, #4]
	str	r3, [sp, #20]
	ble	.L1
	ldr	r6, [sp, #28]
	b	.L7
.L4:
	ldr	r3, .L23+8
	ldr	r1, [r3]
	bl	skb_reserve
	ldr	r3, [sp, #16]
	ldr	r0, [r4]
	str	r4, [r3, r5, lsl #2]
	bl	ehea_map_vaddr
	cmn	r0, #1
	mov	r8, r0
	beq	.L19
	mov	r1, r9
	mov	r0, fp
	bl	ehea_get_next_rwqe
	ldr	r3, .L23+12
	mov	r4, r0
	ldr	r1, [sp, #72]
	ldr	r0, [r3]
	bl	EHEA_BMASK_SET
	mov	r2, r0
	ldr	r3, .L23+16
	mov	r1, r5
	ldr	r0, [r3]
	str	r2, [sp, #4]
	bl	EHEA_BMASK_SET
	mov	ip, #1
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #4]
	add	r6, r6, ip
	orr	r2, r2, r0
	ldr	r0, [r3, #4]
	ldr	r3, [sp, #8]
	ldr	r1, [r4, #8]
	cmp	r3, r6
	ldr	r3, [sp, #20]
	add	r5, r5, ip
	str	r2, [r4]
	and	r5, r5, r3
	str	r0, [r1, #8]
	str	r8, [r1]
	str	r7, [r1, #4]
	str	ip, [r4, #4]
	beq	.L20
.L7:
	mov	r1, r7
	mov	r0, r10
	bl	netdev_alloc_skb
	subs	r4, r0, #0
	bne	.L4
	ldr	r1, [sp, #24]
	ldr	r2, [sp, #8]
	ldr	r3, [r1, #8]
	sub	r2, r2, r6
	sub	r3, r3, #2
	cmp	r2, r3
	str	r2, [r1]
	beq	.L21
.L5:
	ldr	r3, [sp, #24]
	cmp	r6, #0
	str	r5, [r3, #4]
	bne	.L10
.L1:
	ldr	r0, [sp, #28]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, [sp, #24]
	str	r5, [r3, #4]
.L10:
	bl	iosync
	ldr	r3, [sp, #12]
	cmp	r9, #2
	mov	r1, r6
	ldr	r0, [r3]
	beq	.L22
	bl	ehea_update_rq3a
	ldr	r0, [sp, #28]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	str	r4, [sp, #28]
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #8]
	ldr	r0, [sp, #28]
	str	r2, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r0, r4
	bl	dev_kfree_skb
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #24]
	sub	r3, r3, r6
	str	r3, [r2]
	ldr	r3, [sp, #24]
	cmp	r6, #0
	str	r5, [r3, #4]
	beq	.L1
	b	.L10
.L22:
	bl	ehea_update_rq2a
	ldr	r0, [sp, #28]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, [sp, #12]
	mov	r2, r9
	ldr	r3, [r3, #8]
	ldr	r0, .L23+20
	ldr	r3, [r3]
	ldr	r1, [r3]
	bl	ehea_info
	ldr	r3, .L23+24
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #28]
	b	.L5
.L24:
	.align	2
.L23:
	.word	__EHEA_STOP_XFER
	.word	ehea_driver_flags
	.word	NET_IP_ALIGN
	.word	EHEA_WR_ID_TYPE
	.word	EHEA_WR_ID_INDEX
	.word	.LC0
	.word	ENOMEM
	.size	ehea_refill_rq_def, .-ehea_refill_rq_def
	.comm	ehea_driver_flags,4,4
	.comm	__EHEA_STOP_XFER,4,4
	.comm	NET_IP_ALIGN,4,4
	.comm	ENOMEM,4,4
	.comm	EHEA_WR_ID_TYPE,4,4
	.comm	EHEA_WR_ID_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
