	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_try_send_data
_nvmet_try_send_data:                   ## @nvmet_try_send_data
	.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	%rdi, %r14
	movq	16(%rdi), %r15
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %r12
	movq	_MSG_MORE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdi, %rdi
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_sg_page
	movq	32(%r14), %rcx
	movl	(%rcx), %ecx
	movl	(%r14), %edx
	subl	%edx, %ecx
	movq	16(%r14), %rsi
	movl	24(%rsi), %edi
	movl	(%r13), %r8d
	orl	(%r12), %r8d
	movq	%rax, %rsi
	callq	_kernel_sendpage
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %eax
	addl	%ebx, %eax
	movl	%eax, (%r14)
	addl	%ebx, 4(%r14)
	movq	32(%r14), %rdi
	cmpl	(%rdi), %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_sg_next
	movq	%rax, %rdi
	movq	%rax, 32(%r14)
	movl	$0, (%r14)
	jmp	LBB0_5
LBB0_6:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.7:
	movq	_NVMET_TCP_SEND_DDGST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	$0, (%r14)
	jmp	LBB0_11
LBB0_8:
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.9:
	movq	16(%r14), %rax
	movq	$0, 8(%rax)
	movq	%r14, %rdi
	callq	_nvmet_tcp_put_cmd
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_nvmet_setup_response_pdu
LBB0_11:
	movl	$1, %ebx
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.12:
	movl	12(%r14), %edi
	callq	_kfree
	movl	8(%r14), %edi
	callq	_sgl_free
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
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.comm	_MSG_MORE,4,2                   ## @MSG_MORE
	.comm	_NVMET_TCP_SEND_DDGST,4,2       ## @NVMET_TCP_SEND_DDGST
	.no_dead_strip	_nvmet_try_send_data
.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_data
_nvmet_try_send_data:                   ; @nvmet_try_send_data
	.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	x19, x0
	ldr	x20, [x0, #16]
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x21, _MSG_DONTWAIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MSG_MORE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MSG_MORE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_sg_page
	mov	x1, x0
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	ldr	w2, [x19]
	sub	w3, w8, w2
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #24]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w4, w9, w8
	bl	_kernel_sendpage
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	d0, [x19]
	dup.2s	v1, w0
	add.2s	v0, v0, v1
	str	d0, [x19]
	ldr	x0, [x19, #32]
	ldr	w8, [x0]
	fmov	w9, s0
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_sg_next
	str	x0, [x19, #32]
	str	wzr, [x19]
	b	LBB0_2
LBB0_6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _NVMET_TCP_SEND_DDGST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVMET_TCP_SEND_DDGST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	wzr, [x19]
	ldr	x8, [x20]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	x8, [x19, #16]
	str	xzr, [x8, #8]
	mov	x0, x19
	bl	_nvmet_tcp_put_cmd
	ldr	x8, [x20]
	cbz	x8, LBB0_11
LBB0_10:
	ldr	w0, [x19, #12]
	bl	_kfree
	ldr	w0, [x19, #8]
	bl	_sgl_free
LBB0_11:
	mov	w0, #1
LBB0_12:
	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
LBB0_13:
	mov	x0, x19
	bl	_nvmet_setup_response_pdu
	ldr	x8, [x20]
	cbnz	x8, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.comm	_MSG_MORE,4,2                   ; @MSG_MORE
	.comm	_NVMET_TCP_SEND_DDGST,4,2       ; @NVMET_TCP_SEND_DDGST
	.no_dead_strip	_nvmet_try_send_data
.subsections_via_symbols
