	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_reply_chunks
_send_reply_chunks:                     ## @send_reply_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movq	%rsi, %rdi
	callq	_svc_rdma_get_reply_array
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	movq	(%r14), %rdi
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_4:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
LBB0_5:
	addq	$8, %rdi
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	testl	%ebx, %ebx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movslq	(%rcx), %rax
	cmpq	%rax, %rsi
	jge	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rcx), %r14
	leaq	(%rsi,%rsi,2), %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14,%r13,4), %esi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %r12d
	leaq	(%r14,%r13,4), %rdi
	addq	$8, %rdi
	callq	_get_unaligned
	movl	4(%r14,%r13,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rax, %rcx
	movl	%r12d, %r8d
	callq	_svc_rdma_xdr_encode_array_chunk
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r14,%r13,4), %rax
	addq	$4, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r14d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	movslq	%r13d, %rcx
	addq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_send_write
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	addl	%r14d, %r13d
	addl	%r14d, %r15d
	subl	%r14d, %ebx
	subl	%r14d, %r12d
	jne	LBB0_11
	jmp	LBB0_13
LBB0_17:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_dprintk
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_6:
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_15:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_svc_rdma_xdr_encode_reply_array
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_16:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svcrdma: RDMA_WRITE failed, ret=%d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_reply_chunks
_send_reply_chunks:                     ; @send_reply_chunks
	.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
	mov	x21, x4
	mov	x20, x2
	mov	x22, x0
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w23, [x3]
	mov	x0, x1
	bl	_svc_rdma_get_reply_array
	cbz	x0, LBB0_14
; %bb.1:
	ldr	x8, [x20]
	add	x10, x8, #8
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	w26, [x8]
	cbz	w23, LBB0_12
LBB0_3:
	mov	x19, #0
	mov	w27, #0
	stp	x0, x10, [sp, #16]              ; 16-byte Folded Spill
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x10, x19, [sp, #24]             ; 16-byte Folded Reload
	add	x19, x19, #1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	cbz	w23, LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldrsw	x8, [x0]
	cmp	x19, x8
	b.ge	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x0, #8]
	mov	w9, #12
	madd	x20, x19, x9, x8
	mov	x24, x20
	ldr	w1, [x24], #8
	mov	x0, x23
	mov	x22, x10
	bl	_min
	mov	x28, x0
	mov	x0, x24
	bl	_get_unaligned
	mov	x25, x0
	ldr	w2, [x20, #4]!
	mov	x0, x22
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	mov	x1, x19
	mov	x3, x25
	mov	x4, x28
	bl	_svc_rdma_xdr_encode_array_chunk
	cbz	w28, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x28
	mov	x1, x26
	bl	_min
	mov	x24, x0
	ldr	w2, [x20]
	add	x3, x25, w19, sxtw
	mov	x0, x22
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x4, x27
	mov	x5, x24
	mov	x6, x21
	bl	_send_write
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w19, w24, w19
	add	w27, w24, w27
	sub	w23, w23, w24
	subs	w28, w28, w24
	b.ne	LBB0_8
	b	LBB0_4
LBB0_10:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_11:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w26, w9, w8
	cbnz	w23, LBB0_3
LBB0_12:
	mov	w19, #0
LBB0_13:
	mov	x0, x10
	mov	x1, x19
	bl	_svc_rdma_xdr_encode_reply_array
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
LBB0_14:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svcrdma: RDMA_WRITE failed, ret=%d\n"

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