	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_destroy_qp                 ## -- Begin function rvt_destroy_qp
	.p2align	4, 0x90
_rvt_destroy_qp:                        ## @rvt_destroy_qp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_ibqp_to_rvtqp
	movq	%rax, %rbx
	movl	4(%r12), %edi
	callq	_ib_to_rvt
	movq	%rax, %r14
	leaq	64(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	leaq	68(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	leaq	72(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rvt_reset_qp
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	movl	60(%rbx), %r15d
	leaq	56(%rbx), %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%r15d, %edi
	callq	_wait_event
	movq	24(%r14), %rdi
	movl	48(%rbx), %esi
	callq	_rvt_free_qpn
	leaq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	decl	20(%r14)
	movq	40(%rbx), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	decl	%eax
	movl	%eax, (%r14)
	movq	_RC_QP_SCALING_INTERVAL@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, 4(%r14)
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	_rvt_release_mmap_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kref_put
LBB0_4:
	movl	24(%rbx), %edi
	callq	_kvfree
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*8(%r14)
	movq	16(%rbx), %rdi
	callq	_kfree
	leaq	8(%rbx), %rdi
	callq	_rdma_destroy_ah_attr
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_rdma_destroy_ah_attr
	movq	%rbx, %rdi
	callq	_free_ud_wq_attr
	movl	(%rbx), %edi
	callq	_vfree
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_RC_QP_SCALING_INTERVAL,4,2     ## @RC_QP_SCALING_INTERVAL
	.comm	_rvt_release_mmap_info,4,2      ## @rvt_release_mmap_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_destroy_qp                 ; -- Begin function rvt_destroy_qp
	.p2align	2
_rvt_destroy_qp:                        ; @rvt_destroy_qp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	bl	_ibqp_to_rvtqp
	mov	x19, x0
	ldr	w0, [x21, #4]
	bl	_ib_to_rvt
	mov	x20, x0
	add	x22, x19, #64
	mov	x0, x22
	bl	_spin_lock_irq
	add	x23, x19, #68
	mov	x0, x23
	bl	_spin_lock
	add	x24, x19, #72
	mov	x0, x24
	bl	_spin_lock
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_rvt_reset_qp
	mov	x0, x24
	bl	_spin_unlock
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	w21, [x19, #60]
	add	x0, x19, #56
	bl	_atomic_read
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_event
	ldr	x0, [x20, #24]
	ldr	w1, [x19, #48]
	bl	_rvt_free_qpn
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x20, #20]
	sub	w8, w8, #1
	str	w8, [x20, #20]
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
Lloh3:
	adrp	x9, _RC_QP_SCALING_INTERVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RC_QP_SCALING_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	str	w8, [x20, #4]
LBB0_2:
	mov	x0, x21
	bl	_spin_unlock
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _rvt_release_mmap_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rvt_release_mmap_info@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kref_put
LBB0_4:
	ldr	w0, [x19, #24]
	bl	_kvfree
	ldr	x8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldr	x0, [x19, #16]
	bl	_kfree
	add	x0, x19, #8
	bl	_rdma_destroy_ah_attr
	add	x0, x19, #4
	bl	_rdma_destroy_ah_attr
	mov	x0, x19
	bl	_free_ud_wq_attr
	ldr	w0, [x19]
	bl	_vfree
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_RC_QP_SCALING_INTERVAL,4,2     ; @RC_QP_SCALING_INTERVAL
	.comm	_rvt_release_mmap_info,4,2      ; @rvt_release_mmap_info
.subsections_via_symbols
