	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_tcp_try_recv_data
_nvmet_tcp_try_recv_data:               ## @nvmet_tcp_try_recv_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	leaq	32(%rbx), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_msg_data_left
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %edx
	movq	%r15, %rsi
	callq	_sock_recvmsg
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%eax, (%rbx)
	movl	%eax, %eax
	addq	%rax, 8(%rbx)
	jmp	LBB0_1
LBB0_4:
	movq	%rbx, %rdi
	callq	_nvmet_tcp_unmap_pdu_iovec
	movq	_NVMET_TCP_F_INIT_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_9
## %bb.5:
	movq	8(%rbx), %rax
	cmpq	24(%rbx), %rax
	jne	LBB0_9
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_nvmet_tcp_prep_recv_ddgst
	jmp	LBB0_10
LBB0_8:
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_nvmet_req_execute
LBB0_9:
	movq	%r14, %rdi
	callq	_nvmet_prepare_receive_pdu
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_TCP_F_INIT_FAILED,4,2    ## @NVMET_TCP_F_INIT_FAILED
	.no_dead_strip	_nvmet_tcp_try_recv_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_tcp_try_recv_data
_nvmet_tcp_try_recv_data:               ; @nvmet_tcp_try_recv_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, #8]
	add	x21, x20, #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_msg_data_left
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
	ldr	w2, [x20, #32]
	mov	x1, x21
	bl	_sock_recvmsg
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	ldr	x8, [x20, #8]
	add	x8, x8, w0, uxtw
	str	x8, [x20, #8]
	b	LBB0_1
LBB0_4:
	mov	x0, x20
	bl	_nvmet_tcp_unmap_pdu_iovec
	ldr	w8, [x20, #16]
Lloh0:
	adrp	x9, _NVMET_TCP_F_INIT_FAILED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVMET_TCP_F_INIT_FAILED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	ldr	x8, [x0, #24]!
	ldur	x9, [x0, #-16]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_nvmet_tcp_prep_recv_ddgst
	b	LBB0_10
LBB0_8:
	bl	_nvmet_req_execute
LBB0_9:
	mov	x0, x19
	bl	_nvmet_prepare_receive_pdu
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_TCP_F_INIT_FAILED,4,2    ; @NVMET_TCP_F_INIT_FAILED
	.no_dead_strip	_nvmet_tcp_try_recv_data
.subsections_via_symbols
