	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_tcp_setup_h2c_data_pdu
_nvme_tcp_setup_h2c_data_pdu:           ## @nvme_tcp_setup_h2c_data_pdu
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	32(%rdi), %r13
	movq	40(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_blk_mq_rq_from_pdu
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_nvme_tcp_hdgst_len
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_nvme_tcp_ddgst_len
	movq	%rax, %r15
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	movq	%rax, (%rbx)
	movq	$0, 24(%rbx)
	addq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movq	16(%rbx), %r8
	movq	(%rbx), %rcx
	movq	8(%rbx), %r9
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	16(%r13), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	movq	8(%rbx), %r8
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movl	%r15d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_nvme_tcp_h2c_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_NVME_TCP_F_DATA_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.6:
	movq	_NVME_TCP_F_HDGST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 48(%r14)
LBB0_7:
	movq	%r15, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.8:
	movq	_NVME_TCP_F_DDGST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 48(%r14)
LBB0_9:
	movl	$56, 24(%r14)
	leaq	56(%r12), %rax
	movq	%rax, 40(%r14)
	leaq	(%rdx,%r12), %rdi
	addq	$56, %rdi
	addq	(%rbx), %rdi
	callq	_cpu_to_le32
	movq	%rax, 32(%r14)
	movl	(%r15), %eax
	movl	%eax, 20(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	8(%rbx), %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movq	(%rbx), %rdi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"req %d r2t len %u exceeded data len %u (%zu sent)\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
L_.str.1:                               ## @.str.1
	.asciz	"req %d unexpected r2t offset %u (expected %zu)\n"

	.comm	_nvme_tcp_h2c_data,4,2          ## @nvme_tcp_h2c_data
	.comm	_NVME_TCP_F_DATA_LAST,4,2       ## @NVME_TCP_F_DATA_LAST
	.comm	_NVME_TCP_F_HDGST,4,2           ## @NVME_TCP_F_HDGST
	.comm	_NVME_TCP_F_DDGST,4,2           ## @NVME_TCP_F_DDGST
	.no_dead_strip	_nvme_tcp_setup_h2c_data_pdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_tcp_setup_h2c_data_pdu
_nvme_tcp_setup_h2c_data_pdu:           ; @nvme_tcp_setup_h2c_data_pdu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldp	x23, x20, [x0, #32]
	bl	_blk_mq_rq_from_pdu
	mov	x22, x0
	mov	x0, x23
	bl	_nvme_tcp_hdgst_len
	mov	x24, x0
	mov	x0, x23
	bl	_nvme_tcp_ddgst_len
	mov	x25, x0
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	str	x0, [x19]
	str	xzr, [x19, #24]
	ldp	x8, x9, [x19, #8]
	add	x8, x8, x0
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	ldr	w2, [x22]
	ldp	x8, x4, [x19, #8]
	ldr	x3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	str	x8, [sp]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	ldr	x8, [x19, #8]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x23, #16]
	ldr	w20, [x8]
	ldr	w22, [x22]
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	mov	x3, x0
	ldr	x4, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
LBB0_4:
	bl	_dev_err
Lloh4:
	adrp	x8, _EPROTO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh7:
	adrp	x8, _nvme_tcp_h2c_data@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nvme_tcp_h2c_data@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
Lloh10:
	adrp	x8, _NVME_TCP_F_DATA_LAST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NVME_TCP_F_DATA_LAST@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w8, w9, [x20, #48]
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_8
; %bb.7:
Lloh13:
	adrp	x9, _NVME_TCP_F_HDGST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NVME_TCP_F_HDGST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #48]
LBB0_8:
	ldr	x9, [x23]
	cbz	x9, LBB0_10
; %bb.9:
Lloh16:
	adrp	x9, _NVME_TCP_F_DDGST@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NVME_TCP_F_DDGST@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #48]
LBB0_10:
	mov	w8, #56
	str	w8, [x20, #24]
	add	x8, x24, #56
	str	x8, [x20, #40]
	ldr	x9, [x19]
	add	x8, x25, x8
	add	x0, x8, x9
	bl	_cpu_to_le32
	str	x0, [x20, #32]
	ldr	w8, [x21]
	ldr	w9, [x22]
	stp	w9, w8, [x20, #16]
	ldr	x0, [x19, #8]
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	ldr	x0, [x19]
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"req %d r2t len %u exceeded data len %u (%zu sent)\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
l_.str.1:                               ; @.str.1
	.asciz	"req %d unexpected r2t offset %u (expected %zu)\n"

	.comm	_nvme_tcp_h2c_data,4,2          ; @nvme_tcp_h2c_data
	.comm	_NVME_TCP_F_DATA_LAST,4,2       ; @NVME_TCP_F_DATA_LAST
	.comm	_NVME_TCP_F_HDGST,4,2           ; @NVME_TCP_F_HDGST
	.comm	_NVME_TCP_F_DDGST,4,2           ; @NVME_TCP_F_DDGST
	.no_dead_strip	_nvme_tcp_setup_h2c_data_pdu
.subsections_via_symbols
