	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_rc_completion
_do_rc_completion:                      ## @do_rc_completion
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	movl	68(%rbx), %esi
	callq	_qib_cmp24
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movl	64(%rbx), %esi
	movl	68(%rbx), %edi
	callq	_qib_cmp24
	testq	%rax, %rax
	jle	LBB0_3
LBB0_2:
	movq	_ib_qib_wc_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rvt_qp_complete_swqe
	jmp	LBB0_4
LBB0_3:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
LBB0_4:
	movl	56(%rbx), %eax
	movl	%eax, 60(%rbx)
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_update_last_psn
	movq	(%rbx), %rcx
	leaq	1(%rcx), %rdx
	xorl	%esi, %esi
	cmpq	16(%rbx), %rdx
	movq	8(%rbx), %rax
	cmovlq	%rdx, %rsi
	cmpq	%rax, %rcx
	jne	LBB0_8
## %bb.5:
	movq	%rsi, 8(%rbx)
	movq	%rsi, (%rbx)
	movq	%rbx, %rdi
	callq	_rvt_get_swqe_ptr
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_7
## %bb.6:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	movl	%eax, 52(%rbx)
	movl	(%r14), %eax
	movl	%eax, 48(%rbx)
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rsi, (%rbx)
	movq	32(%rbx), %rcx
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.9:
	cmpq	%rax, %rsi
	jne	LBB0_11
## %bb.10:
	movq	$0, 40(%rbx)
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rvt_get_swqe_ptr               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_qib_wc_opcode,8,3           ## @ib_qib_wc_opcode
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_SEND_LAST,4,2                  ## @SEND_LAST
	.comm	_IB_QPS_SQD,8,3                 ## @IB_QPS_SQD
	.no_dead_strip	_do_rc_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_rc_completion
_do_rc_completion:                      ; @do_rc_completion
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #4]
	ldr	w1, [x19, #68]
	bl	_qib_cmp24
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #64]
	bl	_qib_cmp24
	cmp	x0, #1
	b.lt	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ib_qib_wc_opcode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_qib_wc_opcode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	w2, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _IB_WC_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_rvt_qp_complete_swqe
	b	LBB0_4
LBB0_3:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_this_cpu_inc
LBB0_4:
	ldr	w8, [x19, #56]
	str	w8, [x19, #60]
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_update_last_psn
	ldp	x9, x8, [x19]
	add	x10, x9, #1
	ldr	x11, [x19, #16]
	cmp	x10, x11
	csinc	x1, xzr, x9, ge
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	stp	x1, x1, [x19]
	mov	x0, x19
	bl	_rvt_get_swqe_ptr
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _SEND_LAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEND_LAST@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_OP
	ldr	w8, [x20]
	stp	w8, w0, [x19, #48]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	x1, [x19]
	ldr	x9, [x19, #32]
Lloh9:
	adrp	x10, _IB_QPS_SQD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IB_QPS_SQD@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	x1, x8, #0, eq
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [x19, #40]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rvt_get_swqe_ptr
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_qib_wc_opcode,8,3           ; @ib_qib_wc_opcode
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_SEND_LAST,4,2                  ; @SEND_LAST
	.comm	_IB_QPS_SQD,8,3                 ; @IB_QPS_SQD
	.no_dead_strip	_do_rc_completion
.subsections_via_symbols
