	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_try_send_ddgst
_nvmet_try_send_ddgst:                  ## @nvmet_try_send_ddgst
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_NVME_TCP_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movslq	(%rdi), %rax
	subl	%eax, %r8d
	movl	%r8d, -48(%rbp)
	leaq	(%rdi,%rax,4), %rax
	addq	$16, %rax
	movq	%rax, -40(%rbp)
	movl	16(%r15), %edi
	leaq	-32(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	$1, %ecx
	callq	_kernel_sendmsg
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	addl	%ebx, (%r14)
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	movq	$0, (%rax)
	movq	%r14, %rdi
	callq	_nvmet_tcp_put_cmd
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_nvmet_setup_response_pdu
LBB0_4:
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_NVME_TCP_DIGEST_LENGTH,4,2     ## @NVME_TCP_DIGEST_LENGTH
	.no_dead_strip	_nvmet_try_send_ddgst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_try_send_ddgst
_nvmet_try_send_ddgst:                  ; @nvmet_try_send_ddgst
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _NVME_TCP_DIGEST_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_TCP_DIGEST_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldrsw	x9, [x0]
	sub	w4, w8, w9
	str	w4, [sp, #8]
	add	x8, x0, x9, lsl #2
	add	x8, x8, #16
	str	x8, [sp, #16]
	ldr	w0, [x21, #16]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	w3, #1
	bl	_kernel_sendmsg
	mov	x20, x0
	cmp	w0, #1
	cset	w0, lt
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	mov	x0, x19
	bl	_nvmet_tcp_put_cmd
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_nvmet_setup_response_pdu
LBB0_4:
	mov	w20, #1
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_NVME_TCP_DIGEST_LENGTH,4,2     ; @NVME_TCP_DIGEST_LENGTH
	.no_dead_strip	_nvmet_try_send_ddgst
.subsections_via_symbols
