	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_send_complete              ## -- Begin function rvt_send_complete
	.p2align	4, 0x90
_rvt_send_complete:                     ## @rvt_send_complete
	.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
	movl	%edx, %r15d
	movq	_ib_rvt_state_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	_RVT_PROCESS_OR_FLUSH_SEND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	48(%rdi), %edi
	callq	_ib_to_rvt
	movq	%rax, %r13
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_trace_rvt_qp_send_completion
	movq	(%r13), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	callq	_rvt_qp_complete_swqe
	cmpq	%r14, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rax, 16(%rbx)
LBB0_3:
	movq	24(%rbx), %rcx
	cmpq	%r14, %rcx
	jne	LBB0_5
## %bb.4:
	movq	%rax, 24(%rbx)
	movq	%rax, %rcx
LBB0_5:
	cmpq	%r14, 32(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	%rax, 32(%rbx)
LBB0_7:
	movq	(%rbx), %rdx
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_10
## %bb.8:
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.9:
	movq	$0, 40(%rbx)
LBB0_10:
	addq	$8, %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_PROCESS_OR_FLUSH_SEND,4,2  ## @RVT_PROCESS_OR_FLUSH_SEND
	.comm	_IB_QPS_SQD,8,3                 ## @IB_QPS_SQD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_send_complete              ; -- Begin function rvt_send_complete
	.p2align	2
_rvt_send_complete:                     ; @rvt_send_complete
	.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
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_PROCESS_OR_FLUSH_SEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RVT_PROCESS_OR_FLUSH_SEND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #48]
	bl	_ib_to_rvt
	mov	x23, x0
	ldr	x20, [x19, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_trace_rvt_qp_send_completion
	ldr	x8, [x23]
	ldr	x9, [x22]
	ldr	w2, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_rvt_qp_complete_swqe
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.2:
	str	x0, [x19, #16]
LBB0_3:
	ldr	x8, [x19, #24]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.4:
	str	x0, [x19, #24]
	mov	x8, x0
LBB0_5:
	ldr	x9, [x19, #32]
	cmp	x9, x20
	b.ne	LBB0_7
; %bb.6:
	str	x0, [x19, #32]
LBB0_7:
	ldr	x9, [x19]
Lloh6:
	adrp	x10, _IB_QPS_SQD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IB_QPS_SQD@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	x0, x8, #0, eq
	b.ne	LBB0_9
; %bb.8:
	str	xzr, [x19, #40]
LBB0_9:
	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 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_PROCESS_OR_FLUSH_SEND,4,2  ; @RVT_PROCESS_OR_FLUSH_SEND
	.comm	_IB_QPS_SQD,8,3                 ; @IB_QPS_SQD
.subsections_via_symbols
