	.file	"extr_xgene_enet_main.c_xgene_enet_rx_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xgene_enet_rx_frame, @function
xgene_enet_rx_frame:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r14, QWORD PTR 88[rdi]
	mov	QWORD PTR 32[rsp], rdx
	mov	rdi, r14
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR 88[rbx]
	mov	QWORD PTR 8[rsp], rax
	call	ndev_to_dev@PLT
	mov	rcx, QWORD PTR 80[rbx]
	mov	r13, QWORD PTR 72[rbx]
	mov	edi, DWORD PTR 4[r12]
	mov	ebp, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 48[rsp], rcx
	mov	r15d, DWORD PTR XGENE_ENET_STD_MTU[rip]
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR DATAADDR[rip]
	mov	esi, eax
	call	GET_VAL@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	ecx, ebp
	mov	edx, r15d
	mov	esi, eax
	call	dma_unmap_single@PLT
	mov	edi, DWORD PTR [r12]
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR USERINFO[rip]
	mov	esi, eax
	call	GET_VAL@PLT
	mov	rcx, QWORD PTR 48[rsp]
	mov	edi, DWORD PTR 4[r12]
	cdqe
	mov	rdx, QWORD PTR 64[rcx]
	lea	rax, [rdx+rax*8]
	mov	rbp, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	call	le64_to_cpu@PLT
	mov	edi, eax
	call	xgene_enet_get_data_len@PLT
	mov	rdi, rbp
	mov	rsi, rax
	mov	r15, rax
	call	skb_put@PLT
	mov	rdi, QWORD PTR 8[rbp]
	sub	rdi, QWORD PTR NET_IP_ALIGN[rip]
	call	prefetch@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	eth_type_trans@PLT
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 0[rbp], eax
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR ELERR[rip]
	mov	esi, eax
	call	GET_VAL@PLT
	mov	ecx, DWORD PTR LERR_LEN[rip]
	mov	edi, DWORD PTR [r12]
	mov	r14d, eax
	sal	r14d, cl
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR LERR[rip]
	mov	esi, eax
	call	GET_VAL@PLT
	or	r14d, eax
	mov	edi, r14d
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	edx, r14d
	mov	rsi, r15
	mov	rdi, rbp
	call	xgene_enet_errata_10GE_8@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 8[rsp]
	add	DWORD PTR 4[rax], 1
.L2:
	mov	edi, DWORD PTR [r12]
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR NV[rip]
	mov	esi, eax
	call	GET_VAL@PLT
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR 0[r13]
	mov	r12, QWORD PTR 8[r13]
	mov	QWORD PTR 56[rsp], rbx
	xor	r14d, r14d
	sub	rax, 1
	mov	QWORD PTR 40[rsp], rax
