	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_send_check_ntoh
_siw_send_check_ntoh:                   ## @siw_send_check_ntoh
	.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, %r15
	movq	%rdi, %r13
	movl	36(%rdi), %edi
	callq	_be32_to_cpu
	movq	%rax, %r14
	movl	32(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, %r12
	movl	28(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, %rbx
	movq	_RDMAP_UNTAGGED_QN_SEND@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_DDP_ECODE_UT_INVALID_QN@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	(%r13), %rax
	movq	_RDMAP_UNTAGGED_QN_SEND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edi, %edi
	cmpq	%r14, (%rax,%rcx,8)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	(%r13), %rcx
	movq	_RDMAP_UNTAGGED_QN_SEND@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_DDP_ECODE_UT_INVALID_MSN_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	xorl	%edi, %edi
	cmpq	%r12, 32(%r15)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	32(%r15), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_pr_warn
	movq	_DDP_ECODE_UT_INVALID_MO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	cmpq	$0, 24(%r15)
	je	LBB0_8
## %bb.7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, 16(%r15)
	movl	24(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, 16(%r13)
LBB0_8:
	movq	8(%r13), %rax
	addq	32(%r15), %rax
	xorl	%edi, %edi
	cmpq	%rax, 40(%r15)
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	callq	_rx_qp
	movq	32(%r15), %rcx
	movq	40(%r15), %rdx
	movq	8(%r13), %r8
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_siw_dbg_qp
	movq	_SIW_WC_LOC_LEN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_DDP_ECODE_UT_INVALID_MSN_NOBUF@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_rx_qp
	movq	_TERM_ERROR_LAYER_DDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DDP_ETYPE_UNTAGGED_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_siw_init_terminate
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMAP_UNTAGGED_QN_SEND,8,3     ## @RDMAP_UNTAGGED_QN_SEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siw: [QP %u]: invalid ddp qn %d for send\n"

	.comm	_DDP_ECODE_UT_INVALID_QN,4,2    ## @DDP_ECODE_UT_INVALID_QN
L_.str.1:                               ## @.str.1
	.asciz	"siw: [QP %u]: send msn: %u != %u\n"

	.comm	_DDP_ECODE_UT_INVALID_MSN_RANGE,4,2 ## @DDP_ECODE_UT_INVALID_MSN_RANGE
L_.str.2:                               ## @.str.2
	.asciz	"siw: [QP %u], send mo: %u != %u\n"

	.comm	_DDP_ECODE_UT_INVALID_MO,4,2    ## @DDP_ECODE_UT_INVALID_MO
L_.str.3:                               ## @.str.3
	.asciz	"receive space short: %d - %d < %d\n"

	.comm	_SIW_WC_LOC_LEN_ERR,4,2         ## @SIW_WC_LOC_LEN_ERR
	.comm	_DDP_ECODE_UT_INVALID_MSN_NOBUF,4,2 ## @DDP_ECODE_UT_INVALID_MSN_NOBUF
	.comm	_TERM_ERROR_LAYER_DDP,4,2       ## @TERM_ERROR_LAYER_DDP
	.comm	_DDP_ETYPE_UNTAGGED_BUF,4,2     ## @DDP_ETYPE_UNTAGGED_BUF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_siw_send_check_ntoh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_send_check_ntoh
_siw_send_check_ntoh:                   ; @siw_send_check_ntoh
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #36]
	bl	_be32_to_cpu
	mov	x22, x0
	ldr	w0, [x19, #32]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x19, #28]
	bl	_be32_to_cpu
	mov	x23, x0
Lloh0:
	adrp	x24, _RDMAP_UNTAGGED_QN_SEND@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RDMAP_UNTAGGED_QN_SEND@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_rx_qp
	bl	_qp_id
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	bl	_pr_warn
Lloh4:
	adrp	x8, _DDP_ECODE_UT_INVALID_QN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DDP_ECODE_UT_INVALID_QN@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, x22
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rx_qp
	bl	_qp_id
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_pr_warn
Lloh8:
	adrp	x8, _DDP_ECODE_UT_INVALID_MSN_RANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DDP_ECODE_UT_INVALID_MSN_RANGE@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	x8, [x20, #32]
	cmp	x8, x21
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_rx_qp
	bl	_qp_id
	mov	x1, x0
	ldr	x8, [x20, #32]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
Lloh12:
	adrp	x8, _DDP_ECODE_UT_INVALID_MO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DDP_ECODE_UT_INVALID_MO@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:
	stp	xzr, xzr, [x20]
	str	xzr, [x20, #16]
	ldr	w0, [x19, #24]
	bl	_be32_to_cpu
	str	x0, [x19, #16]
LBB0_8:
	ldp	x9, x8, [x20, #32]
	ldr	x10, [x19, #8]
	add	x9, x10, x9
	cmp	x8, x9
	cset	w0, lo
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_rx_qp
	ldp	x3, x2, [x20, #32]
	ldr	x4, [x19, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_siw_dbg_qp
Lloh16:
	adrp	x8, _SIW_WC_LOC_LEN_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIW_WC_LOC_LEN_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #48]
Lloh19:
	adrp	x8, _DDP_ECODE_UT_INVALID_MSN_NOBUF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DDP_ECODE_UT_INVALID_MSN_NOBUF@GOTPAGEOFF]
LBB0_10:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_rx_qp
Lloh21:
	adrp	x8, _TERM_ERROR_LAYER_DDP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TERM_ERROR_LAYER_DDP@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _DDP_ETYPE_UNTAGGED_BUF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DDP_ETYPE_UNTAGGED_BUF@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x3, x20
	mov	w4, #0
	bl	_siw_init_terminate
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMAP_UNTAGGED_QN_SEND,8,3     ; @RDMAP_UNTAGGED_QN_SEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siw: [QP %u]: invalid ddp qn %d for send\n"

	.comm	_DDP_ECODE_UT_INVALID_QN,4,2    ; @DDP_ECODE_UT_INVALID_QN
l_.str.1:                               ; @.str.1
	.asciz	"siw: [QP %u]: send msn: %u != %u\n"

	.comm	_DDP_ECODE_UT_INVALID_MSN_RANGE,4,2 ; @DDP_ECODE_UT_INVALID_MSN_RANGE
l_.str.2:                               ; @.str.2
	.asciz	"siw: [QP %u], send mo: %u != %u\n"

	.comm	_DDP_ECODE_UT_INVALID_MO,4,2    ; @DDP_ECODE_UT_INVALID_MO
l_.str.3:                               ; @.str.3
	.asciz	"receive space short: %d - %d < %d\n"

	.comm	_SIW_WC_LOC_LEN_ERR,4,2         ; @SIW_WC_LOC_LEN_ERR
	.comm	_DDP_ECODE_UT_INVALID_MSN_NOBUF,4,2 ; @DDP_ECODE_UT_INVALID_MSN_NOBUF
	.comm	_TERM_ERROR_LAYER_DDP,4,2       ; @TERM_ERROR_LAYER_DDP
	.comm	_DDP_ETYPE_UNTAGGED_BUF,4,2     ; @DDP_ETYPE_UNTAGGED_BUF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_siw_send_check_ntoh
.subsections_via_symbols
