	.file	"extr_bxe.c_bxe_fill_frag_mbuf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"fp[%02d].tpa[%02d] TPA fill len_on_bd=%d frag_size=%d pages=%d\n"
	.align 8
.LC1:
	.string	"fp[%02d].sge[0x%04x] has too many pages (%d)! pkt_len=%d len_on_bd=%d frag_size=%d\n"
	.align 8
.LC2:
	.string	"cqe [0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x]\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"sge page count error\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"fp[%02d].tpa[%02d] TPA fill i=%d j=%d sge_idx=%d frag_size=%d frag_len=%d\n"
	.align 8
.LC5:
	.string	"fp[%02d].tpa[%02d] TPA fill done frag_size=%d\n"
	.text
	.p2align 4
	.type	bxe_fill_frag_mbuf, @function
bxe_fill_frag_mbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 96[rsp]
	mov	QWORD PTR 8[rsp], rdi
	mov	DWORD PTR 16[rsp], ecx
	mov	edi, DWORD PTR 8[rax]
	mov	DWORD PTR 20[rsp], r8d
	mov	QWORD PTR 24[rsp], r9
	call	le16toh@PLT
	mov	r9d, DWORD PTR [r12]
	push	r15
	.cfi_def_cfa_offset 104
	mov	r8d, r14d
	mov	esi, DWORD PTR DBG_LRO[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	sub	eax, r9d
	push	rax
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR [rbx]
	mov	ebp, eax
	xor	eax, eax
	call	BLOGD@PLT
	mov	eax, DWORD PTR PAGES_PER_SGE[rip]
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	sal	eax, 3
	cmp	eax, r15d
	jl	.L2
	xor	r12d, r12d
	xor	r13d, r13d
	test	r15d, r15d
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r8, QWORD PTR [rsp]
	mov	r14, QWORD PTR 24[rsp]
	sub	ebp, r15d
	add	r12, 1
	mov	DWORD PTR [r8], r15d
	mov	rsi, r8
	mov	rdi, r14
	call	m_cat@PLT
	sub	DWORD PTR 4[rbx], 1
	add	r13d, DWORD PTR PAGES_PER_SGE[rip]
	add	DWORD PTR 4[r14], r15d
	cmp	DWORD PTR 20[rsp], r13d
	jle	.L4
.L3:
	mov	rax, QWORD PTR 96[rsp]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax+r12*4]
	call	le16toh@PLT
	mov	edi, eax
	call	RX_SGE@PLT
	mov	esi, DWORD PTR SGE_PAGES[rip]
	mov	edi, ebp
	mov	r14d, eax
	call	min@PLT
	mov	esi, DWORD PTR DBG_LRO[rip]
	lea	rdx, .LC4[rip]
	mov	r9d, r13d
	push	rax
	.cfi_def_cfa_offset 104
	mov	r15d, eax
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 112
	push	r14
	.cfi_def_cfa_offset 120
	push	r12
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR 48[rsp]
	mov	rdi, QWORD PTR 40[rsp]
	mov	ecx, DWORD PTR [rbx]
	call	BLOGD@PLT
	mov	rax, QWORD PTR 8[rbx]
	movsx	rdx, r14d
	mov	esi, r14d
	mov	rdi, rbx
	mov	r8, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR 32[rsp], r8
	add	rsp, 32
	.cfi_def_cfa_offset 96
	call	bxe_alloc_rx_sge_mbuf@PLT
	test	eax, eax
	je	.L13
	add	rsp, 40
	.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
.L4:
	.cfi_restore_state
	mov	r8d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR [rbx]
	mov	r9d, ebp
	xor	eax, eax
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR DBG_LRO[rip]
	lea	rdx, .LC5[rip]
	call	BLOGD@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 96[rsp]
	mov	r12d, DWORD PTR [r12]
	mov	edi, DWORD PTR 8[rax]
	call	le16toh@PLT
	push	rbp
	.cfi_def_cfa_offset 104
	lea	rsi, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR [rbx]
	mov	r9d, eax
	xor	eax, eax
	mov	rbx, QWORD PTR 24[rsp]
	mov	r8d, DWORD PTR 36[rsp]
	mov	ecx, DWORD PTR 120[rsp]
	mov	rdi, rbx
	call	BLOGE@PLT
	mov	rax, QWORD PTR 112[rsp]
	mov	rdi, rbx
	lea	rsi, .LC2[rip]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 28[rax]
	push	rax
	.cfi_def_cfa_offset 120
	mov	rax, QWORD PTR 120[rsp]
	mov	eax, DWORD PTR 24[rax]
	push	rax
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 128[rsp]
	mov	eax, DWORD PTR 20[rax]
	push	rax
	.cfi_def_cfa_offset 136
	mov	rax, QWORD PTR 136[rsp]
	mov	eax, DWORD PTR 16[rax]
	push	rax
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR 144[rsp]
	mov	r9d, DWORD PTR 12[rax]
	mov	r8d, DWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	BLOGE@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rdi, rbx
	lea	rsi, .LC3[rip]
	call	bxe_panic@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 40
	.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	bxe_fill_frag_mbuf, .-bxe_fill_frag_mbuf
	.comm	SGE_PAGES,8,8
	.comm	PAGES_PER_SGE,4,4
	.comm	EINVAL,4,4
	.comm	DBG_LRO,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_bxe.c_bxe_fill_frag_mbuf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fp[%02d].tpa[%02d] TPA fill len_on_bd=%d frag_size="
	.ascii	"%d pages=%d\012\000"
	.align	2
