	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxe_qp_drain
_rxe_qp_drain:                          ## @rxe_qp_drain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_QP_STATE_DRAINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_QP_STATE_DRAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_qp_type
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	leaq	16(%rbx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, %esi
	callq	_rxe_run_task
	jmp	LBB0_5
LBB0_4:
	callq	___rxe_do_task
LBB0_5:
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rxe_run_task                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_STATE_DRAINED,8,3           ## @QP_STATE_DRAINED
	.comm	_QP_STATE_DRAIN,8,3             ## @QP_STATE_DRAIN
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.no_dead_strip	_rxe_qp_drain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxe_qp_drain
_rxe_qp_drain:                          ; @rxe_qp_drain
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QP_STATE_DRAINED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QP_STATE_DRAINED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _QP_STATE_DRAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QP_STATE_DRAIN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x20, x19
	str	x8, [x20], #16
	mov	x0, x19
	bl	_qp_type
Lloh6:
	adrp	x8, _IB_QPT_RC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QPT_RC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	bl	_rxe_run_task
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	___rxe_do_task
LBB0_6:
	add	x0, x19, #8
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rxe_run_task
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_STATE_DRAINED,8,3           ; @QP_STATE_DRAINED
	.comm	_QP_STATE_DRAIN,8,3             ; @QP_STATE_DRAIN
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.no_dead_strip	_rxe_qp_drain
.subsections_via_symbols
