	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_setup_c2h_data_pdu
_nvmet_setup_c2h_data_pdu:              ## @nvmet_setup_c2h_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	48(%rdi), %r15
	movq	%r14, %rdi
	callq	_nvmet_tcp_hdgst_len
	movq	%rax, %r12
	movq	(%rbx), %rdi
	callq	_nvmet_tcp_ddgst_len
	movq	$0, 40(%rbx)
	movq	_NVMET_TCP_SEND_DATA_PDU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	_nvme_tcp_c2h_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r15)
	movq	_NVME_TCP_F_DATA_LAST@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	$0, 24(%r14)
	je	LBB0_2
## %bb.1:
	movq	_NVME_TCP_F_DATA_SUCCESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	(%rcx), %edx
	movl	%edx, (%r15)
	movl	$56, 4(%r15)
	leaq	56(%r12), %rcx
	movq	%rcx, 16(%r15)
	leaq	(%rax,%r12), %rdi
	addq	$56, %rdi
	addq	16(%rbx), %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	16(%rbx), %rdi
	callq	_cpu_to_le32
	movq	%rax, 40(%r15)
	movq	8(%rbx), %rdi
	callq	_cpu_to_le32
	movq	%rax, 32(%r15)
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.3:
	movq	_NVME_TCP_F_DDGST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_nvmet_tcp_ddgst
LBB0_4:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.6:
	movq	_NVME_TCP_F_HDGST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	$56, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_tcp_hdgst                ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_TCP_SEND_DATA_PDU,4,2    ## @NVMET_TCP_SEND_DATA_PDU
	.comm	_nvme_tcp_c2h_data,4,2          ## @nvme_tcp_c2h_data
	.comm	_NVME_TCP_F_DATA_LAST,4,2       ## @NVME_TCP_F_DATA_LAST
	.comm	_NVME_TCP_F_DATA_SUCCESS,4,2    ## @NVME_TCP_F_DATA_SUCCESS
	.comm	_NVME_TCP_F_DDGST,4,2           ## @NVME_TCP_F_DDGST
	.comm	_NVME_TCP_F_HDGST,4,2           ## @NVME_TCP_F_HDGST
	.no_dead_strip	_nvmet_setup_c2h_data_pdu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_setup_c2h_data_pdu
_nvmet_setup_c2h_data_pdu:              ; @nvmet_setup_c2h_data_pdu
	.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	x21, x0
	ldr	x19, [x0, #48]
	ldr	x20, [x0]
	mov	x0, x20
	bl	_nvmet_tcp_hdgst_len
	mov	x22, x0
	ldr	x0, [x21]
	bl	_nvmet_tcp_ddgst_len
	str	xzr, [x21, #40]
Lloh0:
	adrp	x8, _NVMET_TCP_SEND_DATA_PDU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVMET_TCP_SEND_DATA_PDU@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh3:
	adrp	x8, _nvme_tcp_c2h_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvme_tcp_c2h_data@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh6:
	adrp	x8, _NVME_TCP_F_DATA_LAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_TCP_F_DATA_LAST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
Lloh9:
	adrp	x10, _NVME_TCP_F_DATA_SUCCESS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _NVME_TCP_F_DATA_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
	mov	w9, #56
	stp	w8, w9, [x19]
	add	x8, x22, #56
	str	x8, [x19, #16]
	ldr	x9, [x21, #16]
	add	x8, x0, x8
	add	x0, x8, x9
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	ldp	x0, x8, [x21, #16]
	ldr	w8, [x8]
	str	w8, [x19, #48]
	bl	_cpu_to_le32
	str	x0, [x19, #40]
	ldr	x0, [x21, #8]
	bl	_cpu_to_le32
	str	x0, [x19, #32]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _NVME_TCP_F_DDGST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NVME_TCP_F_DDGST@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x20]
	mov	x1, x21
	bl	_nvmet_tcp_ddgst
LBB0_2:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _NVME_TCP_F_HDGST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NVME_TCP_F_HDGST@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #56
	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
	b	_nvmet_tcp_hdgst
LBB0_4:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_TCP_SEND_DATA_PDU,4,2    ; @NVMET_TCP_SEND_DATA_PDU
	.comm	_nvme_tcp_c2h_data,4,2          ; @nvme_tcp_c2h_data
	.comm	_NVME_TCP_F_DATA_LAST,4,2       ; @NVME_TCP_F_DATA_LAST
	.comm	_NVME_TCP_F_DATA_SUCCESS,4,2    ; @NVME_TCP_F_DATA_SUCCESS
	.comm	_NVME_TCP_F_DDGST,4,2           ; @NVME_TCP_F_DDGST
	.comm	_NVME_TCP_F_HDGST,4,2           ; @NVME_TCP_F_HDGST
	.no_dead_strip	_nvmet_setup_c2h_data_pdu
.subsections_via_symbols
