	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_rdma_post_recv             ## -- Begin function svc_rdma_post_recv
	.p2align	4, 0x90
_svc_rdma_post_recv:                    ## @svc_rdma_post_recv
	.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
	movq	%rdi, %r14
	callq	_svc_rdma_get_context
	movq	%rax, %r12
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.2:
	leaq	20(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$2, %r15d
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movslq	4(%r14), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setge	%dil
	callq	_BUG_ON
	xorl	%eax, %eax
	callq	_svc_rdma_get_page
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	24(%r14), %rcx
	movl	(%rcx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ib_dma_map_page
	movl	%eax, %ebx
	movq	24(%r14), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_ib_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
	movq	8(%r12), %rax
	movl	%ebx, (%rax,%r15,8)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rcx, -8(%rax,%r15,8)
	movl	16(%r14), %ecx
	movl	%ecx, -16(%rax,%r15,8)
	incq	%r13
	movl	%r13d, (%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	(%rdx), %ecx
	addq	$3, %r15
	cmpl	(%r14), %ecx
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	movq	8(%r12), %rax
	movl	(%r12), %r13d
LBB0_5:
	movq	$0, -64(%rbp)
	movq	%rax, -72(%rbp)
	movl	%r13d, -88(%rbp)
	movq	%r12, -80(%rbp)
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_svc_xprt_get
	movl	12(%r14), %edi
	leaq	-88(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	callq	_ib_post_recv
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_svc_rdma_unmap_dma
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_svc_rdma_put_context
	movq	%r15, %rdi
	callq	_svc_xprt_put
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_svc_rdma_unmap_dma
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_svc_rdma_put_context
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_rdma_post_recv             ; -- Begin function svc_rdma_post_recv
	.p2align	2
_svc_rdma_post_recv:                    ; @svc_rdma_post_recv
	.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	x20, x0
	bl	_svc_rdma_get_context
	mov	x19, x0
Lloh0:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x0, #24]
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x23, #0
	mov	w26, #0
	add	x21, x20, #20
Lloh2:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20, #4]
	cmp	x23, x8
	cset	w0, ge
	bl	_BUG_ON
	bl	_svc_rdma_get_page
	mov	x1, x0
	ldr	x8, [x19, #16]
	str	x0, [x8, x23, lsl #3]
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	ldr	x3, [x27]
	ldr	w4, [x24]
	mov	w2, #0
	bl	_ib_dma_map_page
	mov	x22, x0
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_ib_dma_mapping_error
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_atomic_inc
	ldr	x8, [x19, #8]
	add	x9, x8, x25
	str	w22, [x9, #16]
	ldr	x10, [x27]
	str	x10, [x9, #8]
	ldr	w10, [x20, #16]
	str	w10, [x9]
	add	x23, x23, #1
	str	w23, [x19]
	ldr	w9, [x27]
	ldr	w10, [x20]
	add	x25, x25, #24
	add	w26, w26, w9
	cmp	w26, w10
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	w23, [x19]
LBB0_5:
	stp	x8, xzr, [sp, #32]
	str	w23, [sp, #16]
	add	x21, x20, #8
	str	x19, [sp, #24]
	mov	x0, x21
	bl	_svc_xprt_get
	ldr	w0, [x20, #12]
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_ib_post_recv
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_svc_rdma_unmap_dma
	mov	x0, x19
	mov	w1, #1
	bl	_svc_rdma_put_context
	mov	x0, x21
	bl	_svc_xprt_put
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_svc_rdma_unmap_dma
	mov	x0, x19
	mov	w1, #1
	bl	_svc_rdma_put_context
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
