	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function siw_proc_terminate
LCPI0_0:
	.long	4294967292                      ## 0xfffffffc
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_siw_proc_terminate
	.p2align	4, 0x90
_siw_proc_terminate:                    ## @siw_proc_terminate
	.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	%rdi, %r13
	movq	72(%rdi), %r14
	leaq	32(%rdi), %r15
	movq	%r15, %rdi
	callq	___rdmap_term_layer
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	___rdmap_term_etype
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	___rdmap_term_ecode
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_pr_warn
	movl	64(%r13), %edi
	callq	_be32_to_cpu
	movq	_RDMAP_UNTAGGED_QN_TERMINATE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.1:
	movl	60(%r13), %edi
	callq	_be32_to_cpu
	movq	(%r13), %rcx
	movq	(%rbx), %rdx
	cmpq	(%rcx,%rdx,8), %rax
	jne	LBB0_3
## %bb.2:
	movl	56(%r13), %edi
	callq	_be32_to_cpu
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	64(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, %r14
	movl	60(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, %rbx
	movl	56(%r13), %edi
	callq	_be32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_pr_warn
LBB0_14:
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, (%r15)
	je	LBB0_14
## %bb.5:
	cmpl	$4, 8(%r13)
	jb	LBB0_14
## %bb.6:
	leaq	-48(%rbp), %rbx
	movl	$4, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	12(%r13), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_skb_copy_bits
	movq	%rbx, %rdi
	callq	___rdmap_get_opcode
	movl	%eax, %r12d
	movq	_RDMAP_TERMINATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jae	LBB0_13
## %bb.7:
	movdqu	8(%r13), %xmm0
	paddd	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 8(%r13)
	addl	$-4, 24(%r13)
	movq	_iwarp_pktinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %r15d
	addl	$-4, %r15d
	movq	_MPA_CRC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	movd	%xmm0, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_14
## %bb.8:
	leaq	-32(%rbp), %rdx
	pextrd	$1, %xmm0, %esi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_skb_copy_bits
	cmpq	$0, 48(%r13)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_12
LBB0_10:
	cmpq	$0, 40(%r13)
	je	LBB0_13
## %bb.11:
	leaq	L_.str.5(%rip), %rbx
LBB0_12:
	movl	-48(%rbp), %edi
	callq	_be16_to_cpu
	cmpq	$0, 32(%r13)
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rcx, %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_siw_dbg_qp
LBB0_13:
	movdqu	8(%r13), %xmm0
	movd	%r15d, %xmm1
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	paddd	%xmm0, %xmm2
	psubd	%xmm1, %xmm0
	pblendw	$3, %xmm0, %xmm2                ## xmm2 = xmm0[0,1],xmm2[2,3,4,5,6,7]
	movdqu	%xmm2, 8(%r13)
	subl	%r15d, 24(%r13)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siw: got TERMINATE. layer %d, type %d, code %d\n"

	.comm	_RDMAP_UNTAGGED_QN_TERMINATE,8,3 ## @RDMAP_UNTAGGED_QN_TERMINATE
L_.str.1:                               ## @.str.1
	.asciz	"siw: rx bogus TERM [QN x%08x, MSN x%08x, MO x%08x]\n"

	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_RDMAP_TERMINATE,4,2            ## @RDMAP_TERMINATE
	.comm	_iwarp_pktinfo,8,3              ## @iwarp_pktinfo
	.comm	_MPA_CRC_SIZE,4,2               ## @MPA_CRC_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"TERM reports RDMAP hdr type %u, len %u (%s)\n"

L_.str.3:                               ## @.str.3
	.asciz	"valid"

L_.str.4:                               ## @.str.4
	.asciz	"invalid"

L_.str.5:                               ## @.str.5
	.asciz	"TERM reports DDP hdr type %u, len %u (%s)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function siw_proc_terminate
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_siw_proc_terminate
	.p2align	2
_siw_proc_terminate:                    ; @siw_proc_terminate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x20, [x0, #72]
	add	x21, x0, #32
	mov	x0, x21
	bl	___rdmap_term_layer
	mov	x22, x0
	mov	x0, x21
	bl	___rdmap_term_etype
	mov	x23, x0
	mov	x0, x21
	bl	___rdmap_term_ecode
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	bl	_pr_warn
	ldr	w0, [x19, #64]
	bl	_be32_to_cpu
Lloh2:
	adrp	x22, _RDMAP_UNTAGGED_QN_TERMINATE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RDMAP_UNTAGGED_QN_TERMINATE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #60]
	bl	_be32_to_cpu
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x19, #56]
	bl	_be32_to_cpu
	cbz	x0, LBB0_5
LBB0_3:
	ldr	w0, [x19, #64]
	bl	_be32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #60]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x19, #56]
	bl	_be32_to_cpu
	mov	x3, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_pr_warn
LBB0_4:
Lloh6:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.lo	LBB0_4
; %bb.7:
	mov	w21, #4
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w1, [x19, #12]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	bl	_skb_copy_bits
	add	x0, sp, #8
	bl	___rdmap_get_opcode
Lloh9:
	adrp	x8, _RDMAP_TERMINATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMAP_TERMINATE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_14
; %bb.8:
	mov	x22, x0
	ldur	q0, [x19, #8]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	add.4s	v0, v0, v1
	stur	q0, [x19, #8]
	ldr	w8, [x19, #24]
	sub	w8, w8, #4
	str	w8, [x19, #24]
Lloh14:
	adrp	x8, _iwarp_pktinfo@GOTPAGE
Lloh15:
	ldr	x8, [x8, _iwarp_pktinfo@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8, w0, uxtw #2]
	sub	w21, w8, #4
Lloh17:
	adrp	x8, _MPA_CRC_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MPA_CRC_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	fmov	w9, s0
	add	w8, w21, w8
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.9:
	add	x8, sp, #8
	add	x2, x8, #16
	mov.s	w1, v0[1]
	mov	x0, x20
	mov	x3, x21
	bl	_skb_copy_bits
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.10:
Lloh20:
	adrp	x20, l_.str.2@PAGE
Lloh21:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_14
; %bb.12:
Lloh22:
	adrp	x20, l_.str.5@PAGE
Lloh23:
	add	x20, x20, l_.str.5@PAGEOFF
LBB0_13:
	ldr	w0, [sp, #8]
	bl	_be16_to_cpu
	mov	x3, x0
	ldr	x8, [x19, #32]
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh26:
	adrp	x10, l_.str.4@PAGE
Lloh27:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x4, x10, x9, eq
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_siw_dbg_qp
LBB0_14:
	ldur	q0, [x19, #8]
	fmov	s1, w21
	dup.4s	v2, w21
	sub.4s	v1, v0, v1
	add.4s	v0, v0, v2
	mov.s	v0[0], v1[0]
	stur	q0, [x19, #8]
	ldr	w8, [x19, #24]
	sub	w8, w8, w21
	str	w8, [x19, #24]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siw: got TERMINATE. layer %d, type %d, code %d\n"

	.comm	_RDMAP_UNTAGGED_QN_TERMINATE,8,3 ; @RDMAP_UNTAGGED_QN_TERMINATE
l_.str.1:                               ; @.str.1
	.asciz	"siw: rx bogus TERM [QN x%08x, MSN x%08x, MO x%08x]\n"

	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_RDMAP_TERMINATE,4,2            ; @RDMAP_TERMINATE
	.comm	_iwarp_pktinfo,8,3              ; @iwarp_pktinfo
	.comm	_MPA_CRC_SIZE,4,2               ; @MPA_CRC_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"TERM reports RDMAP hdr type %u, len %u (%s)\n"

l_.str.3:                               ; @.str.3
	.asciz	"valid"

l_.str.4:                               ; @.str.4
	.asciz	"invalid"

l_.str.5:                               ; @.str.5
	.asciz	"TERM reports DDP hdr type %u, len %u (%s)\n"

.subsections_via_symbols
