	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxe_qp_reset
_rxe_qp_reset:                          ## @rxe_qp_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	52(%rdi), %r14
	movq	%r14, %rdi
	callq	_rxe_disable_task
	cmpq	$0, 40(%rbx)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_qp_type
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	32(%rbx), %rdi
	callq	_rxe_disable_task
LBB0_3:
	leaq	4(%rbx), %rdi
	callq	_rxe_disable_task
LBB0_4:
	movq	_QP_STATE_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 96(%rbx)
	movq	%r14, %rdi
	callq	___rxe_do_task
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	32(%rbx), %rdi
	callq	___rxe_do_task
	leaq	4(%rbx), %rdi
	callq	___rxe_do_task
	movq	40(%rbx), %rdi
	callq	_rxe_queue_reset
LBB0_6:
	leaq	104(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	$-1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	$-1, 48(%rbx)
	movups	%xmm0, 64(%rbx)
	movups	%xmm0, 80(%rbx)
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_rxe_drop_ref
	movq	$0, 56(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	callq	_cleanup_rd_atomic_resources
	movq	%r14, %rdi
	callq	_rxe_enable_task
	cmpq	$0, 40(%rbx)
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_qp_type
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	leaq	32(%rbx), %rdi
	callq	_rxe_enable_task
LBB0_11:
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rxe_enable_task                ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_QP_STATE_RESET,8,3             ## @QP_STATE_RESET
	.no_dead_strip	_rxe_qp_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxe_qp_reset
_rxe_qp_reset:                          ; @rxe_qp_reset
	.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	x19, x0
	add	x20, x0, #52
	mov	x0, x20
	bl	_rxe_disable_task
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x21, _IB_QPT_RC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IB_QPT_RC@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_qp_type
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	add	x0, x19, #32
	bl	_rxe_disable_task
LBB0_3:
	add	x0, x19, #4
	bl	_rxe_disable_task
LBB0_4:
Lloh2:
	adrp	x8, _QP_STATE_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QP_STATE_RESET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	str	x8, [x19, #96]
	mov	x0, x20
	bl	___rxe_do_task
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #32
	bl	___rxe_do_task
	add	x0, x19, #4
	bl	___rxe_do_task
	ldr	x0, [x19, #40]
	bl	_rxe_queue_reset
LBB0_6:
	add	x0, x19, #104
	mov	w1, #0
	bl	_atomic_set
	mov	w8, #-1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
	str	w8, [x19, #48]
	stp	xzr, xzr, [x19, #80]
	stp	xzr, xzr, [x19, #64]
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_rxe_drop_ref
	str	xzr, [x19, #56]
LBB0_8:
	mov	x0, x19
	bl	_cleanup_rd_atomic_resources
	mov	x0, x20
	bl	_rxe_enable_task
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_qp_type
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	add	x0, x19, #32
	bl	_rxe_enable_task
LBB0_11:
	add	x0, x19, #4
	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	_rxe_enable_task
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_QP_STATE_RESET,8,3             ; @QP_STATE_RESET
	.no_dead_strip	_rxe_qp_reset
.subsections_via_symbols
