	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fast_reg_read_chunks
_fast_reg_read_chunks:                  ## @fast_reg_read_chunks
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_svc_rdma_get_frmr
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %eax
	movq	%r14, 80(%r12)
	movq	32(%r15), %rcx
	movl	(%rcx), %ecx
	movq	64(%r12), %rdx
	movl	%ecx, (%rdx)
	movq	24(%r15), %rcx
	movl	(%rcx), %ecx
	movq	56(%r12), %rdx
	movl	%ecx, (%rdx)
	movq	(%r12), %rcx
	leaq	(,%rcx,4), %rdx
	addq	72(%r12), %rdx
	movq	%rdx, 24(%r12)
	movq	%rcx, 8(%r12)
	movq	$0, 48(%r12)
	movl	%eax, 16(%r12)
	movslq	%eax, %rbx
	movdqu	8(%r15), %xmm0
	movq	%rbx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 32(%r12)
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_page_address
	movq	%rax, 16(%r14)
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	%ebx, 4(%r14)
	movl	%ebx, %edi
	callq	_PAGE_ALIGN
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movl	(%rcx), %edi
	movl	(%rax,%rbx,4), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	callq	_ib_dma_map_page
	movq	24(%r14), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	8(%r13), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_atomic_inc
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	24(%r12), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	incq	%rbx
	movslq	8(%r14), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_5
	jmp	LBB0_7
LBB0_3:
	movq	(%r15), %rax
	xorl	%ebx, %ebx
LBB0_7:
	addq	%rbx, (%r12)
	movl	16(%rbp), %r12d
	leaq	(%rax,%rbx,4), %rax
	movq	%rax, 40(%r15)
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	movq	16(%r14), %r9
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	%r12d, %edi
	addq	$8, %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%r9,%rax), %rcx
	movq	%rcx, (%rdx)
	movq	(%r8,%rbx,8), %rcx
	movq	%rcx, -8(%rdx)
	movl	$1, (%rsi,%rbx,8)
	movl	%ebx, 4(%rsi,%rbx,8)
	addq	%rcx, %rax
	incq	%rbx
	addq	$16, %rdx
	cmpq	%rbx, %rdi
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_svc_rdma_fastreg
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_printk
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_svc_rdma_put_frmr
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svcrdma: error fast registering xdr for xprt %p"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_fast_reg_read_chunks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fast_reg_read_chunks
_fast_reg_read_chunks:                  ; @fast_reg_read_chunks
	.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	x27, x7
	mov	x19, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x26, x2
	mov	x25, x1
	mov	x20, x0
	bl	_svc_rdma_get_frmr
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	ldp	x9, x8, [x25, #24]
	ldr	w8, [x8]
	ldp	x11, x10, [x26, #56]
	str	w8, [x10]
	str	x21, [x26, #80]
	ldr	w8, [x9]
	str	w8, [x11]
	ldr	x8, [x26, #72]
	ldr	x9, [x26]
	add	x8, x8, x9, lsl #2
	str	x8, [x26, #24]
	str	x9, [x26, #8]
	str	xzr, [x26, #48]
	str	w27, [x26, #16]
	sxtw	x8, w27
	ldur	q0, [x25, #8]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	str	q0, [x26, #32]
	ldr	x8, [x25]
	ldr	w0, [x8]
	bl	_page_address
Lloh2:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
	str	x0, [x21, #16]
	ldr	w8, [x28]
	str	w8, [x21, #32]
Lloh4:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w8, w27, [x21]
	mov	x0, x27
	bl	_PAGE_ALIGN
Lloh10:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	asr	w8, w0, w8
	str	w8, [x21, #8]
	cmp	w8, #0
	stp	x23, x22, [sp]                  ; 16-byte Folded Spill
	mov	x27, #0
	b.le	LBB0_6
; %bb.3:
	ldr	x8, [x25]
Lloh13:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	w0, [x9]
	lsl	x23, x27, #2
	ldr	w1, [x8, x23]
	ldr	w3, [x22]
	ldr	w4, [x28]
	mov	w2, #0
	bl	_ib_dma_map_page
	mov	x1, x0
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	str	w0, [x8, x23]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_ib_dma_mapping_error
	cbnz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_atomic_inc
	ldr	x8, [x25]
	ldr	w9, [x8, x23]
	ldr	x10, [x26, #24]
	str	w9, [x10, x23]
	add	x27, x27, #1
	ldrsw	x9, [x21, #8]
	cmp	x27, x9
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	x8, [x25]
LBB0_7:
	ldr	x9, [x26]
	add	x9, x9, x27
	str	x9, [x26]
	add	x8, x8, x27, lsl #2
	str	x8, [x25, #40]
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x8, #0
	mov	x9, #0
	ldr	x10, [x24]
	ldr	x11, [x21, #16]
	ldr	x12, [sp]                       ; 8-byte Folded Reload
	ldr	x13, [x12, #8]
	ldr	x12, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x14, [x12]
	mov	w12, w19
	add	x13, x13, #8
	add	x14, x14, #4
	mov	w15, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x16, x11, x9
	str	x16, [x13]
	ldr	x16, [x10, x8, lsl #3]
	stur	x16, [x13, #-8]
	stp	w15, w8, [x14, #-4]
	add	x9, x16, x9
	add	x8, x8, #1
	add	x13, x13, #16
	add	x14, x14, #8
	cmp	x12, x8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_svc_rdma_fastreg
	cbz	w0, LBB0_14
LBB0_12:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printk
	mov	x0, x20
	mov	x1, x21
	bl	_svc_rdma_put_frmr
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_14:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svcrdma: error fast registering xdr for xprt %p"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_fast_reg_read_chunks
.subsections_via_symbols
