	.file	"extr_oce_if.c_oce_rx_lro.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	oce_rx_lro, @function
oce_rx_lro:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 128
	movsx	r13, DWORD PTR 28[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], 0
	test	rdx, rdx
	je	.L19
	mov	rax, QWORD PTR [rdx]
	mov	edi, DWORD PTR 4[rdx]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 24[rdx]
	mov	rdx, QWORD PTR 8[rdx]
	mov	DWORD PTR 56[rsp], eax
	mov	rax, QWORD PTR [rsi]
	mov	QWORD PTR 40[rsp], rdx
	mov	rdx, QWORD PTR 16[r12]
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 48[rsp], rdx
.L3:
	call	BSWAP_16@PLT
	mov	rdi, rbx
	lea	rsi, 16[rsp]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR 16[rsp]
	cdq
	idiv	DWORD PTR 24[rbx]
	test	edx, edx
	lea	ecx, 1[rax]
	lea	rdx, 8[rsp]
	cmovne	eax, ecx
	mov	DWORD PTR 24[rsp], eax
	call	oce_rx_mbuf_chain@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L1
	test	r12, r12
	je	.L7
	mov	rdx, r12
	mov	rsi, rbp
	call	oce_correct_header@PLT
	mov	rdi, QWORD PTR 8[rsp]
.L7:
	mov	r8, QWORD PTR 8[r13]
	cmp	QWORD PTR 40[rsp], 0
	mov	QWORD PTR 24[rdi], r8
	jne	.L20
.L8:
	mov	esi, DWORD PTR IFCOUNTER_IPACKETS[rip]
	mov	rdi, r8
	mov	edx, 1
	call	if_inc_counter@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	eax, DWORD PTR 16[rsp]
	add	DWORD PTR 12[rbx], 1
	add	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 24[rsp]
	add	DWORD PTR 8[rbx], 1
	add	DWORD PTR 4[rbx], eax
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR FNM_FLEX10_MODE[rip], eax
	je	.L9
	cmp	QWORD PTR 32[rsp], 0
	je	.L8
	mov	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 8[rdi], eax
	mov	eax, DWORD PTR M_VLANTAG[rip]
	or	DWORD PTR [rdi], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 16[rsi]
	xor	ebp, ebp
	mov	rcx, QWORD PTR 8[rsi]
	mov	edi, DWORD PTR 4[rsi]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 32[rsi]
	mov	QWORD PTR 40[rsp], rdx
	mov	rdx, QWORD PTR 24[rsi]
	mov	QWORD PTR 32[rsp], rcx
	mov	QWORD PTR 48[rsp], rdx
	mov	DWORD PTR 56[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 20[rsp]
	mov	edx, DWORD PTR VLAN_VID_MASK[rip]
	and	edx, eax
	cmp	DWORD PTR 4[r13], edx
	je	.L8
	mov	DWORD PTR 8[rdi], eax
	mov	eax, DWORD PTR M_VLANTAG[rip]
	or	DWORD PTR [rdi], eax
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	oce_rx_lro, .-oce_rx_lro
	.comm	VLAN_VID_MASK,4,4
	.comm	M_VLANTAG,4,4
	.comm	M_HASHTYPE_OPAQUE,4,4
	.comm	IFCOUNTER_IPACKETS,4,4
	.comm	FNM_FLEX10_MODE,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_oce_if.c_oce_rx_lro.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	oce_rx_lro, %function
oce_rx_lro:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r1
	mov	r1, #0
	ldr	r3, .L29
	sub	sp, sp, #44
	subs	r5, r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r4, r0
	ldr	r7, [r0, #24]
	ldr	r3, [r6]
	str	r1, [sp]
	beq	.L26
	ldr	r2, [r5, #20]
	str	r3, [sp, #16]
	ldr	r3, [r5, #16]
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	str	r2, [sp, #32]
	str	r3, [sp, #28]
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	str	r1, [sp, #4]
	str	r0, [sp, #8]
	str	r2, [sp, #24]
	str	r3, [sp, #20]
.L3:
	bl	BSWAP_16
	mov	r3, r0
	ldr	r1, [r4, #20]
	ldr	r0, [sp, #4]
	str	r3, [sp, #8]
	bl	__aeabi_idivmod
	cmp	r1, #0
	addne	r0, r0, #1
	str	r0, [sp, #12]
	mov	r2, sp
	mov	r0, r4
	add	r1, sp, #4
	bl	oce_rx_mbuf_chain
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L1
	cmp	r5, #0
	beq	.L7
	mov	r0, r3
	mov	r2, r5
	mov	r1, r6
	bl	oce_correct_header
	ldr	r3, [sp]
.L7:
	ldr	r2, [sp, #20]
	ldr	r0, [r7, #8]
	cmp	r2, #0
	str	r0, [r3, #12]
	bne	.L27
.L8:
	ldr	r3, .L29+4
	mov	r2, #1
	ldr	r1, [r3]
	bl	if_inc_counter
	ldr	r0, [r7, #8]
	ldr	r1, [sp]
	ldr	r3, [r0]
	blx	r3
	ldr	r1, [r4]
	ldr	r3, [sp, #4]
	ldr	r2, [r4, #4]
	add	r1, r1, r3
	ldr	ip, [sp, #12]
	ldr	r3, [r4, #8]
	add	r2, r2, ip
	add	r3, r3, #1
	ldr	r0, [r4, #12]
	stm	r4, {r1, r2, r3}
	add	r0, r0, #1
	str	r0, [r4, #12]
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L27:
	ldr	r2, .L29+8
	ldr	r1, [r7]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L9
	ldr	r2, [sp, #16]
	cmp	r2, #0
	beq	.L8
	ldr	r1, .L29+12
	ldr	r2, [r3]
	ldr	ip, [r1]
	ldr	r1, [sp, #8]
	orr	r2, r2, ip
	str	r2, [r3]
	str	r1, [r3, #4]
	b	.L8
.L26:
	ldr	r2, [r6, #24]
	str	r3, [sp, #4]
	ldr	r3, [r6, #20]
	ldr	r0, [r6, #4]
	ldr	r1, [r6, #16]
	str	r2, [sp, #32]
	str	r3, [sp, #28]
	ldr	r2, [r6, #12]
	ldr	r3, [r6, #8]
	str	r0, [sp, #8]
	mov	r6, r5
	str	r1, [sp, #24]
	str	r2, [sp, #20]
	str	r3, [sp, #16]
	b	.L3
.L9:
	ldr	r2, .L29+16
	ldr	r1, [sp, #8]
	ldr	r2, [r2]
	ldr	ip, [r7, #4]
	and	r2, r2, r1
	cmp	ip, r2
	beq	.L8
	ldr	ip, .L29+12
	ldr	r2, [r3]
	ldr	ip, [ip]
	str	r1, [r3, #4]
	orr	r2, r2, ip
	str	r2, [r3]
	b	.L8
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	IFCOUNTER_IPACKETS
	.word	FNM_FLEX10_MODE
	.word	M_VLANTAG
	.word	VLAN_VID_MASK
	.size	oce_rx_lro, .-oce_rx_lro
	.comm	VLAN_VID_MASK,4,4
	.comm	M_VLANTAG,4,4
	.comm	M_HASHTYPE_OPAQUE,4,4
	.comm	IFCOUNTER_IPACKETS,4,4
	.comm	FNM_FLEX10_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
