	.file	"extr_cxgb4_main.c_set_sge_param.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_sge_param, @function
set_sge_param:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	call	netdev_priv@PLT
	mov	rcx, QWORD PTR [rbx]
	cmp	rcx, QWORD PTR MAX_RX_BUFFERS[rip]
	jg	.L2
	cmp	QWORD PTR 24[rbx], 0
	jne	.L2
	mov	r8, QWORD PTR 8[rbx]
	cmp	r8, QWORD PTR MAX_TXQ_ENTRIES[rip]
	jg	.L2
	mov	r9, QWORD PTR 16[rbx]
	cmp	r9, QWORD PTR MAX_RSPQ_ENTRIES[rip]
	jg	.L2
	cmp	r9, QWORD PTR MIN_RSPQ_ENTRIES[rip]
	jl	.L2
	cmp	rcx, QWORD PTR MIN_FL_ENTRIES[rip]
	jl	.L2
	cmp	r8, QWORD PTR MIN_TXQ_ENTRIES[rip]
	jl	.L2
	mov	rdi, QWORD PTR 8[rax]
	mov	rdx, rax
	mov	eax, DWORD PTR [rdi]
	and	eax, DWORD PTR FULL_INIT_DONE[rip]
	jne	.L5
	mov	r11d, DWORD PTR [rdx]
	test	r11d, r11d
	jle	.L1
	movsx	r10, DWORD PTR 4[rdx]
	mov	rbx, QWORD PTR 16[rdi]
	add	rcx, 8
	mov	rdx, r10
	lea	rsi, [rbx+r10*8]
	sal	rdx, 4
	add	rdx, QWORD PTR 8[rdi]
	lea	edi, -1[r11]
	add	rdi, r10
	lea	rdi, 8[rbx+rdi*8]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	QWORD PTR [rsi], r8
	add	rsi, 8
	add	rdx, 16
	mov	QWORD PTR -8[rdx], rcx
	mov	QWORD PTR -16[rdx], r9
	cmp	rsi, rdi
	jne	.L7
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	set_sge_param, .-set_sge_param
	.comm	MIN_TXQ_ENTRIES,8,8
	.comm	MIN_RSPQ_ENTRIES,8,8
	.comm	MIN_FL_ENTRIES,8,8
	.comm	MAX_TXQ_ENTRIES,8,8
	.comm	MAX_RX_BUFFERS,8,8
	.comm	MAX_RSPQ_ENTRIES,8,8
	.comm	FULL_INIT_DONE,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_cxgb4_main.c_set_sge_param.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_sge_param, %function
set_sge_param:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	bl	netdev_priv
	ldr	r2, .L13
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L2
	ldr	r2, [r4, #12]
	cmp	r2, #0
	bne	.L2
	ldr	r2, .L13+4
	ldr	ip, [r4, #4]
	ldr	r2, [r2]
	cmp	ip, r2
	bgt	.L2
	ldr	r2, .L13+8
	ldr	lr, [r4, #8]
	ldr	r2, [r2]
	cmp	lr, r2
	bgt	.L2
	ldr	r2, .L13+12
	ldr	r2, [r2]
	cmp	lr, r2
	blt	.L2
	ldr	r2, .L13+16
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L2
	ldr	r2, .L13+20
	ldr	r2, [r2]
	cmp	ip, r2
	blt	.L2
	ldr	r5, [r0, #8]
	mov	r1, r0
	ldr	r0, .L13+24
	ldr	r2, [r5]
	ldr	r0, [r0]
	ands	r0, r2, r0
	bne	.L5
	ldr	r4, [r1]
	cmp	r4, #0
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r6, [r1, #4]
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	lsl	r7, r6, #2
	add	r4, r4, r6
	sub	r5, r7, #4
	add	r4, r2, r4, lsl #3
	add	r3, r3, #8
	add	r1, r1, r5
	add	r2, r2, r6, lsl #3
.L7:
	str	ip, [r1, #4]!
	str	r3, [r2, #4]
	str	lr, [r2], #8
	cmp	r2, r4
	bne	.L7
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L13+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L13+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	MAX_RX_BUFFERS
	.word	MAX_TXQ_ENTRIES
	.word	MAX_RSPQ_ENTRIES
	.word	MIN_RSPQ_ENTRIES
	.word	MIN_FL_ENTRIES
	.word	MIN_TXQ_ENTRIES
	.word	FULL_INIT_DONE
	.word	EINVAL
	.word	EBUSY
	.size	set_sge_param, .-set_sge_param
	.comm	MIN_TXQ_ENTRIES,4,4
	.comm	MIN_RSPQ_ENTRIES,4,4
	.comm	MIN_FL_ENTRIES,4,4
	.comm	MAX_TXQ_ENTRIES,4,4
	.comm	MAX_RX_BUFFERS,4,4
	.comm	MAX_RSPQ_ENTRIES,4,4
	.comm	FULL_INIT_DONE,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