.L9:
	mov	eax, r14d
	mov	rcx, QWORD PTR 32[rsp]
	xor	eax, 1
	cdqe
	lea	rdx, [rcx+rax*4]
	mov	edi, DWORD PTR [rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	le64_to_cpu@PLT
	mov	edi, eax
	call	xgene_enet_get_data_len@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L8
	mov	rdx, QWORD PTR 8[rsp]
	add	r14d, 1
	add	r15, rbx
	mov	edi, DWORD PTR [rdx]
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR DATAADDR[rip]
	mov	esi, eax
	call	GET_VAL@PLT
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, eax
	call	dma_unmap_page@PLT
	mov	rax, QWORD PTR 48[r13]
	mov	r9d, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rbp
	mov	rdx, QWORD PTR [rax+r12*8]
	mov	DWORD PTR 8[rsp], r9d
	mov	QWORD PTR 24[rsp], rdx
	call	skb_shinfo@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8, rbx
	xor	ecx, ecx
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR [rax]
	mov	rdi, rbp
	call	skb_add_rx_frag@PLT
	mov	rax, QWORD PTR 48[r13]
	mov	QWORD PTR [rax+r12*8], 0
	add	r12, 1
	and	r12, QWORD PTR 40[rsp]
	cmp	r14d, 4
	jne	.L9
.L8:
	mov	QWORD PTR 8[r13], r12
	mov	rbx, QWORD PTR 56[rsp]
	mov	rdi, rbp
	call	skb_shinfo@PLT
	mov	rax, QWORD PTR [rax]
	sub	QWORD PTR 16[rbx], rax
.L7:
	mov	rdi, rbp
	call	skb_checksum_none_assert@PLT
	mov	rdi, rbp
	call	xgene_enet_rx_csum@PLT
	add	DWORD PTR 40[rbx], 1
	lea	rdi, 32[rbx]
	mov	rsi, rbp
	add	DWORD PTR 36[rbx], r15d
	call	napi_gro_receive@PLT
.L5:
	cmp	QWORD PTR 16[rbx], 0
	jle	.L10
.L13:
	sub	QWORD PTR 24[rbx], 1
	je	.L11
	xor	eax, eax
.L1:
	add	rsp, 72
	.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
.L23:
	.cfi_restore_state
	sub	r15, 4
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR NUM_BUFPOOL[rip]
	call	xgene_enet_refill_bufpool@PLT
	mov	rdx, QWORD PTR NUM_BUFPOOL[rip]
	mov	QWORD PTR 24[rbx], rdx
	add	rsp, 72
	.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
.L10:
	.cfi_restore_state
	mov	rsi, QWORD PTR NUM_NXTBUFPOOL[rip]
	mov	rdi, r13
	call	xgene_enet_refill_pagepool@PLT
	mov	rdx, QWORD PTR NUM_NXTBUFPOOL[rip]
	mov	QWORD PTR 16[rbx], rdx
	test	eax, eax
	je	.L13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, r14d
	mov	rsi, r15
	mov	rdi, rbp
	call	xgene_enet_errata_10GE_10@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 8[rsp]
	add	DWORD PTR [rax], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	dev_kfree_skb_any@PLT
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, r12
	mov	rdi, r13
	call	xgene_enet_free_pagepool@PLT
	mov	esi, r14d
	mov	rdi, rbx
	call	xgene_enet_parse_error@PLT
	add	DWORD PTR 56[rbx], 1
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	xgene_enet_rx_frame, .-xgene_enet_rx_frame
	.comm	XGENE_ENET_STD_MTU,4,4
	.comm	USERINFO,4,4
	.comm	PAGE_SIZE,4,4
	.comm	NV,4,4
	.comm	NUM_NXTBUFPOOL,8,8
	.comm	NUM_BUFPOOL,8,8
	.comm	NET_IP_ALIGN,8,8
	.comm	LERR_LEN,4,4
	.comm	LERR,4,4
	.comm	ELERR,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DATAADDR,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_xgene_enet_main.c_xgene_enet_rx_frame.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgene_enet_rx_frame, %function
xgene_enet_rx_frame:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0, #48]
	sub	sp, sp, #36
	mov	r4, r0
	mov	r0, r9
	mov	r6, r1
	str	r2, [sp, #8]
	bl	netdev_priv
	mov	r8, r0
	ldr	r0, [r4, #48]
	bl	ndev_to_dev
	mov	r3, r0
	ldr	r2, .L24
	ldr	r7, [r4, #44]
	ldr	r0, [r6, #4]
	mov	fp, r3
	ldr	r5, [r2]
	str	r3, [sp, #16]
	str	r7, [sp, #24]
	ldr	r10, [r4, #40]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, r5
	bl	GET_VAL
	ldr	r2, .L24+4
	ldr	r3, .L24+8
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, fp
	ldr	r3, [r3]
	bl	dma_unmap_single
	ldr	r3, .L24+12
	ldr	r0, [r6]
	ldr	r5, [r3]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, r5
	bl	GET_VAL
	mov	r1, #0
	mov	r3, r0
	ldr	r2, [r7, #36]
	ldr	r0, [r6, #4]
	ldr	r5, [r2, r3, lsl #2]
	str	r1, [r2, r3, lsl #2]
	bl	le64_to_cpu
	bl	xgene_enet_get_data_len
	mov	r7, r0
	mov	r0, r5
	mov	r1, r7
	bl	skb_put
	ldr	r3, .L24+16
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	sub	r0, r0, r3
	bl	prefetch
	mov	r1, r9
	mov	r0, r5
	bl	eth_type_trans
	ldr	r3, .L24+20
	str	r0, [r5]
	ldr	r0, [r6]
	ldr	r9, [r3]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, r9
	bl	GET_VAL
	mov	r9, r0
	ldr	r3, .L24+24
	ldr	r2, .L24+28
	ldr	r3, [r3]
	ldr	r0, [r6]
	ldr	fp, [r2]
	lsl	r9, r9, r3
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, fp
	bl	GET_VAL
	orr	r9, r9, r0
	mov	r0, r9
	bl	unlikely
	cmp	r0, #0
	beq	.L2
	mov	r2, r9
	mov	r1, r7
	mov	r0, r5
	bl	xgene_enet_errata_10GE_8
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r8, #4]
	add	r3, r3, #1
	str	r3, [r8, #4]
.L2:
	ldr	r3, .L24+32
	ldr	r0, [r6]
	ldr	r6, [r3]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, r6
	bl	GET_VAL
	cmp	r0, #0
	subeq	r7, r7, #4
	beq	.L7
	ldm	r10, {r3, r9}
	mov	r8, #0
	sub	r3, r3, #1
	ldr	fp, .L24+36
	str	r3, [sp, #20]
	str	r4, [sp, #28]
.L9:
	ldr	r3, [sp, #8]
	eor	r6, r8, #1
	ldr	r0, [r3, r6, lsl #2]
	bl	le64_to_cpu
	bl	xgene_enet_get_data_len
	subs	r4, r0, #0
	add	r8, r8, #1
	beq	.L8
	ldr	r3, [sp, #8]
	add	r7, r7, r4
	ldr	r0, [r3, r6, lsl #2]
	ldr	r3, .L24
	ldr	r6, [r3]
	bl	le64_to_cpu
	mov	r1, r0
	mov	r0, r6
	bl	GET_VAL
	ldr	r3, .L24+8
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r2, [fp]
	ldr	r0, [sp, #16]
	bl	dma_unmap_page
	ldr	r3, [r10, #28]
	mov	r0, r5
	ldr	r2, [r3, r9, lsl #2]
	str	r2, [sp, #12]
	bl	skb_shinfo
	ldr	r3, [fp]
	ldr	r1, [r0]
	ldr	r2, [sp, #12]
	str	r3, [sp, #4]
	mov	r0, r5
	mov	r3, #0
	str	r4, [sp]
	bl	skb_add_rx_frag
	mov	r1, #0
	ldr	r2, [r10, #28]
	add	r3, r9, #1
	str	r1, [r2, r9, lsl #2]
	ldr	r2, [sp, #20]
	cmp	r8, #4
	and	r9, r3, r2
	bne	.L9
.L8:
	mov	r0, r5
	str	r9, [r10, #4]
	ldr	r4, [sp, #28]
	bl	skb_shinfo
	ldr	r3, [r4, #8]
	ldr	r2, [r0]
	sub	r3, r3, r2
	str	r3, [r4, #8]
.L7:
	mov	r0, r5
	bl	skb_checksum_none_assert
	mov	r0, r5
	bl	xgene_enet_rx_csum
	ldr	r0, [r4, #20]
	ldr	r3, [r4, #24]
	add	r7, r0, r7
	add	r3, r3, #1
	mov	r1, r5
	str	r3, [r4, #24]
	str	r7, [r4, #20]
	add	r0, r4, #16
	bl	napi_gro_receive
.L5:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ble	.L10
.L13:
	ldr	r3, [r4, #12]
	sub	r3, r3, #1
	cmp	r3, #0
	movne	r0, #0
	str	r3, [r4, #12]
	beq	.L23
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r5, .L24+40
	ldr	r0, [sp, #24]
	ldr	r1, [r5]
	bl	xgene_enet_refill_bufpool
	ldr	r3, [r5]
	str	r3, [r4, #12]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r5, .L24+44
	mov	r0, r10
	ldr	r1, [r5]
	bl	xgene_enet_refill_pagepool
	ldr	r3, [r5]
	cmp	r0, #0
	str	r3, [r4, #8]
	beq	.L13
	b	.L1
.L3:
	mov	r2, r9
	mov	r1, r7
	mov	r0, r5
	bl	xgene_enet_errata_10GE_10
	cmp	r0, #0
	ldrne	r3, [r8]
	addne	r3, r3, #1
	strne	r3, [r8]
	bne	.L2
.L4:
	mov	r0, r5
	bl	dev_kfree_skb_any
	mov	r1, r6
	ldr	r2, [sp, #8]
	mov	r0, r10
	bl	xgene_enet_free_pagepool
	mov	r1, r9
	mov	r0, r4
	bl	xgene_enet_parse_error
	ldr	r3, [r4, #32]
	add	r3, r3, #1
	str	r3, [r4, #32]
	b	.L5
.L25:
	.align	2
.L24:
	.word	DATAADDR
	.word	XGENE_ENET_STD_MTU
	.word	DMA_FROM_DEVICE
	.word	USERINFO
	.word	NET_IP_ALIGN
	.word	ELERR
	.word	LERR_LEN
	.word	LERR
	.word	NV
	.word	PAGE_SIZE
	.word	NUM_BUFPOOL
	.word	NUM_NXTBUFPOOL
	.size	xgene_enet_rx_frame, .-xgene_enet_rx_frame
	.comm	XGENE_ENET_STD_MTU,4,4
	.comm	USERINFO,4,4
	.comm	PAGE_SIZE,4,4
	.comm	NV,4,4
	.comm	NUM_NXTBUFPOOL,4,4
	.comm	NUM_BUFPOOL,4,4
	.comm	NET_IP_ALIGN,4,4
	.comm	LERR_LEN,4,4
	.comm	LERR,4,4
	.comm	ELERR,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DATAADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
