	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_complete
_do_complete:                           ## @do_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_to_rdev
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_IB_SIGNAL_ALL_WR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_IB_SEND_SIGNALED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	24(%rbx), %edi
	callq	_advance_consumer
	jmp	LBB0_5
LBB0_3:
	leaq	-40(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_make_send_cqe
	movl	24(%rbx), %edi
	callq	_advance_consumer
	movl	28(%rbx), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_rxe_cq_post
LBB0_5:
	movq	16(%r15), %rax
	movq	_IB_WR_SEND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	_IB_WR_SEND_WITH_IMM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	_IB_WR_SEND_WITH_INV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_8:
	movq	_RXE_CNT_RDMA_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rxe_counter_inc
LBB0_9:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	movq	$0, 16(%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rxe_run_task
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SIGNAL_ALL_WR,8,3           ## @IB_SIGNAL_ALL_WR
	.comm	_IB_SEND_SIGNALED,4,2           ## @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_WR_SEND,8,3                 ## @IB_WR_SEND
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ## @IB_WR_SEND_WITH_IMM
	.comm	_IB_WR_SEND_WITH_INV,8,3        ## @IB_WR_SEND_WITH_INV
	.comm	_RXE_CNT_RDMA_SEND,4,2          ## @RXE_CNT_RDMA_SEND
	.no_dead_strip	_do_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_complete
_do_complete:                           ; @do_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_to_rdev
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IB_SIGNAL_ALL_WR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_SIGNAL_ALL_WR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _IB_SEND_SIGNALED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_SEND_SIGNALED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _IB_WC_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #24]
	bl	_advance_consumer
	b	LBB0_5
LBB0_4:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_make_send_cqe
	ldr	w0, [x19, #24]
	bl	_advance_consumer
	ldr	w0, [x19, #28]
	add	x1, sp, #8
	mov	w2, #0
	bl	_rxe_cq_post
LBB0_5:
	ldr	x8, [x21, #16]
Lloh9:
	adrp	x9, _IB_WR_SEND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_WR_SEND@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _IB_WR_SEND_WITH_IMM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IB_WR_SEND_WITH_IMM@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _IB_WR_SEND_WITH_INV@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IB_WR_SEND_WITH_INV@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _RXE_CNT_RDMA_SEND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RXE_CNT_RDMA_SEND@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rxe_counter_inc
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
	str	xzr, [x19, #16]
	add	x0, x19, #8
	mov	w1, #1
	bl	_rxe_run_task
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SIGNAL_ALL_WR,8,3           ; @IB_SIGNAL_ALL_WR
	.comm	_IB_SEND_SIGNALED,4,2           ; @IB_SEND_SIGNALED
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_WR_SEND,8,3                 ; @IB_WR_SEND
	.comm	_IB_WR_SEND_WITH_IMM,8,3        ; @IB_WR_SEND_WITH_IMM
	.comm	_IB_WR_SEND_WITH_INV,8,3        ; @IB_WR_SEND_WITH_INV
	.comm	_RXE_CNT_RDMA_SEND,4,2          ; @RXE_CNT_RDMA_SEND
	.no_dead_strip	_do_complete
.subsections_via_symbols
