	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdma_rw_init_map_wrs
_rdma_rw_init_map_wrs:                  ## @rdma_rw_init_map_wrs
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movl	24(%rbp), %ecx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	%ecx, (%rdx)
	setne	%al
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi,%rax,8), %rsi
	movq	%r14, %rdi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	callq	_DIV_ROUND_UP
	movq	%rax, (%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %r13
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_kcalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r14
	movq	(%r12), %rdi
	movl	(%r15), %edx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	$48, %esi
	callq	_kcalloc
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 16(%rsi)
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movl	24(%rbp), %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movq	%rax, %rsi
	movq	_IB_WR_RDMA_READ@GOTPCREL(%rip), %rax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_IB_WR_RDMA_WRITE@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %rdx
	shlq	$4, %rdx
	movl	%eax, 40(%r15,%rdx)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	%r12, %rax
	movq	%rax, (%r15,%rdx)
	movq	16(%rbp), %rax
	movq	%rax, 8(%r15,%rdx)
	movq	%rsi, 16(%r15,%rdx)
	movq	%r14, 32(%r15,%rdx)
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_sg_dma_address
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	addq	%r13, %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_sg_dma_len
	movq	%rax, %r15
	subq	%r13, %r15
	movq	%r15, 8(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	addq	%r12, %r15
	addq	$24, %r14
	movq	%rbx, %rdi
	callq	_sg_next
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %rbx
	cmpq	$1, %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	24(%rbp), %r13d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%rcx), %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_sg_dma_address
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_sg_dma_len
	movq	%rax, 8(%r14)
	movq	16(%r13), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14)
	addq	%rax, %r15
	addq	$24, %r14
	movq	%rbx, %rdi
	callq	_sg_next
	movq	%rax, %rbx
	decq	%r12
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	24(%rbp), %r13d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	subq	%rcx, %rdi
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	movq	(%rsi), %rax
	cmpq	%rax, %rcx
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rsi), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	addq	%rax, %rcx
	addq	$16, %rcx
	movq	%rcx, 24(%r15,%rdx)
	movq	%rax, %r15
	jmp	LBB0_5
LBB0_17:
	movq	$0, 24(%r15,%rdx)
	jmp	LBB0_18
LBB0_19:
	movq	8(%rsi), %rdi
	callq	_kfree
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_3:
	xorl	%eax, %eax
LBB0_18:
	movq	_RDMA_RW_MULTI_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rsi)
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_WR_RDMA_WRITE,4,2           ## @IB_WR_RDMA_WRITE
	.comm	_IB_WR_RDMA_READ,4,2            ## @IB_WR_RDMA_READ
	.comm	_RDMA_RW_MULTI_WR,4,2           ## @RDMA_RW_MULTI_WR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rdma_rw_init_map_wrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdma_rw_init_map_wrs
_rdma_rw_init_map_wrs:                  ; @rdma_rw_init_map_wrs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x5, x6, [sp, #24]               ; 16-byte Folded Spill
	mov	x21, x4
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w7, [sp, #44]                   ; 4-byte Folded Spill
	cmp	w8, w7
	cset	w8, ne
	ldr	x1, [x1, w8, uxtw #3]
	mov	x0, x3
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	bl	_DIV_ROUND_UP
	str	x0, [x19]
Lloh3:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x23
	mov	w1, #24
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.1:
	mov	x27, x0
	ldr	x0, [x19]
	ldr	w2, [x20]
	mov	w1, #48
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.3:
	mov	x28, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x20, #0
	mov	x26, #0
	mov	w19, #48
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x23
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_min
Lloh5:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, w9
Lloh8:
	adrp	x8, _IB_WR_RDMA_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_WR_RDMA_WRITE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _IB_WR_RDMA_READ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IB_WR_RDMA_READ@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	madd	x9, x20, x19, x28
	str	w8, [x9, #40]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x26, x8
	str	x8, [x9]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	stp	x8, x0, [x9, #8]
	str	x27, [x9, #32]
	mov	w9, #48
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	mov	x0, x25
	bl	_sg_dma_address
	add	x8, x0, x21
	str	x8, [x27]
	mov	x0, x25
	bl	_sg_dma_len
	sub	x8, x0, x21
	add	x26, x8, x26
	str	x8, [x27, #8]
	ldr	x8, [x24, #16]
	ldr	w8, [x8]
	str	w8, [x27, #16]
	add	x27, x27, #24
	mov	x0, x25
	bl	_sg_next
	mov	x25, x0
	subs	x21, x22, #1
	b.eq	LBB0_7
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	bl	_sg_dma_address
	str	x0, [x27]
	mov	x0, x25
	bl	_sg_dma_len
	str	x0, [x27, #8]
	ldr	x8, [x24, #16]
	ldr	w8, [x8]
	str	w8, [x27, #16]
	add	x26, x0, x26
	add	x27, x27, #24
	mov	x0, x25
	bl	_sg_next
	mov	x25, x0
	subs	x21, x21, #1
	b.ne	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x21, #0
	sub	x23, x23, x22
	mov	w9, #48
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x20, #1
	ldr	x0, [x19]
	cmp	x8, x0
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	madd	x9, x20, x9, x28
	ldr	x28, [x19, #16]
	mov	w19, #48
	madd	x10, x8, x19, x28
	add	x10, x10, #16
	str	x10, [x9, #24]
	mov	x20, x8
	b	LBB0_4
LBB0_11:
	mov	w8, #48
	madd	x8, x20, x8, x28
	str	xzr, [x8, #24]
	b	LBB0_15
LBB0_12:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_13:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_14:
	mov	w0, #0
LBB0_15:
Lloh15:
	adrp	x8, _RDMA_RW_MULTI_WR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_RW_MULTI_WR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_16:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_WR_RDMA_WRITE,4,2           ; @IB_WR_RDMA_WRITE
	.comm	_IB_WR_RDMA_READ,4,2            ; @IB_WR_RDMA_READ
	.comm	_RDMA_RW_MULTI_WR,4,2           ; @RDMA_RW_MULTI_WR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rdma_rw_init_map_wrs
.subsections_via_symbols
