	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_terminate_done
_nes_terminate_done:                    ## @nes_terminate_done
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_NES_CQP_QP_IWARP_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	24(%rdi), %edi
	callq	_to_nesvnic
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	$0, 16(%rbx)
	movq	_NES_CQP_QP_DEL_HTE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_2:
	movl	(%rbx), %r15d
	movq	_NES_TERM_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %eax
	orl	%r15d, %eax
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r12d
	je	LBB0_3
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:
	movq	_NES_CQP_QP_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_6
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_del_timer
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nes_hw_modify_qp
	movq	%rbx, %rdi
	addq	$24, %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_ERROR,4,2 ## @NES_CQP_QP_IWARP_STATE_ERROR
	.comm	_NES_CQP_QP_DEL_HTE,4,2         ## @NES_CQP_QP_DEL_HTE
	.comm	_NES_TERM_DONE,4,2              ## @NES_TERM_DONE
	.comm	_NES_CQP_QP_RESET,4,2           ## @NES_CQP_QP_RESET
	.no_dead_strip	_nes_terminate_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_terminate_done
_nes_terminate_done:                    ; @nes_terminate_done
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NES_CQP_QP_IWARP_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NES_CQP_QP_IWARP_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0, #24]
	bl	_to_nesvnic
	ldr	x21, [x0]
	add	x23, x19, #8
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #16]
Lloh3:
	adrp	x8, _NES_CQP_QP_DEL_HTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NES_CQP_QP_DEL_HTE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_2:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _NES_TERM_DONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NES_TERM_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w24, w9, w8
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cbz	w24, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _NES_CQP_QP_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NES_CQP_QP_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_7
LBB0_6:
	add	x0, x19, #4
	bl	_del_timer
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	bl	_nes_hw_modify_qp
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nes_cm_disconn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_CQP_QP_IWARP_STATE_ERROR,4,2 ; @NES_CQP_QP_IWARP_STATE_ERROR
	.comm	_NES_CQP_QP_DEL_HTE,4,2         ; @NES_CQP_QP_DEL_HTE
	.comm	_NES_TERM_DONE,4,2              ; @NES_TERM_DONE
	.comm	_NES_CQP_QP_RESET,4,2           ; @NES_CQP_QP_RESET
	.no_dead_strip	_nes_terminate_done
.subsections_via_symbols
