	.file	"extr_nes_cm.c_nes_cm_disconn_true.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"disconnect_worker nesqp is NULL\n"
	.align 8
.LC1:
	.string	"QP%u disconnect_worker cmid is NULL\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Disconnecting QP%u\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Generating a CM Disconnect Event for  QP%u, SQ Head = %u, SQ Tail = %u. cm_id = %p, refcount = %u.\n"
	.align 8
.LC4:
	.string	"OFA CM event_handler returned, ret=%d\n"
	.text
	.p2align 4
	.type	nes_cm_disconn_true, @function
nes_cm_disconn_true:
.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
	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, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR NES_CQP_FLUSH_RQ[rip]
	mov	DWORD PTR 4[rsp], eax
	test	rdi, rdi
	je	.L43
	lea	r12, 104[rdi]
	mov	rbp, rdi
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	rbx, QWORD PTR 112[rbp]
	test	rbx, rbx
	je	.L44
	mov	edi, DWORD PTR 80[rbp]
	call	to_nesvnic@PLT
	mov	edx, DWORD PTR 52[rbp]
	mov	edi, DWORD PTR NES_DBG_CM[rip]
	lea	rsi, .LC2[rip]
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	nes_debug@PLT
	cmp	QWORD PTR 96[rbp], 0
	mov	rdx, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 16[rbp]
	jne	.L45
	cmp	QWORD PTR NES_AEQE_TCP_STATE_CLOSE_WAIT[rip], rdx
	je	.L7
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR IB_QPS_RTS[rip], rax
	je	.L46
.L22:
	xor	r8d, r8d
	xor	r15d, r15d
	xor	r14d, r14d
	xor	r13d, r13d
.L6:
	cmp	QWORD PTR NES_AEQE_TCP_STATE_CLOSED[rip], rdx
	je	.L9
.L50:
	cmp	QWORD PTR NES_AEQE_TCP_STATE_TIME_WAIT[rip], rdx
	je	.L9
	cmp	QWORD PTR NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE[rip], rcx
	je	.L9
	cmp	QWORD PTR NES_AEQE_AEID_LLP_CONNECTION_RESET[rip], rcx
	je	.L9
.L10:
	xor	esi, esi
	mov	rdi, r12
	mov	DWORD PTR 16[rsp], r8d
	call	spin_unlock_irqrestore@PLT
	mov	r8d, DWORD PTR 16[rsp]
	test	r8d, r8d
	jne	.L11
.L12:
	cmp	QWORD PTR [rbx], 0
	je	.L41
	test	r14d, r14d
	jne	.L47
.L16:
	test	r15d, r15d
	jne	.L48
.L41:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L49
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	cmp	QWORD PTR NES_AEQE_AEID_LLP_CONNECTION_RESET[rip], rcx
	je	.L8
	xor	r8d, r8d
	xor	r15d, r15d
	xor	r13d, r13d
	cmp	QWORD PTR NES_AEQE_TCP_STATE_CLOSED[rip], rdx
	mov	r14d, 1
	jne	.L50
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 24[rbp]
	mov	QWORD PTR 112[rbp], 0
	test	esi, esi
	jne	.L24
	mov	DWORD PTR 24[rbp], 1
	xor	esi, esi
	mov	rdi, r12
	mov	r15d, 1
	call	spin_unlock_irqrestore@PLT
