	.file	"extr_ecore_iwarp.c_ecore_iwarp_prealloc_ep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ecore_iwarp_prealloc_ep, @function
ecore_iwarp_prealloc_ep:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	esi, esi
	je	.L12
	mov	eax, DWORD PTR ECORE_IWARP_PREALLOC_CNT[rip]
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jle	.L16
.L2:
	xor	ebx, ebx
	lea	r14, 32[rsp]
	lea	r15, 28[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L18:
	call	ecore_iwarp_alloc_cid@PLT
	cmp	DWORD PTR ECORE_SUCCESS[rip], eax
	mov	r12d, eax
	jne	.L17
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, rbp
	call	ecore_iwarp_set_tcp_cid@PLT
.L8:
	mov	edx, DWORD PTR 28[rsp]
	mov	rax, QWORD PTR 32[rsp]
	add	ebx, 1
	mov	rdi, QWORD PTR 0[rbp]
	mov	DWORD PTR 4[rax], edx
	call	OSAL_SPIN_LOCK@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 32[rsp]
	lea	rsi, 4[rax]
	call	OSAL_LIST_PUSH_TAIL@PLT
	mov	rdi, QWORD PTR 0[rbp]
	call	OSAL_SPIN_UNLOCK@PLT
	cmp	DWORD PTR 12[rsp], ebx
	jle	.L1
.L9:
	mov	rsi, r14
	mov	rdi, rbp
	call	ecore_iwarp_create_ep@PLT
	cmp	DWORD PTR ECORE_SUCCESS[rip], eax
	mov	r12d, eax
	jne	.L1
	mov	rsi, r15
	mov	rdi, rbp
	test	r13d, r13d
	jne	.L18
	call	ecore_iwarp_alloc_tcp_cid@PLT
	jmp	.L8
.L16:
	mov	r12d, DWORD PTR ECORE_SUCCESS[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	DWORD PTR 12[rsp], 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR 32[rsp]
	xor	edx, edx
	mov	rdi, rbp
	call	ecore_iwarp_destroy_ep@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ecore_iwarp_prealloc_ep, .-ecore_iwarp_prealloc_ep
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_IWARP_PREALLOC_CNT,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_ecore_iwarp.c_ecore_iwarp_prealloc_ep.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_iwarp_prealloc_ep, %function
ecore_iwarp_prealloc_ep:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L20
	sub	sp, sp, #20
	subs	r8, r1, #0
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L12
	ldr	r3, .L20+4
	ldr	r9, [r3]
	cmp	r9, #0
	ble	.L16
.L2:
	mov	r6, #0
	ldr	r7, .L20+8
	b	.L9
.L18:
	bl	ecore_iwarp_alloc_cid
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	bne	.L17
	mov	r0, r5
	ldr	r1, [sp, #8]
	bl	ecore_iwarp_set_tcp_cid
.L8:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	ldr	r0, [r5]
	str	r2, [r3, #4]
	bl	OSAL_SPIN_LOCK
	ldr	r1, [r5]
	ldr	r0, [sp, #4]
	add	r1, r1, #4
	bl	OSAL_LIST_PUSH_TAIL
	add	r6, r6, #1
	ldr	r0, [r5]
	bl	OSAL_SPIN_UNLOCK
	cmp	r9, r6
	ble	.L1
.L9:
	mov	r0, r5
	add	r1, sp, #4
	bl	ecore_iwarp_create_ep
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	bne	.L1
	cmp	r8, #0
	mov	r0, r5
	add	r1, sp, #8
	bne	.L18
	bl	ecore_iwarp_alloc_tcp_cid
	b	.L8
.L16:
	ldr	r3, .L20+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	mov	r9, #1
	b	.L2
.L17:
	mov	r0, r5
	mov	r2, #0
	ldr	r1, [sp, #4]
	bl	ecore_iwarp_destroy_ep
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	ECORE_IWARP_PREALLOC_CNT
	.word	ECORE_SUCCESS
	.size	ecore_iwarp_prealloc_ep, .-ecore_iwarp_prealloc_ep
	.comm	ECORE_SUCCESS,4,4
	.comm	ECORE_IWARP_PREALLOC_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
