	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	4(%rsi), %edi
	movl	88(%r14), %esi
	callq	_qib_cmp24
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movl	84(%r14), %esi
	movl	88(%r14), %edi
	callq	_qib_cmp24
	testq	%rax, %rax
	jle	LBB0_9
LBB0_2:
	cmpl	$0, 16(%r12)
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_qib_put_mr
	incq	%rbx
	movl	16(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	movq	_QIB_S_SIGNAL_REQ_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r12)
	je	LBB0_8
LBB0_7:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	32(%r12), %eax
	movl	%eax, -36(%rbp)
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_ib_qib_wc_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%r12), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -48(%rbp)
	leaq	80(%r14), %rax
	movq	%rax, -56(%rbp)
	movl	80(%r14), %edi
	callq	_to_icq
	movl	%eax, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_qib_cq_enter
LBB0_8:
	movq	8(%r14), %rax
	incq	%rax
	xorl	%ecx, %ecx
	cmpq	16(%r14), %rax
	cmovlq	%rax, %rcx
	movq	%rcx, 8(%r14)
	jmp	LBB0_10
LBB0_9:
	incl	(%r15)
LBB0_10:
	movl	72(%r14), %eax
	movl	%eax, 76(%r14)
	movl	4(%r12), %esi
	movq	%r14, %rdi
	callq	_update_last_psn
	movq	24(%r14), %rcx
	leaq	1(%rcx), %rdx
	xorl	%esi, %esi
	cmpq	16(%r14), %rdx
	movq	32(%r14), %rax
	cmovlq	%rdx, %rsi
	cmpq	%rax, %rcx
	jne	LBB0_13
## %bb.11:
	movq	%rsi, 32(%r14)
	movq	%rsi, 24(%r14)
	movq	%r14, %rdi
	callq	_get_swqe_ptr
	movq	%rax, %rbx
	movq	24(%r14), %rax
	cmpq	40(%r14), %rax
	je	LBB0_17
## %bb.12:
	movq	_SEND_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP
	movl	%eax, 68(%r14)
	movl	(%rbx), %eax
	movl	%eax, 64(%r14)
	jmp	LBB0_17
LBB0_13:
	movq	%rsi, 24(%r14)
	movq	48(%r14), %rcx
	movq	_IB_QPS_SQD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.14:
	cmpq	%rax, %rsi
	jne	LBB0_16
## %bb.15:
	movq	$0, 56(%r14)
LBB0_16:
	movq	%r14, %rdi
	callq	_get_swqe_ptr
	movq	%rax, %rbx
LBB0_17:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QIB_S_SIGNAL_REQ_WR,4,2        ## @QIB_S_SIGNAL_REQ_WR
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,4,2              ## @IB_WC_SUCCESS
	.comm	_ib_qib_wc_opcode,8,3           ## @ib_qib_wc_opcode
	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, #88]
	bl	_qib_cmp24
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #84]
	bl	_qib_cmp24
	cmp	x0, #1
	b.lt	LBB0_9
LBB0_2:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	ldr	w0, [x8, x21, lsl #2]
	bl	_qib_put_mr
	add	x21, x21, #1
	ldr	w8, [x20, #16]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_5:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _QIB_S_SIGNAL_REQ_WR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_S_SIGNAL_REQ_WR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x20, #20]
Lloh3:
	adrp	x9, _IB_SEND_SIGNALED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_SEND_SIGNALED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x20, #32]
Lloh6:
	adrp	x9, _IB_WC_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ib_qib_wc_opcode@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ib_qib_wc_opcode@GOTPAGEOFF]
	stp	w9, w8, [sp, #24]
Lloh11:
	ldr	x8, [x10]
	ldr	x9, [x20, #24]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x20, #8]
	stp	w9, w8, [sp, #16]
	mov	x8, x19
	ldr	w0, [x8, #80]!
	str	x8, [sp, #8]
	bl	_to_icq
	add	x1, sp, #8
	mov	w2, #0
	bl	_qib_cq_enter
LBB0_8:
	ldp	x8, x9, [x19, #8]
	add	x10, x8, #1
	cmp	x10, x9
	csinc	x8, xzr, x8, ge
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_9:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
LBB0_10:
	ldr	w8, [x19, #72]
	str	w8, [x19, #76]
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_update_last_psn
	ldp	x9, x8, [x19, #24]
	ldr	x10, [x19, #16]
	add	x11, x9, #1
	cmp	x11, x10
	csinc	x1, xzr, x9, ge
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	stp	x1, x1, [x19, #24]
	mov	x0, x19
	bl	_get_swqe_ptr
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.12:
Lloh12:
	adrp	x8, _SEND_LAST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SEND_LAST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_OP
	str	w0, [x19, #68]
	ldr	w8, [x20]
	str	w8, [x19, #64]
	b	LBB0_16
LBB0_13:
	str	x1, [x19, #24]
	ldr	x9, [x19, #48]
Lloh15:
	adrp	x10, _IB_QPS_SQD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IB_QPS_SQD@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	x1, x8, #0, eq
	b.ne	LBB0_15
; %bb.14:
	str	xzr, [x19, #56]
LBB0_15:
	mov	x0, x19
	bl	_get_swqe_ptr
	mov	x20, x0
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QIB_S_SIGNAL_REQ_WR,4,2        ; @QIB_S_SIGNAL_REQ_WR
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,4,2              ; @IB_WC_SUCCESS
	.comm	_ib_qib_wc_opcode,8,3           ; @ib_qib_wc_opcode
	.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
