	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_reg_rdma_mem              ## -- Begin function iser_reg_rdma_mem
	.p2align	4, 0x90
_iser_reg_rdma_mem:                     ## @iser_reg_rdma_mem
	.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	$56, %rsp
	.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	32(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rsi
	movq	16(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rbx
	movl	%r12d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %r15
	leaq	(%rbx,%r15,8), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_iser_data_buf_aligned_len
	cmpl	(%rbx,%r15,8), %eax
	jne	LBB0_3
## %bb.1:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 8(%rcx)
	jne	LBB0_7
## %bb.2:
	cmpl	$2, %eax
	jl	LBB0_7
LBB0_3:
	incl	(%r13)
	movl	16(%rbx,%r15,8), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_iser_warn
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iser_data_buf_dump
	movq	%r14, %rdi
	callq	_iser_dma_unmap_task_data
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_iser_start_rdma_unaligned_sg
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_5:
	movq	8(%r14), %rax
	leaq	(%rax,%r15,8), %r13
	movl	(%rax,%r15,8), %eax
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_8:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,4), %rbx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rbx,8), %r12
	cmpl	$1, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	8(%r13), %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rcx,%rbx,8)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rcx, %r13
	callq	_ib_sg_dma_len
	movq	%rax, (%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ib_sg_dma_address
	movq	%rax, 8(%r13,%rbx,8)
	movq	$0, 32(%r13,%rbx,8)
	movl	16(%r13,%rbx,8), %edx
	movl	24(%r13,%rbx,8), %esi
	movq	(%r12), %r8
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rcx
	callq	_iser_dbg
	jmp	LBB0_15
LBB0_10:
	movq	(%r15), %rsi
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_iser_page_vec_build
	movq	(%r15), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_iser_reg_page_vec
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movl	%eax, %r12d
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_16
## %bb.12:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_iser_data_buf_dump
	movl	(%r13), %ebx
	movl	(%r14), %edi
	callq	_ntoh24
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_iser_err
	movq	(%r15), %rax
	movl	16(%rax), %ecx
	movl	20(%rax), %esi
	movslq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_iser_err
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.13:
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_iser_err
	incq	%rbx
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_14
	jmp	LBB0_16
LBB0_15:
	xorl	%r12d, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdma alignment violation (%d/%d aligned) or FMR not supported\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"PHYSICAL Mem.register: lkey: 0x%08X rkey: 0x%08X  va: 0x%08lX sz: %ld]\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"mem->dma_nents = %d (dlength = 0x%x)\n"

L_.str.3:                               ## @.str.3
	.asciz	"page_vec: data_size = 0x%x, length = %d, offset = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"page_vec[%d] = 0x%llx\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iser_reg_rdma_mem              ; -- Begin function iser_reg_rdma_mem
	.p2align	2
_iser_reg_rdma_mem:                     ; @iser_reg_rdma_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x21, x0
	ldp	x28, x8, [x0, #24]
	ldp	x19, x27, [x8]
	ldr	x24, [x19, #16]
	ldr	x20, [x24, #8]
	mov	w25, w1
	mov	w8, #24
	ldr	x26, [x0, #16]
	umaddl	x23, w1, w8, x28
	mov	x0, x23
	mov	x1, x20
	bl	_iser_data_buf_aligned_len
	mov	x1, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	ccmp	w1, #2, #8, eq
	b.lt	LBB0_5
LBB0_2:
	ldr	w8, [x27]
	add	w8, w8, #1
	str	w8, [x27]
	mov	w8, #24
	madd	x8, x25, x8, x28
	ldr	w2, [x8, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iser_warn
	mov	x0, x23
	mov	x1, x20
	bl	_iser_data_buf_dump
	mov	x0, x21
	bl	_iser_dma_unmap_task_data
	mov	x0, x21
	mov	x1, x22
	bl	_iser_start_rdma_unaligned_sg
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_4:
	ldr	x8, [x21, #8]
	mov	w9, #24
	madd	x23, x25, x9, x8
	ldr	w1, [x23]
LBB0_5:
	mov	w8, #40
	umaddl	x22, w22, w8, x26
	cmp	w1, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	x19, [x23, #8]
	ldr	x8, [x24]
	mov	w9, #40
	madd	x21, x25, x9, x26
	ldr	q0, [x8]
	str	q0, [x21, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_ib_sg_dma_len
	str	x0, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_ib_sg_dma_address
	mov	x3, x0
	str	x0, [x21, #8]
	str	xzr, [x21, #32]
	ldr	w1, [x21, #24]
	ldr	w2, [x21, #16]
	ldr	x4, [x22]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_iser_dbg
	mov	w22, #0
	b	LBB0_12
LBB0_7:
	ldr	x1, [x19]
	mov	x0, x23
	mov	x2, x20
	bl	_iser_page_vec_build
	ldr	x1, [x19]
	mov	x0, x19
	mov	x2, x22
	bl	_iser_reg_page_vec
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x23
	mov	x1, x20
	bl	_iser_data_buf_dump
	ldr	w20, [x23]
	ldr	w0, [x21]
	bl	_ntoh24
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_iser_err
	ldr	x8, [x19]
	ldrsw	x2, [x8]
	ldp	w8, w1, [x8, #16]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_iser_err
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x20, #0
Lloh14:
	adrp	x21, l_.str.4@PAGE
Lloh15:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x2, [x8, x20, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_iser_err
	add	x20, x20, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	cmp	x20, x9
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdma alignment violation (%d/%d aligned) or FMR not supported\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"PHYSICAL Mem.register: lkey: 0x%08X rkey: 0x%08X  va: 0x%08lX sz: %ld]\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"mem->dma_nents = %d (dlength = 0x%x)\n"

l_.str.3:                               ; @.str.3
	.asciz	"page_vec: data_size = 0x%x, length = %d, offset = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"page_vec[%d] = 0x%llx\n"

.subsections_via_symbols
