	.file	"extr_nicvf_queues.c_nicvf_get_rcv_skb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nicvf_get_rcv_skb
	.type	nicvf_get_rcv_skb, @function
nicvf_get_rcv_skb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 48[rsi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 56[rsi]
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR [rsi]
	mov	DWORD PTR 4[rsp], edx
	mov	edx, DWORD PTR [rdi]
	test	edx, edx
	cmove	r14, rax
	test	ecx, ecx
	jle	.L21
	mov	rbp, rdi
	mov	rbx, rsi
	xor	r15d, r15d
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	mov	ecx, DWORD PTR 4[rsp]
	mov	rsi, QWORD PTR [r14]
	mov	rdx, rax
	mov	rdi, rbp
	sub	rsi, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rsp], rax
	call	nicvf_unmap_rcv_buffer@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	mov	rsi, r8
	sub	rsi, QWORD PTR 8[rbx]
	call	nicvf_rb_ptr_to_skb@PLT
	mov	r12, rax
	test	rax, rax
	je	.L21
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rax
	add	r15, 1
	call	skb_reserve@PLT
	mov	esi, r13d
	mov	rdi, r12
	call	skb_put@PLT
	cmp	DWORD PTR [rbx], r15d
	jle	.L1
.L3:
	mov	edi, r15d
	call	frag_num@PLT
	mov	rsi, QWORD PTR [r14+r15*8]
	mov	rdi, rbp
	mov	r13d, DWORD PTR 24[rbx+rax*4]
	call	nicvf_iova_to_phys@PLT
	test	rax, rax
	je	.L23
	test	r15, r15
	je	.L24
	mov	rsi, QWORD PTR [r14+r15*8]
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, rax
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	add	r15, 1
	call	nicvf_unmap_rcv_buffer@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, r8
	call	phys_to_virt@PLT
	mov	edi, eax
	call	virt_to_page@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[rsp], rax
	mov	rdi, r8
	call	phys_to_virt@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	DWORD PTR 8[rsp], eax
	mov	rdi, rdx
	mov	QWORD PTR 24[rsp], rdx
	call	page_address@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	r9d, DWORD PTR RCV_FRAG_LEN[rip]
	mov	rdi, r12
	sub	ecx, eax
	mov	DWORD PTR 8[rsp], r9d
	mov	DWORD PTR 16[rsp], ecx
	call	skb_shinfo@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8d, r13d
	mov	rdi, r12
	mov	ecx, DWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR [rax]
	call	skb_add_rx_frag@PLT
	cmp	DWORD PTR [rbx], r15d
	jg	.L3
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L23:
	.cfi_restore_state
	test	r12, r12
	je	.L21
	mov	rdi, r12
	call	dev_kfree_skb_any@PLT
.L21:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nicvf_get_rcv_skb, .-nicvf_get_rcv_skb
	.comm	RCV_FRAG_LEN,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_nicvf_queues.c_nicvf_get_rcv_skb.c"
	.text
	.align	2
	.global	nicvf_get_rcv_skb
	.syntax unified
	.arm
	.fpu softvfp
	.type	nicvf_get_rcv_skb, %function
nicvf_get_rcv_skb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, #0
	ldr	r3, [r1]
	addne	r8, r1, #28
	addeq	r8, r1, #24
	cmp	r3, #0
	movgt	r7, #0
	mov	r9, r0
	mov	r6, r1
	mov	fp, r2
	movgt	r5, r7
	sub	sp, sp, #20
	subgt	r8, r8, #4
	bgt	.L10
	b	.L7
.L21:
	ldr	r2, [r6, #4]
	ldr	r1, [r8]
	mov	r3, fp
	sub	r1, r1, r2
	mov	r0, r9
	mov	r2, r4
	bl	nicvf_unmap_rcv_buffer
	ldr	r1, [r6, #4]
	mov	r2, r10
	mov	r0, r9
	sub	r1, r4, r1
	bl	nicvf_rb_ptr_to_skb
	subs	r7, r0, #0
	beq	.L7
	ldr	r1, [r6, #4]
	bl	skb_reserve
	mov	r1, r10
	mov	r0, r7
	bl	skb_put
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L1
.L10:
	mov	r0, r5
	bl	frag_num
	ldr	r1, [r8, #4]!
	add	r3, r6, r0, lsl #2
	mov	r0, r9
	ldr	r10, [r3, #12]
	bl	nicvf_iova_to_phys
	subs	r4, r0, #0
	beq	.L20
	cmp	r5, #0
	beq	.L21
	ldr	r1, [r8]
	mov	r3, fp
	mov	r2, r4
	mov	r0, r9
	bl	nicvf_unmap_rcv_buffer
	mov	r0, r4
	bl	phys_to_virt
	bl	virt_to_page
	mov	r2, r0
	mov	r0, r4
	str	r2, [sp, #12]
	bl	phys_to_virt
	ldr	r2, [sp, #12]
	mov	r4, r0
	mov	r0, r2
	bl	page_address
	mov	r3, r0
	mov	r0, r7
	sub	r4, r4, r3
	bl	skb_shinfo
	ldr	r3, .L22
	ldr	r1, [r0]
	ldr	ip, [r3]
	mov	r0, r7
	mov	r3, r4
	stm	sp, {r10, ip}
	ldr	r2, [sp, #12]
	bl	skb_add_rx_frag
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L10
.L1:
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r7, #0
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	cmp	r7, #0
	beq	.L7
	mov	r0, r7
	mov	r7, r4
	bl	dev_kfree_skb_any
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	RCV_FRAG_LEN
	.size	nicvf_get_rcv_skb, .-nicvf_get_rcv_skb
	.comm	RCV_FRAG_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
