	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_ack
_complete_ack:                          ## @complete_ack
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdx)
	je	LBB0_3
## %bb.1:
	movq	$0, (%r15)
	leaq	80(%rbx), %rdi
	callq	_atomic_inc
	cmpq	$0, 72(%rbx)
	je	LBB0_3
## %bb.2:
	movq	$0, 8(%rbx)
	movq	$0, 72(%rbx)
	leaq	64(%rbx), %rdi
	movl	$1, %esi
	callq	_rxe_run_task
LBB0_3:
	movq	48(%rbx), %rax
	movq	_QP_STATE_DRAIN@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	48(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	cmpq	56(%rbx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_QP_STATE_DRAINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	24(%rbx), %rcx
	movl	40(%rbx), %edx
	movl	%edx, -48(%rbp)
	movq	%rcx, -56(%rbp)
	movq	_IB_EVENT_SQ_DRAINED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movl	24(%rbx), %esi
	leaq	-64(%rbp), %rdi
	callq	*%rax
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_do_complete
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	callq	_psn_compare
	testq	%rax, %rax
	jns	LBB0_10
## %bb.11:
	movq	_COMPST_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_COMPST_UPDATE_COMP@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_STATE_DRAIN,8,3             ## @QP_STATE_DRAIN
	.comm	_QP_STATE_DRAINED,8,3           ## @QP_STATE_DRAINED
	.comm	_IB_EVENT_SQ_DRAINED,4,2        ## @IB_EVENT_SQ_DRAINED
	.comm	_COMPST_UPDATE_COMP,4,2         ## @COMPST_UPDATE_COMP
	.comm	_COMPST_DONE,4,2                ## @COMPST_DONE
	.no_dead_strip	_complete_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_ack
_complete_ack:                          ; @complete_ack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x2]
	cbz	x8, LBB0_3
; %bb.1:
	str	xzr, [x21]
	add	x0, x19, #80
	bl	_atomic_inc
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19, #8]
	str	xzr, [x19, #72]
	add	x0, x19, #64
	mov	w1, #1
	bl	_rxe_run_task
LBB0_3:
	ldr	x8, [x19, #48]
Lloh0:
	adrp	x23, _QP_STATE_DRAIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QP_STATE_DRAIN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.4:
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #48]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x19, #56]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _QP_STATE_DRAINED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QP_STATE_DRAINED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #48]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x9, x19
	ldr	w1, [x9, #24]!
	ldr	w10, [x9, #16]
	str	w10, [sp, #24]
	str	x9, [sp, #16]
Lloh5:
	adrp	x9, _IB_EVENT_SQ_DRAINED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_EVENT_SQ_DRAINED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	add	x0, sp, #8
	blr	x8
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_do_complete
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_psn_compare
Lloh8:
	adrp	x8, _COMPST_UPDATE_COMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COMPST_UPDATE_COMP@GOTPAGEOFF]
Lloh10:
	adrp	x9, _COMPST_DONE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _COMPST_DONE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, lt
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_STATE_DRAIN,8,3             ; @QP_STATE_DRAIN
	.comm	_QP_STATE_DRAINED,8,3           ; @QP_STATE_DRAINED
	.comm	_IB_EVENT_SQ_DRAINED,4,2        ; @IB_EVENT_SQ_DRAINED
	.comm	_COMPST_UPDATE_COMP,4,2         ; @COMPST_UPDATE_COMP
	.comm	_COMPST_DONE,4,2                ; @COMPST_DONE
	.no_dead_strip	_complete_ack
.subsections_via_symbols
