	.file	"extr_nae.c_config_egress_fifo_carvings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	config_egress_fifo_carvings
	.type	config_egress_fifo_carvings, @function
config_egress_fifo_carvings:
.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
	lea	r12d, [rdx+rcx]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14d, DWORD PTR cur_start.1948[rip]
	mov	DWORD PTR 8[rsp], edx
	cmp	edx, r12d
	jge	.L2
	movsx	rsi, esi
	mov	ebp, edi
	mov	ebx, r8d
	mov	r15d, edx
	lea	rax, [rsi+rsi*4]
	lea	rax, [rsi+rax*2]
	lea	r13, [r9+rax*4]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 0[r13]
	mov	edi, ebp
	cdq
	idiv	ebx
	test	eax, eax
	mov	DWORD PTR 12[rsp], eax
	lea	esi, -1[rax]
	mov	eax, 0
	cmove	esi, eax
	cmp	DWORD PTR 4[r13], esi
	cmovle	esi, DWORD PTR 4[r13]
	mov	edx, esi
	mov	esi, r14d
	sal	esi, 11
	sal	edx, 23
	or	edx, esi
	lea	esi, [r15+r15]
	add	r15d, 1
	or	edx, esi
	mov	esi, DWORD PTR NAE_STG2_PMEM_PROG[rip]
	or	edx, 1
	call	nlm_write_nae_reg@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	r14d, r8d
	cmp	r12d, r15d
	jne	.L4
	mov	DWORD PTR cur_start.1948[rip], r14d
	mov	r15d, DWORD PTR 8[rsp]
	mov	r14d, DWORD PTR cur_start.1948[rip+4]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 8[r13]
	mov	edi, ebp
	cdq
	idiv	ebx
	test	eax, eax
	mov	DWORD PTR 12[rsp], eax
	lea	esi, -1[rax]
	mov	eax, 0
	cmove	esi, eax
	cmp	DWORD PTR 12[r13], esi
	cmovle	esi, DWORD PTR 12[r13]
	mov	edx, esi
	mov	esi, r14d
	sal	esi, 11
	sal	edx, 23
	or	edx, esi
	lea	esi, [r15+r15]
	add	r15d, 1
	or	edx, esi
	mov	esi, DWORD PTR NAE_EH_PMEM_PROG[rip]
	or	edx, 1
	call	nlm_write_nae_reg@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	r14d, r8d
	cmp	r12d, r15d
	jne	.L7
	mov	DWORD PTR cur_start.1948[rip+4], r14d
	mov	r15d, DWORD PTR 8[rsp]
	mov	r14d, DWORD PTR cur_start.1948[rip+8]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 16[r13]
	mov	edi, ebp
	cdq
	idiv	ebx
	test	eax, eax
	mov	DWORD PTR 12[rsp], eax
	lea	esi, -1[rax]
	mov	eax, 0
	cmove	esi, eax
	cmp	DWORD PTR 20[r13], esi
	cmovle	esi, DWORD PTR 20[r13]
	mov	edx, esi
	mov	esi, r14d
	sal	esi, 11
	sal	edx, 23
	or	edx, esi
	lea	esi, [r15+r15]
	add	r15d, 1
	or	edx, esi
	mov	esi, DWORD PTR NAE_FREE_PMEM_PROG[rip]
	or	edx, 1
	call	nlm_write_nae_reg@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	r14d, r8d
	cmp	r12d, r15d
	jne	.L10
	mov	DWORD PTR cur_start.1948[rip+8], r14d
	mov	r15d, DWORD PTR 8[rsp]
	mov	r14d, DWORD PTR cur_start.1948[rip+12]
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR 24[r13]
	mov	edi, ebp
	cdq
	idiv	ebx
	test	eax, eax
	mov	DWORD PTR 12[rsp], eax
	lea	esi, -1[rax]
	mov	eax, 0
	cmove	esi, eax
	cmp	DWORD PTR 28[r13], esi
	cmovle	esi, DWORD PTR 28[r13]
	mov	edx, esi
	mov	esi, r14d
	sal	esi, 11
	sal	edx, 22
	or	edx, esi
	lea	esi, [r15+r15]
	add	r15d, 1
	or	edx, esi
	mov	esi, DWORD PTR NAE_STR_PMEM_CMD[rip]
	or	edx, 1
	call	nlm_write_nae_reg@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	r14d, r8d
	cmp	r12d, r15d
	jne	.L13
	mov	DWORD PTR cur_start.1948[rip+12], r14d
	mov	r15d, DWORD PTR cur_start.1948[rip+16]
	mov	r14d, DWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR 32[r13]
	mov	esi, DWORD PTR NAE_TX_PKT_PMEM_CMD1[rip]
	mov	edi, ebp
	cdq
	idiv	ebx
	test	eax, eax
	mov	DWORD PTR 12[rsp], eax
	lea	edx, -1[rax]
	mov	eax, 0
	cmove	edx, eax
	cmp	DWORD PTR 36[r13], edx
	cmovle	edx, DWORD PTR 36[r13]
	call	nlm_write_nae_reg@PLT
	mov	edx, r15d
	lea	eax, [r14+r14]
	mov	edi, ebp
	sal	edx, 11
	mov	esi, DWORD PTR NAE_TX_PKT_PMEM_CMD0[rip]
	add	r14d, 1
	or	edx, eax
	or	edx, 1
	call	nlm_write_nae_reg@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	r15d, r8d
	cmp	r12d, r14d
	jne	.L16
	mov	DWORD PTR cur_start.1948[rip+16], r15d
	mov	r14d, DWORD PTR cur_start.1948[rip+20]
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 40[r13]
	mov	esi, DWORD PTR NAE_TX_PKTLEN_PMEM_CMD[rip]
	mov	edi, ebp
	cdq
	idiv	ebx
	lea	edx, -1[rax]
	mov	r15d, eax
	sal	edx, 22
	test	eax, eax
	mov	eax, 0
	cmovne	eax, edx
	mov	edx, r14d
	add	r14d, r15d
	sal	edx, 11
	or	edx, eax
	mov	eax, DWORD PTR 8[rsp]
	add	eax, eax
	or	edx, eax
	or	edx, 1
	call	nlm_write_nae_reg@PLT
	add	DWORD PTR 8[rsp], 1
	mov	eax, DWORD PTR 8[rsp]
	cmp	r12d, eax
	jne	.L19
