	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_terminate_received
_nes_terminate_received:                ## @nes_terminate_received
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdx), %rax
	movq	_NES_AEQE_MISC_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	_NES_AEQE_Q2_DATA_WRITTEN@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_16
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_BAD_FRAME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	movl	%r13d, %esi
	callq	_locate_mpa
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%r15d, %ecx
	andl	$49152, %ecx                    ## imm = 0xC000
	cmpl	$16384, %ecx                    ## imm = 0x4000
	jne	LBB0_2
## %bb.4:
	andl	$768, %r15d                     ## imm = 0x300
	cmpl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_5
## %bb.6:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.8:
	movl	12(%rbx), %edi
	callq	_be32_to_cpu
	cmpl	$1, %eax
	movq	_NES_AEQE_MISC_IDX@GOTPCREL(%rip), %r15
	jne	LBB0_9
## %bb.10:
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_NES_AEQE_AEID_DDP_UBE_INVALID_MO@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_2:
	movq	_NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_NES_AEQE_AEID_DDP_UBE_INVALID_QN@GOTPCREL(%rip), %rax
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_NES_AEQE_MISC_IDX@GOTPCREL(%rip), %r15
LBB0_14:
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_16
## %bb.15:
	andl	$-65536, %r13d                  ## imm = 0xFFFF0000
	orl	%r13d, %edi
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movq	(%r15), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_IB_EVENT_QP_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nes_terminate_connection       ## TAILCALL
LBB0_9:
	movq	_NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_12:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	andl	$192, %eax
	cmpl	$64, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
LBB0_16:
	movq	_NES_TERM_RCVD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	movq	_IB_EVENT_QP_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_nes_terminate_start_timer
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nes_terminate_send_fin         ## TAILCALL
LBB0_13:
	movq	_NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_AEQE_MISC_IDX,8,3          ## @NES_AEQE_MISC_IDX
	.comm	_NES_AEQE_Q2_DATA_WRITTEN,4,2   ## @NES_AEQE_Q2_DATA_WRITTEN
	.comm	_BAD_FRAME_OFFSET,4,2           ## @BAD_FRAME_OFFSET
	.comm	_NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC,4,2 ## @NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC
	.comm	_NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION,4,2 ## @NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION
	.comm	_NES_AEQE_AEID_DDP_UBE_INVALID_QN,4,2 ## @NES_AEQE_AEID_DDP_UBE_INVALID_QN
	.comm	_NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN,4,2 ## @NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN
	.comm	_NES_AEQE_AEID_DDP_UBE_INVALID_MO,4,2 ## @NES_AEQE_AEID_DDP_UBE_INVALID_MO
	.comm	_NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION,4,2 ## @NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION
	.comm	_IB_EVENT_QP_FATAL,4,2          ## @IB_EVENT_QP_FATAL
	.comm	_NES_TERM_RCVD,4,2              ## @NES_TERM_RCVD
	.no_dead_strip	_nes_terminate_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_terminate_received
_nes_terminate_received:                ; @nes_terminate_received
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x26, _NES_AEQE_MISC_IDX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NES_AEQE_MISC_IDX@GOTPAGEOFF]
	ldr	x9, [x26]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
Lloh2:
	adrp	x8, _NES_AEQE_Q2_DATA_WRITTEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NES_AEQE_Q2_DATA_WRITTEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.1:
	mov	x22, x0
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _BAD_FRAME_OFFSET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BAD_FRAME_OFFSET@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	mov	x1, x22
	bl	_locate_mpa
	mov	x23, x0
	ldr	w0, [x0]
	bl	_be32_to_cpu
	mov	x25, x0
	ldr	w0, [x23]
	bl	_be32_to_cpu
	and	w8, w25, #0xc000
	cmp	w8, #4, lsl #12                 ; =16384
	b.ne	LBB0_7
; %bb.2:
	and	w8, w25, #0x300
	cmp	w8, #256
	b.ne	LBB0_8
; %bb.3:
	mov	x24, x0
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [x23, #12]
	bl	_be32_to_cpu
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x23, #16]
	bl	_be32_to_cpu
	cbz	w0, LBB0_12
; %bb.6:
Lloh8:
	adrp	x8, _NES_AEQE_AEID_DDP_UBE_INVALID_MO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NES_AEQE_AEID_DDP_UBE_INVALID_MO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_14
LBB0_7:
Lloh11:
	adrp	x8, _NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_14
LBB0_8:
Lloh14:
	adrp	x8, _NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x8, _NES_AEQE_AEID_DDP_UBE_INVALID_QN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NES_AEQE_AEID_DDP_UBE_INVALID_QN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
	b	LBB0_14
LBB0_10:
Lloh20:
	adrp	x8, _NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_11:
	and	w9, w22, #0xffff0000
	orr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x19]
	ldr	x9, [x26]
	str	w0, [x8, x9, lsl #2]
Lloh23:
	adrp	x8, _IB_EVENT_QP_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_EVENT_QP_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nes_terminate_connection
LBB0_12:
	and	w8, w24, #0xc0
	cmp	w8, #64
	b.eq	LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
LBB0_14:
Lloh29:
	adrp	x8, _NES_TERM_RCVD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _NES_TERM_RCVD@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _IB_EVENT_QP_FATAL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IB_EVENT_QP_FATAL@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x20
	bl	_nes_terminate_start_timer
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nes_terminate_send_fin
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_AEQE_MISC_IDX,8,3          ; @NES_AEQE_MISC_IDX
	.comm	_NES_AEQE_Q2_DATA_WRITTEN,4,2   ; @NES_AEQE_Q2_DATA_WRITTEN
	.comm	_BAD_FRAME_OFFSET,4,2           ; @BAD_FRAME_OFFSET
	.comm	_NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC,4,2 ; @NES_AEQE_AEID_DDP_LCE_LOCAL_CATASTROPHIC
	.comm	_NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION,4,2 ; @NES_AEQE_AEID_DDP_UBE_INVALID_DDP_VERSION
	.comm	_NES_AEQE_AEID_DDP_UBE_INVALID_QN,4,2 ; @NES_AEQE_AEID_DDP_UBE_INVALID_QN
	.comm	_NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN,4,2 ; @NES_AEQE_AEID_DDP_INVALID_MSN_GAP_IN_MSN
	.comm	_NES_AEQE_AEID_DDP_UBE_INVALID_MO,4,2 ; @NES_AEQE_AEID_DDP_UBE_INVALID_MO
	.comm	_NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION,4,2 ; @NES_AEQE_AEID_RDMAP_ROE_INVALID_RDMAP_VERSION
	.comm	_IB_EVENT_QP_FATAL,4,2          ; @IB_EVENT_QP_FATAL
	.comm	_NES_TERM_RCVD,4,2              ; @NES_TERM_RCVD
	.no_dead_strip	_nes_terminate_received
.subsections_via_symbols
