	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_post_recv
_rs_post_recv:                          ## @rs_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	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movq	_RS_OPT_MSG_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	callq	_rs_recv_wr_id
	movq	32(%rbx), %rcx
	addq	40(%rbx), %rcx
	movl	4(%rbx), %edx
	movq	_RS_MSG_SIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	imull	%edx, %edi
	movslq	%edi, %rdi
	addq	%rcx, %rdi
	movq	%rdi, -24(%rbp)
	movl	%esi, -32(%rbp)
	movq	24(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	incl	%edx
	xorl	%ecx, %ecx
	cmpl	8(%rbx), %edx
	cmovnel	%edx, %ecx
	movl	%ecx, 4(%rbx)
	movl	$1, %ecx
	leaq	-32(%rbp), %r14
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_rs_recv_wr_id
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rax, -48(%rbp)
	movq	%r14, -56(%rbp)
	movl	%ecx, -64(%rbp)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_ibv_post_recv
	movl	%eax, %edi
	callq	_rdma_seterrno
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_OPT_MSG_SEND,4,2            ## @RS_OPT_MSG_SEND
	.comm	_RS_MSG_SIZE,4,2                ## @RS_MSG_SIZE
	.no_dead_strip	_rs_post_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_post_recv
_rs_post_recv:                          ; @rs_post_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #56]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RS_OPT_MSG_SEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RS_OPT_MSG_SEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_rs_recv_wr_id
	ldp	x9, x8, [x19, #32]
	ldr	x10, [x19, #24]
	add	x8, x9, x8
Lloh3:
	adrp	x9, _RS_MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RS_MSG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w11, w12, [x19, #4]
	mul	w13, w9, w11
	add	x8, x8, w13, sxtw
	str	x8, [sp, #16]
	str	w9, [sp, #8]
	ldr	w8, [x10]
	str	w8, [sp, #12]
	add	w8, w11, #1
	cmp	w8, w12
	csinc	w8, wzr, w11, eq
	str	w8, [x19, #4]
	mov	w8, #1
	add	x9, sp, #8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	bl	_rs_recv_wr_id
	mov	x9, #0
	mov	w8, #0
LBB0_3:
	stp	x9, x0, [sp, #40]
	str	w8, [sp, #32]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	add	x1, sp, #32
	add	x2, sp, #24
	bl	_ibv_post_recv
	bl	_rdma_seterrno
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_OPT_MSG_SEND,4,2            ; @RS_OPT_MSG_SEND
	.comm	_RS_MSG_SIZE,4,2                ; @RS_MSG_SIZE
	.no_dead_strip	_rs_post_recv
.subsections_via_symbols
