	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_post_recv                  ## -- Begin function rvt_post_recv
	.p2align	4, 0x90
_rvt_post_recv:                         ## @rvt_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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_ibqp_to_rvtqp
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	_RVT_FLUSH_RECV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$0, 36(%r15)
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_RVT_POST_RECV_OK@GOTPCREL(%rip), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.4:
	movq	24(%r15), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	addq	$32, %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r14, -72(%rbp)
	movq	_IB_WC_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -84(%rbp)
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	(%r14), %edi
	callq	_ibcq_to_rvtcq
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_rvt_cq_enter
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movl	(%rbx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	ja	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %r12
	incq	%r12
	cmpq	16(%r15), %r12
	movl	$0, %eax
	cmovgeq	%rax, %r12
	movl	12(%r13), %edi
	callq	_READ_ONCE
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rvt_get_rwqe_ptr
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movl	(%rbx), %edx
	movl	%edx, (%rax)
	testl	%edx, %edx
	jle	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rcx
	movq	8(%rax), %rax
	shlq	$2, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rcx,%rsi), %edi
	movl	%edi, 8(%rax,%rsi)
	movl	4(%rcx,%rsi), %edi
	movl	%edi, 4(%rax,%rsi)
	movl	(%rcx,%rsi), %edi
	movl	%edi, (%rax,%rsi)
	addq	$12, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_smp_store_release
	jmp	LBB0_19
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	jmp	LBB0_12
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	jmp	LBB0_12
LBB0_11:
	movq	24(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	subl	(%rdx), %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_FLUSH_RECV,4,2             ## @RVT_FLUSH_RECV
	.comm	_RVT_POST_RECV_OK,4,2           ## @RVT_POST_RECV_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_WC_RECV,4,2                 ## @IB_WC_RECV
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_post_recv                  ; -- Begin function rvt_post_recv
	.p2align	2
_rvt_post_recv:                         ; @rvt_post_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x20, x1
	bl	_ibqp_to_rvtqp
	mov	x21, x0
	ldr	x22, [x0, #24]
Lloh0:
	adrp	x8, _ib_rvt_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_rvt_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _RVT_FLUSH_RECV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RVT_FLUSH_RECV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x21, #36]
	cmp	w9, #0
	cset	w23, eq
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
Lloh6:
	adrp	x9, _RVT_POST_RECV_OK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RVT_POST_RECV_OK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x26, _EINVAL@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
LBB0_5:
	str	x20, [x19]
	ldr	w8, [x26]
	neg	w0, w8
	b	LBB0_23
LBB0_6:
	cbz	x20, LBB0_22
; %bb.7:
	add	x24, x21, #8
	add	x27, x21, #32
Lloh11:
	adrp	x26, _EINVAL@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
Lloh13:
	adrp	x28, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh14:
	ldr	x28, [x28, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x27, [sp, #24]
Lloh15:
	adrp	x8, _IB_WC_RECV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_WC_RECV@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x8]
	ldr	w8, [x20, #16]
	ldr	w9, [x28]
	stp	w8, w10, [sp, #12]
	str	w9, [sp, #8]
	ldr	w0, [x27]
	bl	_ibcq_to_rvtcq
	add	x1, sp, #8
	mov	w2, #1
	bl	_rvt_cq_enter
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #24]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_22
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.hi	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #24]
	add	x0, x8, #8
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	add	x9, x8, #1
	ldr	x10, [x21, #16]
	cmp	x9, x10
	csinc	x25, xzr, x8, ge
	ldr	w0, [x22, #12]
	bl	_READ_ONCE
	cmp	x25, x0
	b.eq	LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x22]
	mov	x0, x24
	bl	_rvt_get_rwqe_ptr
	ldr	w8, [x20, #16]
	str	w8, [x0, #16]
	ldr	w8, [x20]
	str	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x20, #8]
	ldr	x9, [x0, #8]
	cmp	w8, #8
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x11, #0
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	and	x11, x8, #0xfffffff8
	mov	x12, x11
	mov	x13, x9
	mov	x14, x10
LBB0_17:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q0, [x14]
	ldp	q3, q2, [x14, #64]
	ldp	q4, q5, [x14, #32]
	stp	q1, q0, [x13]
	stp	q4, q5, [x13, #32]
	add	x14, x14, #96
	stp	q3, q2, [x13, #64]
	add	x13, x13, #96
	subs	x12, x12, #8
	b.ne	LBB0_17
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x11, x8
	b.eq	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x12, x11, x11, lsl #1
	lsl	x12, x12, #2
	add	x10, x10, x12
	add	x10, x10, #8
	add	x9, x9, x12
	add	x9, x9, #8
	sub	x8, x8, x11
LBB0_20:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	str	w11, [x9]
	ldur	d0, [x10, #-8]
	stur	d0, [x9, #-8]
	add	x10, x10, #12
	add	x9, x9, #12
	subs	x8, x8, #1
	b.ne	LBB0_20
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_smp_store_release
	b	LBB0_9
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	ldr	x8, [x21, #24]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
Lloh18:
	adrp	x26, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x26, [x26, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_FLUSH_RECV,4,2             ; @RVT_FLUSH_RECV
	.comm	_RVT_POST_RECV_OK,4,2           ; @RVT_POST_RECV_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_WC_RECV,4,2                 ; @IB_WC_RECV
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
.subsections_via_symbols
