	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_post_srq_recv              ## -- Begin function rvt_post_srq_recv
	.p2align	4, 0x90
_rvt_post_srq_recv:                     ## @rvt_post_srq_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	callq	_ibsrq_to_rvtsrq
	testq	%r12, %r12
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_smp_store_release
	movq	16(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	(%r12), %eax
	cmpl	(%r15), %eax
	ja	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %r13
	movq	(%r13), %rbx
	incq	%rbx
	cmpq	8(%r15), %rbx
	cmovgeq	%r14, %rbx
	movl	12(%r13), %edi
	callq	_READ_ONCE
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_rvt_get_rwqe_ptr
	movl	16(%r12), %ecx
	movl	%ecx, 16(%rax)
	movl	(%r12), %edx
	movl	%edx, (%rax)
	testl	%edx, %edx
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rcx
	movq	8(%rax), %rax
	shlq	$2, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 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_9
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	16(%r15), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_post_srq_recv              ; -- Begin function rvt_post_srq_recv
	.p2align	2
_rvt_post_srq_recv:                     ; @rvt_post_srq_recv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_ibsrq_to_rvtsrq
	cbz	x20, LBB0_13
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_smp_store_release
	ldr	x8, [x21, #16]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
	ldr	x20, [x20, #24]
	cbz	x20, LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.hi	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #16]
	add	x0, x8, #8
	bl	_spin_lock_irqsave
	ldp	x8, x22, [x21, #8]
	ldr	x9, [x22]
	add	x10, x9, #1
	cmp	x10, x8
	csinc	x23, xzr, x9, ge
	ldr	w0, [x22, #12]
	bl	_READ_ONCE
	cmp	x23, x0
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x22]
	mov	x0, x21
	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_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #8]
	ldr	x9, [x0, #8]
	cmp	w8, #8
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	x11, x8, #0xfffffff8
	mov	x12, x11
	mov	x13, x9
	mov	x14, x10
LBB0_9:                                 ;   Parent Loop BB0_3 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_9
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x11, x8
	b.eq	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 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_12:                                ;   Parent Loop BB0_3 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_12
	b	LBB0_2
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	ldr	x8, [x21, #16]
	add	x0, x8, #8
	bl	_spin_unlock_irqrestore
Lloh2:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	str	x20, [x19]
	ldr	w8, [x24]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
