	.file	"extr_nicvf_queues.c_nicvf_rbdr_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nicvf_rbdr_config, @function
nicvf_rbdr_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	movsx	rax, edx
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 8[rsi]
	lea	r14, [rax+rdx*8]
	mov	edx, r12d
	mov	rsi, r14
	call	nicvf_reclaim_rbdr@PLT
	test	r13d, r13d
	je	.L1
	mov	rcx, QWORD PTR 16[r14]
	mov	esi, DWORD PTR NIC_QSET_RBDR_0_1_BASE[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	nicvf_queue_reg_write@PLT
	xor	esi, esi
	mov	rdi, rsp
	mov	edx, 40
	call	memset@PLT
	mov	edx, DWORD PTR [r14]
	mov	rdi, rbp
	mov	eax, DWORD PTR RBDR_SIZE[rip]
	mov	DWORD PTR [rsp], 1
	mov	esi, DWORD PTR NIC_QSET_RBDR_0_1_CFG[rip]
	test	edx, edx
	mov	DWORD PTR 16[rsp], eax
	lea	eax, 127[rdx]
	mov	QWORD PTR 32[rsp], 0
	cmovns	eax, edx
	mov	edx, r12d
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	sar	eax, 7
	mov	DWORD PTR 4[rsp], eax
	mov	rcx, QWORD PTR [rsp]
	call	nicvf_queue_reg_write@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR NIC_QSET_RBDR_0_1_DOOR[rip]
	sub	rcx, 1
	call	nicvf_queue_reg_write@PLT
	mov	rcx, QWORD PTR 8[r14]
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR NIC_QSET_RBDR_0_1_THRESH[rip]
	sub	rcx, 1
	call	nicvf_queue_reg_write@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nicvf_rbdr_config, .-nicvf_rbdr_config
	.comm	RBDR_SIZE,4,4
	.comm	NIC_QSET_RBDR_0_1_THRESH,4,4
	.comm	NIC_QSET_RBDR_0_1_DOOR,4,4
	.comm	NIC_QSET_RBDR_0_1_CFG,4,4
	.comm	NIC_QSET_RBDR_0_1_BASE,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_rbdr_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nicvf_rbdr_config, %function
nicvf_rbdr_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r3
	ldr	r5, [r1, #4]
	add	r3, r2, r2, lsl #1
	add	r5, r5, r3, lsl #2
	mov	r8, r1
	mov	r1, r5
	mov	r4, r2
	mov	r7, r0
	bl	nicvf_reclaim_rbdr
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r2, .L5
	ldr	r3, [r5, #8]
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, r4
	bl	nicvf_queue_reg_write
	ldr	r2, .L5+4
	mov	r3, #1
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, r4
	bl	nicvf_queue_reg_write
	ldr	r3, [r8]
	ldr	r2, .L5+8
	mov	r0, r7
	ldr	r1, [r2]
	sub	r3, r3, #1
	mov	r2, r4
	bl	nicvf_queue_reg_write
	ldr	r3, [r5, #4]
	ldr	r1, .L5+12
	mov	r2, r4
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r1]
	sub	r3, r3, #1
	b	nicvf_queue_reg_write
.L6:
	.align	2
.L5:
	.word	NIC_QSET_RBDR_0_1_BASE
	.word	NIC_QSET_RBDR_0_1_CFG
	.word	NIC_QSET_RBDR_0_1_DOOR
	.word	NIC_QSET_RBDR_0_1_THRESH
	.size	nicvf_rbdr_config, .-nicvf_rbdr_config
	.comm	RBDR_SIZE,4,4
	.comm	NIC_QSET_RBDR_0_1_THRESH,4,4
	.comm	NIC_QSET_RBDR_0_1_DOOR,4,4
	.comm	NIC_QSET_RBDR_0_1_CFG,4,4
	.comm	NIC_QSET_RBDR_0_1_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
