	.file	"extr_cxgb4_uld.c_alloc_sge_txq_uld.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_sge_txq_uld, @function
alloc_sge_txq_uld:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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	ecx, DWORD PTR [rsi]
	mov	eax, ecx
	cdq
	idiv	DWORD PTR 8[rdi]
	test	ecx, ecx
	jle	.L2
	mov	ebp, eax
	lea	eax, -1[rcx]
	mov	r13, rdi
	mov	r15, rsi
	mov	QWORD PTR 8[rsp], rax
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rax, 1[rbx]
	cmp	QWORD PTR 8[rsp], rbx
	je	.L2
	mov	rbx, rax
.L5:
	mov	rax, QWORD PTR 8[r15]
	mov	ecx, DWORD PTR 12[r13]
	mov	r8d, r14d
	mov	rdi, r13
	lea	rsi, [rax+rbx*4]
	mov	eax, ebx
	cdq
	mov	DWORD PTR [rsi], 1024
	idiv	ebp
	mov	rdx, QWORD PTR 0[r13]
	cdqe
	mov	edx, DWORD PTR [rdx+rax*4]
	call	t4_sge_alloc_uld_txq@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L3
	mov	rsi, r15
	mov	rdi, r13
	call	free_sge_txq_uld@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r12d, r12d
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	alloc_sge_txq_uld, .-alloc_sge_txq_uld
	.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_uld.c_alloc_sge_txq_uld.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_sge_txq_uld, %function
alloc_sge_txq_uld:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r1]
	mov	r6, r1
	mov	r5, r0
	ldr	r1, [r0, #4]
	sub	sp, sp, #12
	mov	r0, r9
	mov	r8, r2
	bl	__aeabi_idiv
	cmp	r9, #0
	ble	.L2
	mov	r7, r0
	mov	r4, #0
	mov	r10, #1024
	b	.L5
.L3:
	cmp	r9, r4
	beq	.L2
.L5:
	ldr	r3, [r6, #4]
	mov	r1, r7
	str	r10, [r3, r4, lsl #2]
	mov	r0, r4
	add	fp, r3, r4, lsl #2
	bl	__aeabi_idiv
	ldr	r2, [r5]
	mov	r1, fp
	ldr	r2, [r2, r0, lsl #2]
	ldr	r3, [r5, #8]
	mov	r0, r5
	str	r8, [sp]
	bl	t4_sge_alloc_uld_txq
	subs	fp, r0, #0
	add	r4, r4, #1
	beq	.L3
	mov	r1, r6
	mov	r0, r5
	bl	free_sge_txq_uld
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	fp, #0
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	alloc_sge_txq_uld, .-alloc_sge_txq_uld
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
