	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_post_send                  ## -- Begin function rvt_post_send
	.p2align	4, 0x90
_rvt_post_send:                         ## @rvt_post_send
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ibqp_to_rvtqp
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_ib_to_rvt
	movq	%rax, %r12
	leaq	16(%r15), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	_RVT_POST_SEND_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%edi, %edi
	andl	(%rax,%rcx,4), %edx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r15), %rbx
	movl	20(%r15), %edi
	callq	_READ_ONCE
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	sete	%al
	movl	%eax, -44(%rbp)
	jmp	LBB0_5
LBB0_4:
	movl	$0, -44(%rbp)
	testq	%r14, %r14
	je	LBB0_15
LBB0_5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_rvt_post_one_wr
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	movq	(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.10:
	cmpl	$1, %r12d
	jne	LBB0_13
## %bb.11:
	cmpl	$0, -44(%rbp)
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	jmp	LBB0_14
LBB0_15:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_rvt_state_ops,8,3           ## @ib_rvt_state_ops
	.comm	_RVT_POST_SEND_OK,4,2           ## @RVT_POST_SEND_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_post_send                  ; -- Begin function rvt_post_send
	.p2align	2
_rvt_post_send:                         ; @rvt_post_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_ibqp_to_rvtqp
	mov	x19, x0
	ldr	w0, [x20]
	bl	_ib_to_rvt
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	mov	x1, #0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _ib_rvt_state_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_rvt_state_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _RVT_POST_SEND_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RVT_POST_SEND_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_2:
	ldr	x24, [x19, #8]
	ldr	w0, [x19, #20]
	bl	_READ_ONCE
	cmp	x24, x0
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w8, eq
	str	w8, [sp, #12]
	b	LBB0_5
LBB0_4:
	str	wzr, [sp, #12]
	cbz	x23, LBB0_15
LBB0_5:
	mov	w25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x23
	bl	_rvt_post_one_wr
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #1
	ldr	x23, [x23]
	cbnz	x23, LBB0_6
	b	LBB0_9
LBB0_8:
	str	x23, [x22]
LBB0_9:
	mov	x0, x21
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	cbz	w25, LBB0_16
; %bb.10:
	cmp	w25, #1
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.12:
	ldr	x8, [x20, #8]
	b	LBB0_14
LBB0_13:
	ldr	x8, [x20]
LBB0_14:
	mov	x0, x19
	blr	x8
	b	LBB0_16
LBB0_15:
	mov	x0, x21
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	w24, #0
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_rvt_state_ops,8,3           ; @ib_rvt_state_ops
	.comm	_RVT_POST_SEND_OK,4,2           ; @RVT_POST_SEND_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