.L20:
	mov	DWORD PTR cur_start.1948[rip+20], r14d
	add	rsp, 24
	.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
.L2:
	.cfi_restore_state
	mov	r14d, DWORD PTR cur_start.1948[rip+20]
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	config_egress_fifo_carvings, .-config_egress_fifo_carvings
	.local	cur_start.1948
	.comm	cur_start.1948,24,16
	.comm	NAE_TX_PKT_PMEM_CMD1,4,4
	.comm	NAE_TX_PKT_PMEM_CMD0,4,4
	.comm	NAE_TX_PKTLEN_PMEM_CMD,4,4
	.comm	NAE_STR_PMEM_CMD,4,4
	.comm	NAE_STG2_PMEM_PROG,4,4
	.comm	NAE_FREE_PMEM_PROG,4,4
	.comm	NAE_EH_PMEM_PROG,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_nae.c_config_egress_fifo_carvings.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	config_egress_fifo_carvings
	.syntax unified
	.arm
	.fpu softvfp
	.type	config_egress_fifo_carvings, %function
config_egress_fifo_carvings:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r6, r2, r3
	ldr	r3, .L41
	cmp	r2, r6
	ldr	r10, [r3]
	ldr	r7, [sp, #40]
	bge	.L2
	mov	r8, r2
	mov	r5, r0
	mov	fp, r2
	add	r4, r1, r1, lsl #2
	ldr	r3, [sp, #44]
	add	r1, r1, r4, lsl #1
	add	r4, r3, r1, lsl #2
.L4:
	mov	r1, r7
	ldr	r0, [r4]
	bl	__aeabi_idiv
	subs	r9, r0, #0
	moveq	r3, r9
	ldr	r1, [r4, #4]
	subne	r3, r9, #1
	cmp	r3, r1
	movge	r3, r1
	lsl	r2, r10, #11
	orr	r2, r2, r3, lsl #23
	ldr	r3, .L41+4
	orr	r2, r2, fp, lsl #1
	mov	r0, r5
	ldr	r1, [r3]
	orr	r2, r2, #1
	add	fp, fp, #1
	bl	nlm_write_nae_reg
	cmp	r6, fp
	add	r10, r10, r9
	bne	.L4
	mov	fp, r8
	ldr	r3, .L41
	str	r10, [r3]
	ldr	r10, [r3, #4]
.L7:
	mov	r1, r7
	ldr	r0, [r4, #8]
	bl	__aeabi_idiv
	subs	r9, r0, #0
	moveq	r3, r9
	ldr	r1, [r4, #12]
	subne	r3, r9, #1
	cmp	r3, r1
	movge	r3, r1
	lsl	r2, r10, #11
	orr	r2, r2, r3, lsl #23
	ldr	r3, .L41+8
	orr	r2, r2, fp, lsl #1
	mov	r0, r5
	ldr	r1, [r3]
	orr	r2, r2, #1
	add	fp, fp, #1
	bl	nlm_write_nae_reg
	cmp	r6, fp
	add	r10, r10, r9
	bne	.L7
	mov	fp, r8
	ldr	r3, .L41
	str	r10, [r3, #4]
	ldr	r10, [r3, #8]
.L10:
	mov	r1, r7
	ldr	r0, [r4, #16]
	bl	__aeabi_idiv
	subs	r9, r0, #0
	moveq	r3, r9
	ldr	r1, [r4, #20]
	subne	r3, r9, #1
	cmp	r3, r1
	movge	r3, r1
	lsl	r2, r10, #11
	orr	r2, r2, r3, lsl #23
	ldr	r3, .L41+12
	orr	r2, r2, fp, lsl #1
	mov	r0, r5
	ldr	r1, [r3]
	orr	r2, r2, #1
	add	fp, fp, #1
	bl	nlm_write_nae_reg
	cmp	r6, fp
	add	r10, r10, r9
	bne	.L10
	mov	fp, r8
	ldr	r3, .L41
	str	r10, [r3, #8]
	ldr	r10, [r3, #12]
.L13:
	mov	r1, r7
	ldr	r0, [r4, #24]
	bl	__aeabi_idiv
	subs	r9, r0, #0
	moveq	r3, r9
	ldr	r1, [r4, #28]
	subne	r3, r9, #1
	cmp	r3, r1
	movge	r3, r1
	lsl	r2, r10, #11
	orr	r2, r2, r3, lsl #22
	ldr	r3, .L41+16
	orr	r2, r2, fp, lsl #1
	mov	r0, r5
	ldr	r1, [r3]
	orr	r2, r2, #1
	add	fp, fp, #1
	bl	nlm_write_nae_reg
	cmp	r6, fp
	add	r10, r10, r9
	bne	.L13
	mov	r9, r8
	ldr	r3, .L41
	str	r10, [r3, #12]
	ldr	r10, [r3, #16]
.L16:
	mov	r1, r7
	ldr	r0, [r4, #32]
	bl	__aeabi_idiv
	subs	fp, r0, #0
	moveq	r2, fp
	ldr	r3, [r4, #36]
	subne	r2, fp, #1
	ldr	r1, .L41+20
	cmp	r2, r3
	movge	r2, r3
	ldr	r1, [r1]
	mov	r0, r5
	bl	nlm_write_nae_reg
	ldr	r3, .L41+24
	lsl	r2, r9, #1
	orr	r2, r2, r10, lsl #11
	mov	r0, r5
	ldr	r1, [r3]
	orr	r2, r2, #1
	add	r9, r9, #1
	bl	nlm_write_nae_reg
	cmp	r6, r9
	add	r10, r10, fp
	bne	.L16
	ldr	r3, .L41
	str	r10, [r3, #16]
	ldr	r9, [r3, #20]
	ldr	r10, .L41+28
.L19:
	mov	r1, r7
	ldr	r0, [r4, #40]
	bl	__aeabi_idiv
	subs	fp, r0, #0
	sub	r2, fp, #1
	moveq	r2, fp
	lslne	r2, r2, #22
	orr	r2, r2, r9, lsl #11
	orr	r2, r2, r8, lsl #1
	mov	r0, r5
	ldr	r1, [r10]
	orr	r2, r2, #1
	add	r8, r8, #1
	bl	nlm_write_nae_reg
	cmp	r6, r8
	add	r9, r9, fp
	bne	.L19
.L20:
	ldr	r3, .L41
	str	r9, [r3, #20]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L41
	ldr	r9, [r3, #20]
	b	.L20
.L42:
	.align	2
.L41:
	.word	.LANCHOR0
	.word	NAE_STG2_PMEM_PROG
	.word	NAE_EH_PMEM_PROG
	.word	NAE_FREE_PMEM_PROG
	.word	NAE_STR_PMEM_CMD
	.word	NAE_TX_PKT_PMEM_CMD1
	.word	NAE_TX_PKT_PMEM_CMD0
	.word	NAE_TX_PKTLEN_PMEM_CMD
	.size	config_egress_fifo_carvings, .-config_egress_fifo_carvings
	.comm	NAE_TX_PKT_PMEM_CMD1,4,4
	.comm	NAE_TX_PKT_PMEM_CMD0,4,4
	.comm	NAE_TX_PKTLEN_PMEM_CMD,4,4
	.comm	NAE_STR_PMEM_CMD,4,4
	.comm	NAE_STG2_PMEM_PROG,4,4
	.comm	NAE_FREE_PMEM_PROG,4,4
	.comm	NAE_EH_PMEM_PROG,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	cur_start.4232, %object
	.size	cur_start.4232, 24
cur_start.4232:
	.space	24
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
