	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_post_msg
_rs_post_msg:                           ## @rs_post_msg
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, -28(%rbp)
	movl	%esi, %edi
	callq	_rs_send_wr_id
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	_RS_OPT_MSG_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_1
## %bb.2:
	leaq	-28(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -40(%rbp)
	movl	$4, -48(%rbp)
	movq	_IBV_WR_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IBV_SEND_INLINE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$1, %edx
	leaq	-56(%rbp), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IBV_WR_RDMA_WRITE_WITH_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_htobe32
	movl	%eax, -80(%rbp)
	xorl	%eax, %eax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rax, -88(%rbp)
	movl	%edx, -112(%rbp)
	movl	%r15d, -96(%rbp)
	movq	%rcx, -104(%rbp)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	-112(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	callq	_ibv_post_send
	movl	%eax, %edi
	callq	_rdma_seterrno
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_OPT_MSG_SEND,4,2            ## @RS_OPT_MSG_SEND
	.comm	_IBV_WR_RDMA_WRITE_WITH_IMM,4,2 ## @IBV_WR_RDMA_WRITE_WITH_IMM
	.comm	_IBV_WR_SEND,4,2                ## @IBV_WR_SEND
	.comm	_IBV_SEND_INLINE,8,3            ## @IBV_SEND_INLINE
	.no_dead_strip	_rs_post_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_post_msg
_rs_post_msg:                           ; @rs_post_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x20, x1
	mov	x19, x0
	stur	w1, [x29, #-36]
	mov	x0, x1
	bl	_rs_send_wr_id
	str	w0, [sp, #80]
	str	xzr, [sp, #72]
	ldr	w8, [x19]
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:
	sub	x8, x29, #36
	str	x8, [sp]
	str	xzr, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _IBV_WR_SEND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IBV_WR_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _IBV_SEND_INLINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IBV_SEND_INLINE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, #1
	mov	x10, sp
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _IBV_WR_RDMA_WRITE_WITH_IMM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IBV_WR_RDMA_WRITE_WITH_IMM@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_htobe32
	mov	x10, #0
	mov	w9, #0
	mov	x8, #0
	str	w0, [sp, #64]
LBB0_3:
	str	x10, [sp, #56]
	str	w9, [sp, #32]
	str	w21, [sp, #48]
	str	x8, [sp, #40]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x1, sp, #32
	add	x2, sp, #24
	bl	_ibv_post_send
	bl	_rdma_seterrno
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_OPT_MSG_SEND,4,2            ; @RS_OPT_MSG_SEND
	.comm	_IBV_WR_RDMA_WRITE_WITH_IMM,4,2 ; @IBV_WR_RDMA_WRITE_WITH_IMM
	.comm	_IBV_WR_SEND,4,2                ; @IBV_WR_SEND
	.comm	_IBV_SEND_INLINE,8,3            ; @IBV_SEND_INLINE
	.no_dead_strip	_rs_post_msg
.subsections_via_symbols
