	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_terminate_received       ## -- Begin function i40iw_terminate_received
	.p2align	4, 0x90
_i40iw_terminate_received:              ## @i40iw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_Q2_BAD_FRAME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_i40iw_locate_mpa
	movq	%rax, %r15
	cmpq	$0, 8(%r14)
	je	LBB0_16
## %bb.1:
	movl	(%r15), %edi
	callq	_ntohl
	movl	%eax, %r12d
	andl	$49152, %eax                    ## imm = 0xC000
	cmpl	$16384, %eax                    ## imm = 0x4000
	jne	LBB0_2
## %bb.3:
	movl	%r12d, %eax
	andl	$768, %eax                      ## imm = 0x300
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_4
## %bb.5:
	movl	8(%r15), %edi
	callq	_ntohl
	cmpl	$2, %eax
	jne	LBB0_6
## %bb.7:
	movl	12(%r15), %edi
	callq	_ntohl
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.9:
	movl	16(%r15), %edi
	callq	_ntohl
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_I40IW_AE_DDP_UBE_INVALID_MO@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_I40IW_AE_LCE_QP_CATASTROPHIC@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_I40IW_AE_DDP_UBE_INVALID_DDP_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	movq	_I40IW_AE_DDP_UBE_INVALID_QN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_terminate_connection     ## TAILCALL
LBB0_11:
	andl	$192, %r12d
	cmpl	$64, %r12d
	jne	LBB0_12
## %bb.15:
	movl	$0, (%r14)
LBB0_16:
	movq	_I40IW_TERM_RCVD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movq	_TERM_EVENT_QP_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	20(%r15), %rax
	movq	_RDMAP_REMOTE_PROT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movq	_RDMAP_REMOTE_OP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	callq	_i40iw_terminate_start_timer
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_terminate_send_fin       ## TAILCALL
LBB0_18:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i40iw_terminate_done           ## TAILCALL
LBB0_12:
	movq	_I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_Q2_BAD_FRAME_OFFSET,4,2        ## @Q2_BAD_FRAME_OFFSET
	.comm	_I40IW_AE_LCE_QP_CATASTROPHIC,4,2 ## @I40IW_AE_LCE_QP_CATASTROPHIC
	.comm	_I40IW_AE_DDP_UBE_INVALID_DDP_VERSION,4,2 ## @I40IW_AE_DDP_UBE_INVALID_DDP_VERSION
	.comm	_I40IW_AE_DDP_UBE_INVALID_QN,4,2 ## @I40IW_AE_DDP_UBE_INVALID_QN
	.comm	_I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN,4,2 ## @I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN
	.comm	_I40IW_AE_DDP_UBE_INVALID_MO,4,2 ## @I40IW_AE_DDP_UBE_INVALID_MO
	.comm	_I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION,4,2 ## @I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION
	.comm	_I40IW_TERM_RCVD,4,2            ## @I40IW_TERM_RCVD
	.comm	_TERM_EVENT_QP_FATAL,4,2        ## @TERM_EVENT_QP_FATAL
	.comm	_RDMAP_REMOTE_PROT,8,3          ## @RDMAP_REMOTE_PROT
	.comm	_RDMAP_REMOTE_OP,8,3            ## @RDMAP_REMOTE_OP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_terminate_received       ; -- Begin function i40iw_terminate_received
	.p2align	2
_i40iw_terminate_received:              ; @i40iw_terminate_received
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _Q2_BAD_FRAME_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Q2_BAD_FRAME_OFFSET@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_i40iw_locate_mpa
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.1:
	ldr	w0, [x21]
	bl	_ntohl
	and	w8, w0, #0xc000
	cmp	w8, #4, lsl #12                 ; =16384
	b.ne	LBB0_7
; %bb.2:
	mov	x22, x0
	and	w8, w0, #0x300
	cmp	w8, #256
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x21, #8]
	bl	_ntohl
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.4:
	ldr	w0, [x21, #12]
	bl	_ntohl
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x21, #16]
	bl	_ntohl
	cbz	w0, LBB0_13
; %bb.6:
Lloh3:
	adrp	x8, _I40IW_AE_DDP_UBE_INVALID_MO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_AE_DDP_UBE_INVALID_MO@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _I40IW_AE_LCE_QP_CATASTROPHIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I40IW_AE_LCE_QP_CATASTROPHIC@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x8, _I40IW_AE_DDP_UBE_INVALID_DDP_VERSION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40IW_AE_DDP_UBE_INVALID_DDP_VERSION@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh9:
	adrp	x8, _I40IW_AE_DDP_UBE_INVALID_QN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40IW_AE_DDP_UBE_INVALID_QN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x20]
	cbz	w8, LBB0_15
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i40iw_terminate_connection
LBB0_13:
	and	w8, w22, #0xc0
	cmp	w8, #64
	b.ne	LBB0_18
; %bb.14:
	str	wzr, [x20]
LBB0_15:
Lloh13:
	adrp	x8, _I40IW_TERM_RCVD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I40IW_TERM_RCVD@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _TERM_EVENT_QP_FATAL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TERM_EVENT_QP_FATAL@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldur	x8, [x21, #20]
Lloh19:
	adrp	x9, _RDMAP_REMOTE_PROT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RDMAP_REMOTE_PROT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _RDMAP_REMOTE_OP@GOTPAGE
Lloh23:
	ldr	x10, [x10, _RDMAP_REMOTE_OP@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i40iw_terminate_done
LBB0_17:
	mov	x0, x19
	bl	_i40iw_terminate_start_timer
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_i40iw_terminate_send_fin
LBB0_18:
Lloh25:
	adrp	x8, _I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_Q2_BAD_FRAME_OFFSET,4,2        ; @Q2_BAD_FRAME_OFFSET
	.comm	_I40IW_AE_LCE_QP_CATASTROPHIC,4,2 ; @I40IW_AE_LCE_QP_CATASTROPHIC
	.comm	_I40IW_AE_DDP_UBE_INVALID_DDP_VERSION,4,2 ; @I40IW_AE_DDP_UBE_INVALID_DDP_VERSION
	.comm	_I40IW_AE_DDP_UBE_INVALID_QN,4,2 ; @I40IW_AE_DDP_UBE_INVALID_QN
	.comm	_I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN,4,2 ; @I40IW_AE_DDP_INVALID_MSN_GAP_IN_MSN
	.comm	_I40IW_AE_DDP_UBE_INVALID_MO,4,2 ; @I40IW_AE_DDP_UBE_INVALID_MO
	.comm	_I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION,4,2 ; @I40IW_AE_RDMAP_ROE_INVALID_RDMAP_VERSION
	.comm	_I40IW_TERM_RCVD,4,2            ; @I40IW_TERM_RCVD
	.comm	_TERM_EVENT_QP_FATAL,4,2        ; @TERM_EVENT_QP_FATAL
	.comm	_RDMAP_REMOTE_PROT,8,3          ; @RDMAP_REMOTE_PROT
	.comm	_RDMAP_REMOTE_OP,8,3            ; @RDMAP_REMOTE_OP
.subsections_via_symbols
