	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_terminate_connection
_nes_terminate_connection:              ## @nes_terminate_connection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NES_TERM_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	_NES_CQP_QP_IWARP_STATE_TERMINATE@GOTPCREL(%rip), %rax
	movq	_NES_CQP_QP_TERM_DONT_SEND_FIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %r13
	movq	(%rdx), %rax
	movq	_NES_AEQE_MISC_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_NES_AEQE_TCP_STATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_NES_AEQE_TCP_STATE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_NES_AEQE_IWARP_STATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_NES_AEQE_IWARP_STATE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r13
	movq	(%rbx), %rax
	movq	_NES_AEQE_COMP_QP_CQ_ID_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	_NES_FIRST_QPN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	(%r13,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movslq	-72(%rbp), %r13                 ## 4-byte Folded Reload
	andl	%r13d, %r12d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	andl	%r13d, %r14d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r14d
	movslq	%r12d, %r12
	movslq	%r14d, %r15
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, 32(%rbx)
	movq	%r15, 24(%rbx)
	movq	%r13, 16(%rbx)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r13d, %edx
	callq	_nes_bld_terminate_hdr
	movl	%eax, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	cmpl	$0, (%r15)
	je	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_nes_terminate_start_timer
	movq	_NES_TERM_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nes_hw_modify_qp               ## TAILCALL
LBB0_8:
	movl	$1, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_4:
	movq	_NES_CQP_QP_TERM_DONT_SEND_TERM_MSG@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	orl	(%rax), %r12d
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	$0, (%r15)
	jne	LBB0_6
LBB0_9:
	movq	_NES_TERM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_NES_CQP_QP_IWARP_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nes_hw_modify_qp
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nes_cm_disconn                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_CQP_QP_IWARP_STATE_TERMINATE,4,2 ## @NES_CQP_QP_IWARP_STATE_TERMINATE
	.comm	_NES_CQP_QP_TERM_DONT_SEND_FIN,4,2 ## @NES_CQP_QP_TERM_DONT_SEND_FIN
	.comm	_NES_TERM_SENT,4,2              ## @NES_TERM_SENT
	.comm	_NES_AEQE_MISC_IDX,8,3          ## @NES_AEQE_MISC_IDX
	.comm	_NES_AEQE_TCP_STATE_MASK,4,2    ## @NES_AEQE_TCP_STATE_MASK
	.comm	_NES_AEQE_TCP_STATE_SHIFT,4,2   ## @NES_AEQE_TCP_STATE_SHIFT
	.comm	_NES_AEQE_IWARP_STATE_MASK,4,2  ## @NES_AEQE_IWARP_STATE_MASK
	.comm	_NES_AEQE_IWARP_STATE_SHIFT,4,2 ## @NES_AEQE_IWARP_STATE_SHIFT
	.comm	_NES_AEQE_COMP_QP_CQ_ID_IDX,8,3 ## @NES_AEQE_COMP_QP_CQ_ID_IDX
	.comm	_NES_FIRST_QPN,8,3              ## @NES_FIRST_QPN
	.comm	_NES_CQP_QP_TERM_DONT_SEND_TERM_MSG,4,2 ## @NES_CQP_QP_TERM_DONT_SEND_TERM_MSG
	.comm	_NES_TERM_DONE,4,2              ## @NES_TERM_DONE
	.comm	_NES_CQP_QP_IWARP_STATE_ERROR,4,2 ## @NES_CQP_QP_IWARP_STATE_ERROR
	.no_dead_strip	_nes_terminate_connection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_terminate_connection
_nes_terminate_connection:              ; @nes_terminate_connection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _NES_TERM_SENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NES_TERM_SENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
Lloh3:
	adrp	x8, _NES_CQP_QP_IWARP_STATE_TERMINATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NES_CQP_QP_IWARP_STATE_TERMINATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _NES_CQP_QP_TERM_DONT_SEND_FIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NES_CQP_QP_TERM_DONT_SEND_FIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	x27, [x0, #8]
	ldr	x8, [x2]
Lloh9:
	adrp	x9, _NES_AEQE_MISC_IDX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NES_AEQE_MISC_IDX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
	mov	x23, x0
Lloh12:
	adrp	x8, _NES_AEQE_TCP_STATE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NES_AEQE_TCP_STATE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
Lloh15:
	adrp	x8, _NES_AEQE_TCP_STATE_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NES_AEQE_TCP_STATE_SHIFT@GOTPAGEOFF]
Lloh17:
	adrp	x9, _NES_AEQE_IWARP_STATE_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NES_AEQE_IWARP_STATE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w28, [x8]
Lloh20:
	ldr	w26, [x9]
Lloh21:
	adrp	x8, _NES_AEQE_IWARP_STATE_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NES_AEQE_IWARP_STATE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	ldr	x24, [x27, #8]
	ldr	x8, [x20]
Lloh24:
	adrp	x9, _NES_AEQE_COMP_QP_CQ_ID_IDX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NES_AEQE_COMP_QP_CQ_ID_IDX@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
Lloh27:
	adrp	x8, _NES_FIRST_QPN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NES_FIRST_QPN@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	sub	x8, x0, x8
	ldr	x20, [x24, x8, lsl #3]
	cbz	x20, LBB0_6
; %bb.3:
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	orr	w8, w9, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	sxtw	x24, w23
	and	w8, w26, w23
	asr	w8, w8, w22
	sxtw	x22, w8
	and	w8, w25, w23
	asr	w8, w8, w28
	sxtw	x26, w8
	add	x25, x20, #8
	mov	x0, x25
	bl	_spin_lock_irqsave
	stp	x26, x22, [x20, #24]
	str	x24, [x20, #16]
	str	w21, [x20, #4]
	mov	x0, x25
	bl	_spin_unlock_irqrestore
	ldr	x8, [x27]
	cbz	x8, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_nes_bld_terminate_hdr
	mov	x21, x0
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	ldr	w8, [x19]
	cbz	w8, LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_nes_terminate_start_timer
Lloh30:
	adrp	x8, _NES_TERM_SENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NES_TERM_SENT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	w4, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nes_hw_modify_qp
LBB0_6:
	mov	w0, #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_WARN_ON
LBB0_7:
	mov	w21, #0
Lloh33:
	adrp	x8, _NES_CQP_QP_TERM_DONT_SEND_TERM_MSG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NES_CQP_QP_TERM_DONT_SEND_TERM_MSG@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	orr	w22, w8, w22
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
LBB0_8:
Lloh36:
	adrp	x8, _NES_TERM_DONE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NES_TERM_DONE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh39:
	adrp	x8, _NES_CQP_QP_IWARP_STATE_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NES_CQP_QP_IWARP_STATE_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	mov	w4, #0
	bl	_nes_hw_modify_qp
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nes_cm_disconn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_CQP_QP_IWARP_STATE_TERMINATE,4,2 ; @NES_CQP_QP_IWARP_STATE_TERMINATE
	.comm	_NES_CQP_QP_TERM_DONT_SEND_FIN,4,2 ; @NES_CQP_QP_TERM_DONT_SEND_FIN
	.comm	_NES_TERM_SENT,4,2              ; @NES_TERM_SENT
	.comm	_NES_AEQE_MISC_IDX,8,3          ; @NES_AEQE_MISC_IDX
	.comm	_NES_AEQE_TCP_STATE_MASK,4,2    ; @NES_AEQE_TCP_STATE_MASK
	.comm	_NES_AEQE_TCP_STATE_SHIFT,4,2   ; @NES_AEQE_TCP_STATE_SHIFT
	.comm	_NES_AEQE_IWARP_STATE_MASK,4,2  ; @NES_AEQE_IWARP_STATE_MASK
	.comm	_NES_AEQE_IWARP_STATE_SHIFT,4,2 ; @NES_AEQE_IWARP_STATE_SHIFT
	.comm	_NES_AEQE_COMP_QP_CQ_ID_IDX,8,3 ; @NES_AEQE_COMP_QP_CQ_ID_IDX
	.comm	_NES_FIRST_QPN,8,3              ; @NES_FIRST_QPN
	.comm	_NES_CQP_QP_TERM_DONT_SEND_TERM_MSG,4,2 ; @NES_CQP_QP_TERM_DONT_SEND_TERM_MSG
	.comm	_NES_TERM_DONE,4,2              ; @NES_TERM_DONE
	.comm	_NES_CQP_QP_IWARP_STATE_ERROR,4,2 ; @NES_CQP_QP_IWARP_STATE_ERROR
	.no_dead_strip	_nes_terminate_connection
.subsections_via_symbols
