	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_iw_map_fastreg
_rds_iw_map_fastreg:                    ## @rds_iw_map_fastreg
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	leaq	8(%rsi), %r15
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_rds_iw_set_scatterlist
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rds_iw_map_scatterlist
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_2:
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jle	LBB0_3
## %bb.10:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	cmpl	$0, 16(%rbx)
	jle	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	16(%rbx), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_rds_iw_rdma_build_fastreg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	_s_iw_rdma_mr_used@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_iw_stats_inc
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_s_iw_rdma_mr_used,4,2          ## @s_iw_rdma_mr_used
	.no_dead_strip	_rds_iw_map_fastreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_iw_map_fastreg
_rds_iw_map_fastreg:                    ; @rds_iw_map_fastreg
	.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, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	add	x21, x1, #8
	mov	x0, x21
	mov	x1, x2
	mov	x2, x3
	bl	_rds_iw_set_scatterlist
	mov	x0, x19
	mov	x1, x21
	bl	_rds_iw_map_scatterlist
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x20, x0
	mov	x19, #0
	b	LBB0_9
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_4:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	ldr	x9, [x20]
	ldr	x9, [x9]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x19, x10]
	str	w11, [x9, x10]
	add	x8, x8, #1
	ldrsw	x10, [x20, #16]
	cmp	x8, x10
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x21
	bl	_rds_iw_rdma_build_fastreg
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
Lloh3:
	adrp	x8, _s_iw_rdma_mr_used@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_iw_rdma_mr_used@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rds_iw_stats_inc
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_s_iw_rdma_mr_used,4,2          ; @s_iw_rdma_mr_used
	.no_dead_strip	_rds_iw_map_fastreg
.subsections_via_symbols
