	.file	"extr_ecore_iwarp.c_ecore_iwarp_accept.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Ep Context receive in accept is NULL\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"QP(0x%x) EP(0x%x)\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"QP(0x%x) EP(0x%x) ERROR: Invalid ord(0x%x)/ird(0x%x)\n"
	.align 8
.LC3:
	.string	"Note re-use of QP for different connect\n"
	.align 8
.LC4:
	.string	"(0x%x) Accept called on EP in CLOSED state\n"
	.text
	.p2align 4
	.globl	ecore_iwarp_accept
	.type	ecore_iwarp_accept, @function
ecore_iwarp_accept:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 32[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	test	rbp, rbp
	je	.L21
	mov	rax, QWORD PTR 16[rsi]
	mov	rbx, rsi
	mov	r8d, DWORD PTR 24[rbp]
	lea	rdx, .LC1[rip]
	mov	esi, DWORD PTR ECORE_MSG_RDMA[rip]
	mov	ecx, DWORD PTR 8[rax]
	xor	eax, eax
	call	DP_VERBOSE@PLT
	mov	r9, QWORD PTR [rbx]
	cmp	r9, QWORD PTR ECORE_IWARP_ORD_DEFAULT[rip]
	mov	rax, QWORD PTR 16[rbx]
	jg	.L5
	mov	ecx, DWORD PTR ECORE_IWARP_IRD_DEFAULT[rip]
	cmp	DWORD PTR 8[rbx], ecx
	jg	.L5
	mov	rdx, QWORD PTR OSAL_NULL[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L22
	mov	esi, DWORD PTR ECORE_MSG_RDMA[rip]
	mov	rdi, r13
	lea	rdx, .LC3[rip]
	xor	eax, eax
	call	DP_VERBOSE@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, r13
	mov	rsi, QWORD PTR [rax]
	call	ecore_iwarp_return_ep@PLT
.L8:
	mov	rsi, QWORD PTR 0[r13]
	mov	rdx, rbp
	mov	rdi, r13
	call	ecore_iwarp_move_to_ep_list@PLT
	mov	rax, QWORD PTR OSAL_NULL[rip]
	mov	QWORD PTR 88[rbp], rax
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 80[rbp], eax
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 72[rbp], rax
	mov	QWORD PTR [rax], rbp
	mov	rax, QWORD PTR MPA_NEGOTIATION_TYPE_ENHANCED[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L9
	movsx	rax, DWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
.L10:
	mov	QWORD PTR 48[rbp], rdx
	mov	rsi, rbp
	lea	rdx, 4[rsp]
	mov	rdi, r13
	mov	QWORD PTR 40[rbp], rax
	call	ecore_iwarp_mpa_v2_set_private@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR 12[rbx]
	mov	rcx, QWORD PTR [rax]
	movsx	rax, DWORD PTR 4[rsp]
	lea	esi, [rdx+rax]
	mov	QWORD PTR 64[rbp], rcx
	lea	rdi, [rcx+rax*4]
	mov	DWORD PTR 56[rbp], esi
	mov	esi, DWORD PTR 24[rbx]
	call	OSAL_MEMCPY@PLT
	mov	rax, QWORD PTR ECORE_IWARP_EP_CLOSED[rip]
	cmp	QWORD PTR 16[rbp], rax
	je	.L23
	mov	rsi, rbp
	mov	rdi, r13
	call	ecore_iwarp_mpa_offload@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 8[rax]
	mov	r8d, DWORD PTR 24[rbp]
	mov	rdi, r13
	push	r9
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR ECORE_MSG_RDMA[rip]
	lea	rdx, .LC2[rip]
	xor	eax, eax
	call	DP_VERBOSE@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	mov	r12d, DWORD PTR ECORE_INVAL[rip]
	pop	rdx
	.cfi_def_cfa_offset 64
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC0[rip]
	call	DP_ERR@PLT
	mov	r12d, DWORD PTR ECORE_INVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR ECORE_IWARP_QP_STATE_ERROR[rip]
	mov	ecx, 1
	mov	rdi, r13
	call	ecore_iwarp_modify_qp@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 40[rbp]
	cmp	rdx, rax
	jle	.L11
	mov	QWORD PTR [rbx], rax
	mov	rdx, rax
.L11:
	movsx	rax, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 8[rbp]
	test	DWORD PTR MPA_RTR_TYPE_ZERO_READ[rip], ecx
	je	.L10
	test	eax, eax
	jne	.L10
	mov	DWORD PTR 8[rbx], 1
	mov	eax, 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	xor	esi, esi
	mov	rdi, r13
	call	ecore_iwarp_prealloc_ep@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, DWORD PTR 24[rbp]
	lea	rdx, .LC4[rip]
	xor	esi, esi
	mov	rdi, r13
	call	DP_NOTICE@PLT
	mov	eax, DWORD PTR ECORE_IWARP_INVALID_TCP_CID[rip]
	mov	rsi, rbp
	mov	rdi, r13
	mov	DWORD PTR 24[rbp], eax
	call	ecore_iwarp_return_ep@PLT
	mov	r12d, DWORD PTR ECORE_CONN_RESET[rip]
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ecore_iwarp_accept, .-ecore_iwarp_accept
	.comm	OSAL_NULL,8,8
	.comm	MPA_RTR_TYPE_ZERO_READ,4,4
	.comm	MPA_NEGOTIATION_TYPE_ENHANCED,8,8
	.comm	ECORE_MSG_RDMA,4,4
	.comm	ECORE_IWARP_QP_STATE_ERROR,4,4
	.comm	ECORE_IWARP_ORD_DEFAULT,8,8
	.comm	ECORE_IWARP_IRD_DEFAULT,4,4
	.comm	ECORE_IWARP_INVALID_TCP_CID,4,4
	.comm	ECORE_IWARP_EP_CLOSED,8,8
	.comm	ECORE_INVAL,4,4
	.comm	ECORE_CONN_RESET,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_accept.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Ep Context receive in accept is NULL\012\000"
	.align	2
.LC1:
	.ascii	"QP(0x%x) EP(0x%x)\012\000"
	.align	2
.LC2:
	.ascii	"QP(0x%x) EP(0x%x) ERROR: Invalid ord(0x%x)/ird(0x%x"
	.ascii	")\012\000"
	.align	2
.LC3:
	.ascii	"Note re-use of QP for different connect\012\000"
	.align	2
.LC4:
	.ascii	"(0x%x) Accept called on EP in CLOSED state\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ecore_iwarp_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecore_iwarp_accept, %function
ecore_iwarp_accept:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, #0
	ldr	r5, [r1, #24]
	ldr	r3, .L27
	sub	sp, sp, #28
	cmp	r5, r7
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	r7, [sp, #16]
	beq	.L22
	mov	r4, r1
	ldr	r3, [r1, #12]
	ldr	r2, [r5, #12]
	ldr	r8, .L27+4
	ldr	r3, [r3, #4]
	ldr	r1, [r8]
	str	r2, [sp]
	ldr	r2, .L27+8
	mov	r6, r0
	bl	DP_VERBOSE
	ldr	r3, .L27+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	ldrgt	r3, [r4, #12]
	bgt	.L5
	ldr	r3, .L27+16
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	ldr	r3, [r4, #12]
	cmp	r0, r1
	bgt	.L5
	ldr	r9, .L27+20
	ldr	r2, [r3]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L23
	ldr	r1, [r8]
	mov	r0, r6
	ldr	r2, .L27+24
	bl	DP_VERBOSE
	ldr	r3, [r4, #12]
	mov	r0, r6
	ldr	r1, [r3]
	bl	ecore_iwarp_return_ep
.L8:
	mov	r2, r5
	ldr	r1, [r6]
	mov	r0, r6
	bl	ecore_iwarp_move_to_ep_list
	ldr	r3, .L27+28
	ldr	ip, [r5]
	ldr	r0, [r3]
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #12]
	ldr	r1, [r9]
	cmp	ip, r0
	str	r1, [r5, #44]
	str	r2, [r5, #40]
	str	r3, [r5, #36]
	str	r5, [r3]
	beq	.L9
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
.L10:
	mov	r1, r5
	str	r3, [r5, #24]
	str	r2, [r5, #20]
	mov	r0, r6
	add	r2, sp, #16
	bl	ecore_iwarp_mpa_v2_set_private
	ldr	r3, [r5, #16]
	ldr	r2, [r4, #8]
	ldr	r0, [sp, #16]
	ldr	r3, [r3]
	add	r1, r2, r0
	str	r3, [r5, #32]
	add	r0, r3, r0, lsl #2
	str	r1, [r5, #28]
	ldr	r1, [r4, #16]
	bl	OSAL_MEMCPY
	ldr	r3, .L27+32
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L24
	mov	r1, r5
	mov	r0, r6
	bl	ecore_iwarp_mpa_offload
	subs	r5, r0, #0
	bne	.L25
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r3, [r3, #4]
	str	r2, [sp, #8]
	str	r2, [sp, #4]
	ldr	r2, [r5, #12]
	mov	r0, r6
	str	r2, [sp]
	ldr	r1, [r8]
	ldr	r2, .L27+36
	bl	DP_VERBOSE
	ldr	r3, .L27+40
	ldr	r5, [r3]
	b	.L1
.L22:
	ldr	r1, .L27+44
	bl	DP_ERR
	ldr	r3, .L27+40
	ldr	r5, [r3]
	b	.L1
.L25:
	ldr	r3, .L27+48
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r4, #12]
	mov	r3, #1
	bl	ecore_iwarp_modify_qp
	b	.L1
.L9:
	ldr	r2, [r5, #20]
	ldr	r3, [r4]
	ldr	r0, [r5, #4]
	cmp	r3, r2
	movgt	r3, r2
	strgt	r2, [r4]
	ldr	r2, .L27+52
	ldr	r1, [r2]
	ldr	r2, [r4, #4]
	tst	r0, r1
	beq	.L10
	cmp	r2, #0
	moveq	r1, #1
	moveq	r2, r1
	streq	r1, [r4, #4]
	b	.L10
.L23:
	mov	r1, r7
	mov	r0, r6
	bl	ecore_iwarp_prealloc_ep
	b	.L8
.L24:
	ldr	r3, [r5, #12]
	mov	r1, #0
	ldr	r2, .L27+56
	mov	r0, r6
	bl	DP_NOTICE
	ldr	r3, .L27+60
	mov	r1, r5
	ldr	r3, [r3]
	mov	r0, r6
	str	r3, [r5, #12]
	bl	ecore_iwarp_return_ep
	ldr	r3, .L27+64
	ldr	r5, [r3]
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC5
	.word	ECORE_MSG_RDMA
	.word	.LC1
	.word	ECORE_IWARP_ORD_DEFAULT
	.word	ECORE_IWARP_IRD_DEFAULT
	.word	OSAL_NULL
	.word	.LC3
	.word	MPA_NEGOTIATION_TYPE_ENHANCED
	.word	ECORE_IWARP_EP_CLOSED
	.word	.LC2
	.word	ECORE_INVAL
	.word	.LC0
	.word	ECORE_IWARP_QP_STATE_ERROR
	.word	MPA_RTR_TYPE_ZERO_READ
	.word	.LC4
	.word	ECORE_IWARP_INVALID_TCP_CID
	.word	ECORE_CONN_RESET
	.size	ecore_iwarp_accept, .-ecore_iwarp_accept
	.comm	OSAL_NULL,4,4
	.comm	MPA_RTR_TYPE_ZERO_READ,4,4
	.comm	MPA_NEGOTIATION_TYPE_ENHANCED,4,4
	.comm	ECORE_MSG_RDMA,4,4
	.comm	ECORE_IWARP_QP_STATE_ERROR,4,4
	.comm	ECORE_IWARP_ORD_DEFAULT,4,4
	.comm	ECORE_IWARP_IRD_DEFAULT,4,4
	.comm	ECORE_IWARP_INVALID_TCP_CID,4,4
	.comm	ECORE_IWARP_EP_CLOSED,4,4
	.comm	ECORE_INVAL,4,4
	.comm	ECORE_CONN_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
