	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_rresp_check_ntoh
_siw_rresp_check_ntoh:                  ## @siw_rresp_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, %r14
	movq	%rdi, %r13
	movl	28(%rdi), %edi
	callq	_be32_to_cpu
	movq	%rax, %r12
	movl	24(%r13), %edi
	callq	_be64_to_cpu
	movq	%rax, %r15
	cmpq	$0, 16(%r14)
	je	LBB0_1
## %bb.2:
	movq	40(%r14), %rcx
	movq	(%rcx), %rax
	movups	(%rcx), %xmm0
	movups	%xmm0, (%r13)
	movq	$0, 8(%r14)
	jmp	LBB0_3
LBB0_1:
	movq	(%r13), %rax
LBB0_3:
	xorl	%edi, %edi
	cmpq	%r12, %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	(%r13), %rcx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_pr_warn
	movq	_DDP_ECODE_T_INVALID_STAG@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	xorl	%edi, %edi
	cmpq	%r15, 8(%r13)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	8(%r13), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	jmp	LBB0_11
LBB0_7:
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	movl	$0, %edi
	jne	LBB0_9
## %bb.8:
	movq	16(%r13), %rax
	addq	24(%r14), %rax
	xorl	%edi, %edi
	cmpq	32(%r14), %rax
	setne	%dil
LBB0_9:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	_rx_qp
	movl	%eax, %edi
	callq	_qp_id
	movq	16(%r13), %rdx
	addq	24(%r14), %rdx
	movq	32(%r14), %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
LBB0_11:
	callq	_pr_warn
	movq	_DDP_ECODE_T_BASE_BOUNDS@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r14d
	movq	%r13, %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_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"siw: [QP %u]: rresp 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]: rresp off: %016llx != %016llx\n"

	.comm	_DDP_ECODE_T_BASE_BOUNDS,4,2    ## @DDP_ECODE_T_BASE_BOUNDS
L_.str.2:                               ## @.str.2
	.asciz	"siw: [QP %u]: rresp len: %d != %d\n"

	.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_rresp_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_rresp_check_ntoh
_siw_rresp_check_ntoh:                  ; @siw_rresp_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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #28]
	bl	_be32_to_cpu
	mov	x22, x0
	ldr	w0, [x19, #24]
	bl	_be64_to_cpu
	mov	x21, x0
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #40]
	ldr	q0, [x8]
	str	q0, [x19]
	str	xzr, [x20, #8]
	fmov	x8, d0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
LBB0_3:
	cmp	x8, x22
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	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, x22
	bl	_pr_warn
Lloh2:
	adrp	x8, _DDP_ECODE_T_INVALID_STAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DDP_ECODE_T_INVALID_STAG@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	ldr	x8, [x19, #8]
	cmp	x8, x21
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	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, x21
	b	LBB0_11
LBB0_7:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_10
	b	LBB0_13
LBB0_9:
	ldr	x8, [x19, #16]
	ldp	x9, x10, [x20, #24]
	add	x8, x8, x9
	cmp	x8, x10
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_rx_qp
	bl	_qp_id
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldp	x9, x3, [x20, #24]
	add	x2, x8, x9
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_pr_warn
Lloh8:
	adrp	x8, _DDP_ECODE_T_BASE_BOUNDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DDP_ECODE_T_BASE_BOUNDS@GOTPAGEOFF]
LBB0_12:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_rx_qp
Lloh10:
	adrp	x8, _TERM_ERROR_LAYER_DDP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TERM_ERROR_LAYER_DDP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _DDP_ETYPE_TAGGED_BUF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DDP_ETYPE_TAGGED_BUF@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, x20
	mov	w4, #0
	bl	_siw_init_terminate
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"siw: [QP %u]: rresp 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]: rresp off: %016llx != %016llx\n"

	.comm	_DDP_ECODE_T_BASE_BOUNDS,4,2    ; @DDP_ECODE_T_BASE_BOUNDS
l_.str.2:                               ; @.str.2
	.asciz	"siw: [QP %u]: rresp len: %d != %d\n"

	.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_rresp_check_ntoh
.subsections_via_symbols
