	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_write_check_ntoh
_siw_write_check_ntoh:                  ## @siw_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	20(%rdi), %edi
	callq	_be32_to_cpu
	movq	%rax, %r15
	movl	16(%r12), %edi
	callq	_be64_to_cpu
	movq	%rax, %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r15, (%r12)
	movq	%r14, 8(%r12)
	movq	$0, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	xorl	%edi, %edi
	cmpq	%r15, (%r12)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_pr_warn
	movq	_DDP_ECODE_T_INVALID_STAG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	xorl	%edi, %edi
	cmpq	%r14, 8(%r12)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	8(%r12), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_pr_warn
	movq	_DDP_ECODE_T_BASE_BOUNDS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_rx_qp
	movq	_TERM_ERROR_LAYER_DDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DDP_ETYPE_TAGGED_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_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siw: [QP %u]: write stag: %08x != %08x\n"

	.comm	_DDP_ECODE_T_INVALID_STAG,4,2   ## @DDP_ECODE_T_INVALID_STAG
L_.str.1:                               ## @.str.1
	.asciz	"siw: [QP %u]: write off: %016llx != %016llx\n"

	.comm	_DDP_ECODE_T_BASE_BOUNDS,4,2    ## @DDP_ECODE_T_BASE_BOUNDS
	.comm	_TERM_ERROR_LAYER_DDP,4,2       ## @TERM_ERROR_LAYER_DDP
	.comm	_DDP_ETYPE_TAGGED_BUF,4,2       ## @DDP_ETYPE_TAGGED_BUF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_siw_write_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_write_check_ntoh
_siw_write_check_ntoh:                  ; @siw_write_check_ntoh
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #20]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x19, #16]
	bl	_be64_to_cpu
	mov	x20, x0
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	stp	x21, x20, [x19]
	str	xzr, [x22]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
	cmp	x8, x21
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rx_qp
	bl	_qp_id
	mov	x1, x0
	ldr	x3, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
Lloh2:
	adrp	x8, _DDP_ECODE_T_INVALID_STAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DDP_ECODE_T_INVALID_STAG@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_rx_qp
	bl	_qp_id
	mov	x1, x0
	ldr	x3, [x19, #8]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_pr_warn
Lloh6:
	adrp	x8, _DDP_ECODE_T_BASE_BOUNDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDP_ECODE_T_BASE_BOUNDS@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_rx_qp
Lloh8:
	adrp	x8, _TERM_ERROR_LAYER_DDP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TERM_ERROR_LAYER_DDP@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DDP_ETYPE_TAGGED_BUF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DDP_ETYPE_TAGGED_BUF@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x3, x20
	mov	w4, #0
	bl	_siw_init_terminate
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siw: [QP %u]: write stag: %08x != %08x\n"

	.comm	_DDP_ECODE_T_INVALID_STAG,4,2   ; @DDP_ECODE_T_INVALID_STAG
l_.str.1:                               ; @.str.1
	.asciz	"siw: [QP %u]: write off: %016llx != %016llx\n"

	.comm	_DDP_ECODE_T_BASE_BOUNDS,4,2    ; @DDP_ECODE_T_BASE_BOUNDS
	.comm	_TERM_ERROR_LAYER_DDP,4,2       ; @TERM_ERROR_LAYER_DDP
	.comm	_DDP_ETYPE_TAGGED_BUF,4,2       ; @DDP_ETYPE_TAGGED_BUF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_siw_write_check_ntoh
.subsections_via_symbols
