	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_terminate_send_fin
_nes_terminate_send_fin:                ## @nes_terminate_send_fin
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdx), %rax
	movq	_NES_AEQE_MISC_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	_NES_AEQE_TCP_STATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_NES_AEQE_TCP_STATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movslq	%edx, %r15
	movq	_NES_AEQE_IWARP_STATE_MASK@GOTPCREL(%rip), %rcx
	movslq	%eax, %r12
	andl	(%rcx), %eax
	movq	_NES_AEQE_IWARP_STATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movslq	%eax, %r13
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_NES_CQP_QP_IWARP_STATE_TERMINATE@GOTPCREL(%rip), %rax
	movq	_NES_CQP_QP_TERM_DONT_SEND_TERM_MSG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nes_hw_modify_qp               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_CQP_QP_IWARP_STATE_TERMINATE,4,2 ## @NES_CQP_QP_IWARP_STATE_TERMINATE
	.comm	_NES_CQP_QP_TERM_DONT_SEND_TERM_MSG,4,2 ## @NES_CQP_QP_TERM_DONT_SEND_TERM_MSG
	.no_dead_strip	_nes_terminate_send_fin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_terminate_send_fin
_nes_terminate_send_fin:                ; @nes_terminate_send_fin
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _NES_AEQE_MISC_IDX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NES_AEQE_MISC_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
Lloh3:
	adrp	x8, _NES_AEQE_TCP_STATE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NES_AEQE_TCP_STATE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _NES_AEQE_TCP_STATE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NES_AEQE_TCP_STATE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x21, w8
Lloh9:
	adrp	x8, _NES_AEQE_IWARP_STATE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NES_AEQE_IWARP_STATE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh12:
	adrp	x9, _NES_AEQE_IWARP_STATE_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NES_AEQE_IWARP_STATE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x22, w8
	sxtw	x23, w0
	mov	x0, x19
	bl	_spin_lock_irqsave
	stp	x21, x22, [x19, #16]
	str	x23, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _NES_CQP_QP_IWARP_STATE_TERMINATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NES_CQP_QP_IWARP_STATE_TERMINATE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _NES_CQP_QP_TERM_DONT_SEND_TERM_MSG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NES_CQP_QP_TERM_DONT_SEND_TERM_MSG@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	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_hw_modify_qp
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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_CQP_QP_IWARP_STATE_TERMINATE,4,2 ; @NES_CQP_QP_IWARP_STATE_TERMINATE
	.comm	_NES_CQP_QP_TERM_DONT_SEND_TERM_MSG,4,2 ; @NES_CQP_QP_TERM_DONT_SEND_TERM_MSG
	.no_dead_strip	_nes_terminate_send_fin
.subsections_via_symbols