.LC1:
	.ascii	"fp[%02d].sge[0x%04x] has too many pages (%d)! pkt_l"
	.ascii	"en=%d len_on_bd=%d frag_size=%d\012\000"
	.align	2
.LC2:
	.ascii	"cqe [0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%08x 0x%0"
	.ascii	"8x 0x%08x]\012\000"
	.align	2
.LC3:
	.ascii	"sge page count error\012\000"
	.align	2
.LC4:
	.ascii	"fp[%02d].tpa[%02d] TPA fill i=%d j=%d sge_idx=%d fr"
	.ascii	"ag_size=%d frag_len=%d\012\000"
	.align	2
.LC5:
	.ascii	"fp[%02d].tpa[%02d] TPA fill done frag_size=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bxe_fill_frag_mbuf, %function
bxe_fill_frag_mbuf:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	mov	r4, r2
	ldr	r2, [sp, #80]
	mov	fp, r0
	ldr	r0, [r2, #4]
	mov	r6, r1
	mov	r5, r3
	str	r3, [sp, #28]
	ldr	r10, [sp, #76]
	bl	le16toh
	ldr	r3, [r4]
	ldr	r2, [sp, #72]
	sub	r7, r0, r3
	stmib	sp, {r3, r7}
	str	r2, [sp, #12]
	ldr	r2, .L12
	str	r5, [sp]
	ldr	r3, [r6]
	ldr	r1, [r2]
	mov	r0, fp
	ldr	r2, .L12+4
	bl	BLOGD
	ldr	r3, .L12+8
	ldr	r2, [sp, #72]
	ldr	r3, [r3]
	cmp	r2, r3, lsl #3
	bgt	.L2
	cmp	r2, #0
	movgt	r8, #0
	movgt	r9, r8
	bgt	.L3
	b	.L4
.L11:
	mov	r1, r5
	mov	r0, r10
	str	r4, [r5]
	bl	m_cat
	ldr	r3, .L12+8
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	ldr	r3, [r10, #4]
	add	r9, r9, r1
	ldr	r1, [sp, #72]
	sub	r2, r2, #1
	add	r3, r3, r4
	cmp	r1, r9
	str	r2, [r6, #4]
	sub	r7, r7, r4
	add	r8, r8, #1
	str	r3, [r10, #4]
	ble	.L4
.L3:
	ldr	r3, [sp, #80]
	ldr	r3, [r3]
	ldr	r0, [r3, r8, lsl #2]
	bl	le16toh
	bl	RX_SGE
	ldr	r3, .L12+12
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r7
	bl	min
	ldr	r3, [sp, #28]
	ldr	r1, .L12
	str	r5, [sp, #12]
	str	r0, [sp, #20]
	str	r7, [sp, #16]
	str	r8, [sp, #8]
	str	r9, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r6]
	ldr	r2, .L12+16
	ldr	r1, [r1]
	mov	r4, r0
	mov	r0, fp
	bl	BLOGD
	ldr	r3, [r6, #8]
	mov	r1, r5
	mov	r0, r6
	ldr	r5, [r3, r5, lsl #2]
	bl	bxe_alloc_rx_sge_mbuf
	cmp	r0, #0
	beq	.L11
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, [sp, #28]
	ldr	r2, .L12
	str	r7, [sp, #4]
	str	r3, [sp]
	ldr	r1, [r2]
	mov	r0, fp
	ldr	r3, [r6]
	ldr	r2, .L12+20
	bl	BLOGD
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [sp, #80]
	ldr	r5, [r6]
	ldr	r0, [r3, #4]
	bl	le16toh
	ldr	r3, [r4]
	mov	r2, r5
	stmib	sp, {r0, r3, r7}
	ldr	r3, [sp, #72]
	mov	r0, fp
	str	r3, [sp]
	ldr	r1, .L12+24
	ldr	r3, [sp, #84]
	bl	BLOGE
	ldr	r3, [sp, #80]
	ldr	r1, [r3, #16]
	ldr	r2, [r3, #12]
	add	r0, r3, #20
	ldr	r3, [r3, #8]
	ldm	r0, {r0, ip, lr}
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [sp, #80]
	ldr	r3, [sp, #80]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	ldr	r3, [r3, #4]
	ldr	r2, [r2]
	mov	r0, fp
	ldr	r1, .L12+28
	bl	BLOGE
	mov	r0, fp
	ldr	r1, .L12+32
	bl	bxe_panic
	ldr	r3, .L12+36
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	DBG_LRO
	.word	.LC0
	.word	PAGES_PER_SGE
	.word	SGE_PAGES
	.word	.LC4
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	EINVAL
	.size	bxe_fill_frag_mbuf, .-bxe_fill_frag_mbuf
	.comm	SGE_PAGES,4,4
	.comm	PAGES_PER_SGE,4,4
	.comm	EINVAL,4,4
	.comm	DBG_LRO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
