	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iscsi_iser_recv                ## -- Begin function iscsi_iser_recv
	.p2align	4, 0x90
_iscsi_iser_recv:                       ## @iscsi_iser_recv
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_ntoh24
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%ebx, %eax
	jg	LBB0_2
## %bb.1:
	leal	4(%rax), %ecx
	cmpl	%ebx, %ecx
	jl	LBB0_2
## %bb.4:
	cmpl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_iser_dbg
LBB0_6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_iscsi_complete_pdu
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %esi
	movq	_ISCSI_ERR_NO_SCSI_CMD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_3
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_iser_err
	movq	_ISCSI_ERR_DATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iscsi_conn_failure             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong datalen %d (hdr), %d (IB)\n"

	.comm	_ISCSI_ERR_DATALEN,4,2          ## @ISCSI_ERR_DATALEN
L_.str.1:                               ## @.str.1
	.asciz	"aligned datalen (%d) hdr, %d (IB)\n"

	.comm	_ISCSI_ERR_NO_SCSI_CMD,4,2      ## @ISCSI_ERR_NO_SCSI_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iscsi_iser_recv                ; -- Begin function iscsi_iser_recv
	.p2align	2
_iscsi_iser_recv:                       ; @iscsi_iser_recv
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_ntoh24
	mov	x1, x0
	add	w8, w0, #4
	cmp	w0, w20
	ccmp	w8, w20, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_iser_err
Lloh2:
	adrp	x8, _ISCSI_ERR_DATALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISCSI_ERR_DATALEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_2:
	cmp	w1, w20
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_iser_dbg
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_iscsi_complete_pdu
	cbz	w0, LBB0_7
; %bb.5:
	mov	x1, x0
Lloh7:
	adrp	x8, _ISCSI_ERR_NO_SCSI_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ISCSI_ERR_NO_SCSI_CMD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	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	_iscsi_conn_failure
LBB0_7:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong datalen %d (hdr), %d (IB)\n"

	.comm	_ISCSI_ERR_DATALEN,4,2          ; @ISCSI_ERR_DATALEN
l_.str.1:                               ; @.str.1
	.asciz	"aligned datalen (%d) hdr, %d (IB)\n"

	.comm	_ISCSI_ERR_NO_SCSI_CMD,4,2      ; @ISCSI_ERR_NO_SCSI_CMD
.subsections_via_symbols
