	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_tcp_handle_icreq
_nvmet_tcp_handle_icreq:                ## @nvmet_tcp_handle_icreq
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movl	108(%rdi), %edi
	callq	_le32_to_cpu
	cmpl	$24, %eax
	je	LBB0_2
## %bb.1:
	movl	108(%r14), %edi
	callq	_le32_to_cpu
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r14, %rdi
	callq	_nvmet_tcp_fatal_error
LBB0_2:
	movq	88(%r14), %rdx
	movq	_NVME_TCP_PFV_1_0@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdx
	jne	LBB0_3
## %bb.5:
	movq	96(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movl	16(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	movl	16(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EPROTO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	104(%r14), %eax
	movq	_NVME_TCP_HDR_DIGEST_ENABLE@GOTPCREL(%rip), %r15
	xorl	%ecx, %ecx
	movl	(%r15), %edx
	andl	%eax, %edx
	setne	%cl
	movl	%ecx, (%r14)
	movq	_NVME_TCP_DATA_DIGEST_ENABLE@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	andl	(%r12), %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	orl	%edx, %eax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_nvmet_tcp_alloc_crypto
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
LBB0_9:
	leaq	24(%r14), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_nvme_tcp_icresp@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	movl	$64, 56(%r14)
	movq	$0, 72(%r14)
	movl	$64, %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%r14)
	movq	(%r13), %rdi
	callq	_cpu_to_le16
	movl	%eax, 48(%r14)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le32
	movq	%rax, 40(%r14)
	movq	$0, 32(%r14)
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.10:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
LBB0_11:
	cmpl	$0, 4(%r14)
	je	LBB0_13
## %bb.12:
	movl	(%r12), %eax
	orl	%eax, (%rbx)
LBB0_13:
	movq	%rbx, -56(%rbp)
	movl	$64, -64(%rbp)
	movl	12(%r14), %edi
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	$1, %ecx
	movl	$64, %r8d
	callq	_kernel_sendmsg
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	movq	_NVMET_TCP_Q_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_nvmet_prepare_receive_pdu
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_15:
	movl	%eax, %ebx
	cmpl	$0, (%r14)
	jne	LBB0_17
## %bb.16:
	cmpl	$0, 4(%r14)
	je	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	callq	_nvmet_tcp_free_crypto
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad nvme-tcp pdu length (%d)\n"

	.comm	_NVME_TCP_PFV_1_0,8,3           ## @NVME_TCP_PFV_1_0
L_.str.1:                               ## @.str.1
	.asciz	"queue %d: bad pfv %d\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
L_.str.2:                               ## @.str.2
	.asciz	"queue %d: unsupported hpda %d\n"

	.comm	_NVME_TCP_HDR_DIGEST_ENABLE,4,2 ## @NVME_TCP_HDR_DIGEST_ENABLE
	.comm	_NVME_TCP_DATA_DIGEST_ENABLE,4,2 ## @NVME_TCP_DATA_DIGEST_ENABLE
	.comm	_nvme_tcp_icresp,4,2            ## @nvme_tcp_icresp
	.comm	_NVMET_TCP_Q_LIVE,4,2           ## @NVMET_TCP_Q_LIVE
	.no_dead_strip	_nvmet_tcp_handle_icreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_tcp_handle_icreq
_nvmet_tcp_handle_icreq:                ; @nvmet_tcp_handle_icreq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	wzr, [sp, #24]
	ldr	w0, [x0, #108]
	bl	_le32_to_cpu
	cmp	w0, #24
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #108]
	bl	_le32_to_cpu
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_nvmet_tcp_fatal_error
LBB0_2:
	ldr	x8, [x19, #88]
Lloh2:
	adrp	x23, _NVME_TCP_PFV_1_0@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NVME_TCP_PFV_1_0@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	w1, [x19, #16]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w1, [x19, #16]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_pr_err
Lloh8:
	adrp	x8, _EPROTO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_8:
Lloh11:
	adrp	x22, _NVME_TCP_HDR_DIGEST_ENABLE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _NVME_TCP_HDR_DIGEST_ENABLE@GOTPAGEOFF]
	ldr	w8, [x19, #104]
	ldr	w9, [x22]
	ands	w9, w9, w8
	cset	w10, ne
Lloh13:
	adrp	x21, _NVME_TCP_DATA_DIGEST_ENABLE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _NVME_TCP_DATA_DIGEST_ENABLE@GOTPAGEOFF]
	str	w10, [x19]
	ldr	w10, [x21]
	ands	w8, w10, w8
	cset	w10, ne
	str	w10, [x19, #4]
	orr	w8, w9, w8
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_nvmet_tcp_alloc_crypto
	mov	x20, x0
	cbnz	w0, LBB0_7
LBB0_10:
	add	x20, x19, #24
	mov	w24, #64
	mov	x0, x20
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh15:
	adrp	x8, _nvme_tcp_icresp@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nvme_tcp_icresp@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	str	w24, [x19, #56]
	str	xzr, [x19, #72]
	mov	w0, #64
	bl	_cpu_to_le32
	str	x0, [x19, #64]
	ldr	x0, [x23]
	bl	_cpu_to_le16
	str	w0, [x19, #48]
	mov	w0, #65535
	bl	_cpu_to_le32
	stp	xzr, x0, [x19, #32]
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.11:
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_12:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_14
; %bb.13:
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_14:
	str	x20, [sp, #16]
	mov	w8, #64
	str	w8, [sp, #8]
	ldr	w0, [x19, #12]
	add	x1, sp, #24
	add	x2, sp, #8
	mov	w3, #1
	mov	w4, #64
	bl	_kernel_sendmsg
	tbnz	w0, #31, LBB0_16
; %bb.15:
Lloh18:
	adrp	x8, _NVMET_TCP_Q_LIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NVMET_TCP_Q_LIVE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_nvmet_prepare_receive_pdu
	mov	w20, #0
	b	LBB0_7
LBB0_16:
	mov	x20, x0
	ldr	w8, [x19]
	cbnz	w8, LBB0_18
; %bb.17:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
LBB0_18:
	mov	x0, x19
	bl	_nvmet_tcp_free_crypto
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad nvme-tcp pdu length (%d)\n"

	.comm	_NVME_TCP_PFV_1_0,8,3           ; @NVME_TCP_PFV_1_0
l_.str.1:                               ; @.str.1
	.asciz	"queue %d: bad pfv %d\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
l_.str.2:                               ; @.str.2
	.asciz	"queue %d: unsupported hpda %d\n"

	.comm	_NVME_TCP_HDR_DIGEST_ENABLE,4,2 ; @NVME_TCP_HDR_DIGEST_ENABLE
	.comm	_NVME_TCP_DATA_DIGEST_ENABLE,4,2 ; @NVME_TCP_DATA_DIGEST_ENABLE
	.comm	_nvme_tcp_icresp,4,2            ; @nvme_tcp_icresp
	.comm	_NVMET_TCP_Q_LIVE,4,2           ; @NVMET_TCP_Q_LIVE
	.no_dead_strip	_nvmet_tcp_handle_icreq
.subsections_via_symbols
