	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_prepare_read_cmd
_iser_prepare_read_cmd:                 ## @iser_prepare_read_cmd
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_ISER_DIR_IN@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	(,%rdx,4), %rsi
	addq	16(%r15), %rsi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_iser_dma_map_task_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	16(%r15), %rcx
	movq	(%r13), %rax
	movl	(%rcx,%rax,4), %esi
	cmpl	%r12d, %esi
	jae	LBB0_3
## %bb.2:
	movl	(%r14), %ecx
	movl	8(%r15), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_iser_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_iser_reg_rdma_mem
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_iser_err
	jmp	LBB0_6
LBB0_5:
	movq	(%r15), %r12
	movq	(%r13), %rbx
	movq	_ISER_RSV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r15)
	shlq	$4, %rbx
	movl	8(%r12,%rbx), %edi
	callq	_cpu_to_be32
	movl	%eax, 28(%r15)
	movq	(%r12,%rbx), %rdi
	callq	_cpu_to_be64
	movl	%eax, 24(%r15)
	movl	(%r14), %esi
	movl	8(%r12,%rbx), %edx
	movq	(%r12,%rbx), %rcx
	leaq	L_.str.2(%rip), %rdi
	callq	_iser_dbg
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISER_DIR_IN,8,3                ## @ISER_DIR_IN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Total data length: %ld, less than EDTL: %d, in READ cmd BHS itt: %d, conn: 0x%p\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set up Data-IN RDMA\n"

	.comm	_ISER_RSV,4,2                   ## @ISER_RSV
L_.str.2:                               ## @.str.2
	.asciz	"Cmd itt:%d READ tags RKEY:%#.4X VA:%#llX\n"

	.no_dead_strip	_iser_prepare_read_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_prepare_read_cmd
_iser_prepare_read_cmd:                 ; @iser_prepare_read_cmd
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x23, _ISER_DIR_IN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISER_DIR_IN@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	ldr	x2, [x23]
	add	x1, x8, x2, lsl #2
Lloh2:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_iser_dma_map_task_data
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x1, [x23]
	ldr	w8, [x8, x1, lsl #2]
	cmp	w8, w21
	b.hs	LBB0_3
; %bb.2:
	ldr	w9, [x20]
	ldr	w10, [x19, #8]
	stp	x9, x10, [sp, #16]
	stp	x8, x21, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_iser_reg_rdma_mem
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_err
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x23]
Lloh12:
	adrp	x10, _ISER_RSV@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ISER_RSV@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	ldr	w11, [x19, #32]
	orr	w10, w11, w10
	str	w10, [x19, #32]
	add	x21, x8, x9, lsl #4
	ldr	w0, [x21, #8]
	bl	_cpu_to_be32
	str	w0, [x19, #28]
	ldr	x0, [x21]
	bl	_cpu_to_be64
	str	w0, [x19, #24]
	ldr	w1, [x20]
	ldr	w2, [x21, #8]
	ldr	x3, [x21]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_iser_dbg
LBB0_6:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ISER_DIR_IN,8,3                ; @ISER_DIR_IN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Total data length: %ld, less than EDTL: %d, in READ cmd BHS itt: %d, conn: 0x%p\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set up Data-IN RDMA\n"

	.comm	_ISER_RSV,4,2                   ; @ISER_RSV
l_.str.2:                               ; @.str.2
	.asciz	"Cmd itt:%d READ tags RKEY:%#.4X VA:%#llX\n"

	.no_dead_strip	_iser_prepare_read_cmd
.subsections_via_symbols