.L11:
	cmp	QWORD PTR 32[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR NES_AEQE_IWARP_STATE_TERMINATE[rip]
	cmp	QWORD PTR 40[rbp], rax
	jl	.L13
	mov	ecx, DWORD PTR NES_CQP_FLUSH_SQ[rip]
	or	DWORD PTR 4[rsp], ecx
.L13:
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rsp]
	mov	ecx, 1
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	flush_wqes@PLT
	cmp	QWORD PTR 96[rbp], 0
	je	.L12
	mov	eax, DWORD PTR 80[rbp]
	mov	DWORD PTR 44[rsp], eax
	mov	eax, DWORD PTR 88[rbp]
	mov	DWORD PTR 40[rsp], eax
	lea	rax, 64[rbp]
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR 72[rbp]
	test	rax, rax
	je	.L12
	mov	esi, DWORD PTR 64[rbp]
	lea	rdi, 32[rsp]
	call	rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L48:
	lea	rdi, cm_closes[rip]
	call	atomic_inc@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	nes_disconnect@PLT
	mov	eax, DWORD PTR IW_CM_EVENT_CLOSE[rip]
	mov	QWORD PTR 24[rbx], rbp
	mov	rdi, rbx
	mov	DWORD PTR 48[rsp], 0
	lea	rsi, 48[rsp]
	mov	DWORD PTR 88[rsp], eax
	mov	eax, DWORD PTR 20[rbx]
	mov	QWORD PTR 80[rsp], rbp
	mov	DWORD PTR 76[rsp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	QWORD PTR 56[rsp], 0
	mov	DWORD PTR 72[rsp], eax
	mov	QWORD PTR 64[rsp], 0
	call	[QWORD PTR [rbx]]
	test	eax, eax
	jne	.L51
.L19:
	mov	rdi, rbx
	call	[QWORD PTR 8[rbx]]
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r15d, 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L45:
	mov	QWORD PTR 112[rbp], 0
	lea	rdi, 120[rbp]
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 16[rsp], rdx
	call	del_timer@PLT
	mov	r13d, DWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	test	r13d, r13d
	jne	.L21
	mov	DWORD PTR 24[rbp], 1
	mov	r8d, 1
	mov	r15d, 1
	mov	r14d, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rdi, cm_disconnects[rip]
	call	atomic_inc@PLT
	mov	eax, DWORD PTR IW_CM_EVENT_DISCONNECT[rip]
	lea	rdi, 48[rbp]
	mov	DWORD PTR 48[rsp], r13d
	mov	QWORD PTR 56[rsp], 0
	mov	DWORD PTR 88[rsp], eax
	mov	eax, DWORD PTR 20[rbx]
	mov	DWORD PTR 76[rsp], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	QWORD PTR 64[rsp], 0
	mov	DWORD PTR 72[rsp], eax
	call	atomic_read@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	ecx, DWORD PTR 60[rbp]
	mov	edx, DWORD PTR 52[rbp]
	push	rax
	.cfi_def_cfa_offset 192
	mov	r8d, DWORD PTR 56[rbp]
	mov	r9, rbx
	xor	eax, eax
	mov	edi, DWORD PTR NES_DBG_CM[rip]
	lea	rsi, .LC3[rip]
	call	nes_debug@PLT
	lea	rsi, 64[rsp]
	mov	rdi, rbx
	call	[QWORD PTR [rbx]]
	pop	rdx
	.cfi_def_cfa_offset 184
	pop	rcx
	.cfi_def_cfa_offset 176
	test	eax, eax
	je	.L16
	mov	edi, DWORD PTR NES_DBG_CM[rip]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	nes_debug@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r8d, r8d
	mov	r15d, 1
	mov	r14d, 1
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L51:
	mov	edi, DWORD PTR NES_DBG_CM[rip]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	nes_debug@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L46:
	cmp	QWORD PTR NES_AEQE_AEID_LLP_CONNECTION_RESET[rip], rcx
	jne	.L22
.L8:
	mov	r13d, DWORD PTR ECONNRESET[rip]
	xor	r8d, r8d
	xor	r15d, r15d
	mov	r14d, 1
	neg	r13d
	jmp	.L6
.L43:
	mov	edi, DWORD PTR NES_DBG_CM[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	nes_debug@PLT
	mov	eax, -1
	jmp	.L1
.L44:
	mov	edx, DWORD PTR 52[rbp]
	mov	edi, DWORD PTR NES_DBG_CM[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	nes_debug@PLT
	xor	esi, esi
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	mov	eax, -1
	jmp	.L1
.L49:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nes_cm_disconn_true, .-nes_cm_disconn_true
	.comm	cm_disconnects,4,4
	.comm	cm_closes,4,4
	.comm	NES_DBG_CM,4,4
	.comm	NES_CQP_FLUSH_SQ,4,4
	.comm	NES_CQP_FLUSH_RQ,4,4
	.comm	NES_AEQE_TCP_STATE_TIME_WAIT,8,8
	.comm	NES_AEQE_TCP_STATE_CLOSE_WAIT,8,8
	.comm	NES_AEQE_TCP_STATE_CLOSED,8,8
	.comm	NES_AEQE_IWARP_STATE_TERMINATE,8,8
	.comm	NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE,8,8
	.comm	NES_AEQE_AEID_LLP_CONNECTION_RESET,8,8
	.comm	IW_CM_EVENT_DISCONNECT,4,4
	.comm	IW_CM_EVENT_CLOSE,4,4
	.comm	IB_QPS_RTS,8,8
	.comm	ECONNRESET,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_nes_cm.c_nes_cm_disconn_true.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"disconnect_worker nesqp is NULL\012\000"
	.align	2
.LC1:
	.ascii	"QP%u disconnect_worker cmid is NULL\012\000"
	.align	2
.LC2:
	.ascii	"Disconnecting QP%u\012\000"
	.align	2
.LC3:
	.ascii	"Generating a CM Disconnect Event for  QP%u, SQ Head"
	.ascii	" = %u, SQ Tail = %u. cm_id = %p, refcount = %u.\012"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"OFA CM event_handler returned, ret=%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nes_cm_disconn_true, %function
nes_cm_disconn_true:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L54
	ldr	r2, .L54+4
	sub	sp, sp, #84
	subs	r4, r0, #0
	ldr	r2, [r2]
	str	r2, [sp, #76]
	mov	r2,#0
	ldr	fp, [r3]
	beq	.L46
	add	r7, r4, #60
	mov	r0, r7
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r6, [r4, #64]
	cmp	r6, #0
	beq	.L47
	ldr	r0, [r4, #48]
	bl	to_nesvnic
	mov	r3, r0
	ldr	r8, .L54+8
	ldr	r1, .L54+12
	ldr	r2, [r4, #28]
	ldr	r0, [r8]
	str	r3, [sp, #20]
	bl	nes_debug
	ldr	r5, [r4, #56]
	ldr	r3, [r4]
	cmp	r5, #0
	ldr	r1, [r4, #8]
	bne	.L48
	ldr	r2, .L54+16
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L7
	ldr	r0, .L54+20
	ldr	r2, [r4, #4]
	ldr	r0, [r0]
	cmp	r0, r2
	beq	.L49
.L22:
	mov	r2, r5
	mov	r10, r5
	mov	r9, r5
.L6:
	ldr	r0, .L54+24
	ldr	r0, [r0]
	cmp	r0, r3
	beq	.L9
	ldr	r0, .L54+28
	ldr	r0, [r0]
	cmp	r0, r3
	beq	.L9
	ldr	r3, .L54+32
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L9
	ldr	r3, .L54+36
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L9
.L10:
	mov	r0, r7
	mov	r1, #0
	str	r2, [sp, #24]
	bl	spin_unlock_irqrestore
	ldr	r2, [sp, #24]
	cmp	r2, #0
	bne	.L11
.L12:
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L44
	cmp	r10, #0
	bne	.L50
.L16:
	cmp	r5, #0
	bne	.L51
.L44:
	mov	r0, #0
.L1:
	ldr	r3, .L54+4
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, .L54+36
	ldr	r2, [r2]
	cmp	r2, r1
	movne	r2, r5
	movne	r9, r5
	movne	r10, #1
	bne	.L6
.L8:
	ldr	r0, .L54+40
	mov	r2, #0
	ldr	r9, [r0]
	mov	r10, #1
	rsb	r9, r9, #0
	b	.L6
.L9:
	mov	r1, #0
	ldr	r3, [r4, #12]
	mov	r5, #1
	cmp	r3, r1
	str	r1, [r4, #64]
	bne	.L10
	mov	r0, r7
	str	r5, [r4, #12]
	bl	spin_unlock_irqrestore
.L11:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L54+44
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	mov	r1, r4
	cmp	r2, r3
	ldrge	r3, .L54+48
	ldrge	r3, [r3]
	orrge	fp, fp, r3
	ldr	r3, [sp, #20]
	mov	r2, fp
	ldr	r0, [r3]
	mov	r3, #1
	bl	flush_wqes
	ldr	r3, [r4, #56]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [r4, #48]
	ldr	r2, [r4, #44]
	ldr	r1, [r4, #52]
	str	r3, [sp, #44]
	cmp	r2, #0
	add	r3, r4, #40
	str	r1, [sp, #40]
	str	r3, [sp, #36]
	beq	.L12
	ldr	r1, [r4, #40]
	add	r0, sp, #36
	blx	r2
	b	.L12
.L48:
	mov	r5, #0
	add	r0, r4, #68
	str	r5, [r4, #64]
	str	r1, [sp, #28]
	str	r3, [sp, #24]
	bl	del_timer
	ldr	r9, [r4, #12]
	ldr	r3, [sp, #24]
	cmp	r9, r5
	ldr	r1, [sp, #28]
	bne	.L21
	mov	r0, #1
	mov	r2, r0
	mov	r5, r0
	mov	r10, r0
	str	r0, [r4, #12]
	b	.L6
.L51:
	ldr	r0, .L54+52
	bl	atomic_inc
	mov	r1, #1
	mov	r0, r4
	bl	nes_disconnect
	mov	r3, #0
	ldr	r2, .L54+56
	ldr	r1, [r6, #8]
	ldr	r0, [r2]
	ldr	r2, [r6, #12]
	str	r4, [r6, #16]
	str	r3, [sp, #48]
	str	r0, [sp, #72]
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	str	r1, [sp, #60]
	str	r2, [sp, #64]
	mov	r0, r6
	ldr	r3, [r6]
	str	r4, [sp, #68]
	add	r1, sp, #48
	blx	r3
	subs	r2, r0, #0
	bne	.L53
.L19:
	mov	r0, r6
	ldr	r3, [r6, #4]
	blx	r3
	b	.L44
.L50:
	ldr	r0, .L54+60
	bl	atomic_inc
	mov	r3, #0
	ldr	r2, .L54+64
	ldr	r1, [r6, #8]
	ldr	ip, [r2]
	ldr	r2, [r6, #12]
	add	r0, r4, #24
	str	ip, [sp, #72]
	ldr	r7, [r8]
	ldr	r10, [r4, #36]
	ldr	fp, [r4, #32]
	str	r9, [sp, #48]
	str	r3, [sp, #52]
	ldr	r9, [r4, #28]
	str	r3, [sp, #56]
	str	r1, [sp, #60]
	str	r2, [sp, #64]
	bl	atomic_read
	mov	r2, r9
	mov	r3, r10
	ldr	r1, .L54+68
	str	r0, [sp, #8]
	str	fp, [sp]
	mov	r0, r7
	str	r6, [sp, #4]
	bl	nes_debug
	mov	r0, r6
	ldr	r3, [r6]
	add	r1, sp, #48
	blx	r3
	subs	r2, r0, #0
	beq	.L16
	ldr	r1, .L54+72
	ldr	r0, [r8]
	bl	nes_debug
	b	.L16
.L21:
	mov	r2, r5
	mov	r5, #1
	mov	r9, r2
	mov	r10, r5
	b	.L6
.L53:
	ldr	r0, [r8]
	ldr	r1, .L54+72
	bl	nes_debug
	b	.L19
.L49:
	ldr	r2, .L54+36
	ldr	r2, [r2]
	cmp	r2, r1
	bne	.L22
	b	.L8
.L46:
	ldr	r3, .L54+8
	ldr	r1, .L54+76
	ldr	r0, [r3]
	bl	nes_debug
	mvn	r0, #0
	b	.L1
.L47:
	ldr	r3, .L54+8
	ldr	r2, [r4, #28]
	ldr	r0, [r3]
	ldr	r1, .L54+80
	bl	nes_debug
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mvn	r0, #0
	b	.L1
.L52:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	NES_CQP_FLUSH_RQ
	.word	.LC5
	.word	NES_DBG_CM
	.word	.LC2
	.word	NES_AEQE_TCP_STATE_CLOSE_WAIT
	.word	IB_QPS_RTS
	.word	NES_AEQE_TCP_STATE_CLOSED
	.word	NES_AEQE_TCP_STATE_TIME_WAIT
	.word	NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE
	.word	NES_AEQE_AEID_LLP_CONNECTION_RESET
	.word	ECONNRESET
	.word	NES_AEQE_IWARP_STATE_TERMINATE
	.word	NES_CQP_FLUSH_SQ
	.word	cm_closes
	.word	IW_CM_EVENT_CLOSE
	.word	cm_disconnects
	.word	IW_CM_EVENT_DISCONNECT
	.word	.LC3
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.size	nes_cm_disconn_true, .-nes_cm_disconn_true
	.comm	cm_disconnects,4,4
	.comm	cm_closes,4,4
	.comm	NES_DBG_CM,4,4
	.comm	NES_CQP_FLUSH_SQ,4,4
	.comm	NES_CQP_FLUSH_RQ,4,4
	.comm	NES_AEQE_TCP_STATE_TIME_WAIT,4,4
	.comm	NES_AEQE_TCP_STATE_CLOSE_WAIT,4,4
	.comm	NES_AEQE_TCP_STATE_CLOSED,4,4
	.comm	NES_AEQE_IWARP_STATE_TERMINATE,4,4
	.comm	NES_AEQE_AEID_RDMAP_ROE_BAD_LLP_CLOSE,4,4
	.comm	NES_AEQE_AEID_LLP_CONNECTION_RESET,4,4
	.comm	IW_CM_EVENT_DISCONNECT,4,4
	.comm	IW_CM_EVENT_CLOSE,4,4
	.comm	IB_QPS_RTS,4,4
	.comm	ECONNRESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
