	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_free_qp                     ## -- Begin function c2_free_qp
	.p2align	4, 0x90
_c2_free_qp:                            ## @c2_free_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	32(%rsi), %edi
	callq	_to_c2cq
	movq	%rax, %r15
	movl	28(%rbx), %edi
	callq	_to_c2cq
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_c2_lock_cqs
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	_c2_free_qpn
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_c2_unlock_cqs
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_destroy_qp
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_c2_cq_clean
	cmpq	%r12, %r15
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_c2_cq_clean
LBB0_2:
	movl	20(%rbx), %edi
	callq	_iounmap
	movl	12(%rbx), %edi
	callq	_iounmap
	movl	16(%rbx), %edi
	callq	_c2_free_mqsp
	movl	8(%rbx), %edi
	callq	_c2_free_mqsp
	movq	%rbx, %rdi
	callq	_atomic_dec
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_free_qp                     ; -- Begin function c2_free_qp
	.p2align	2
_c2_free_qp:                            ; @c2_free_qp
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #32]
	bl	_to_c2cq
	mov	x22, x0
	ldr	w0, [x19, #28]
	bl	_to_c2cq
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_c2_lock_cqs
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_c2_free_qpn
	mov	x0, x22
	mov	x1, x21
	bl	_c2_unlock_cqs
	mov	x0, x20
	mov	x1, x19
	bl	_destroy_qp
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_c2_cq_clean
	cmp	x22, x21
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_c2_cq_clean
LBB0_2:
	ldr	w0, [x19, #20]
	bl	_iounmap
	ldr	w0, [x19, #12]
	bl	_iounmap
	ldr	w0, [x19, #16]
	bl	_c2_free_mqsp
	ldr	w0, [x19, #8]
	bl	_c2_free_mqsp
	mov	x0, x19
	bl	_atomic_dec
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_atomic_read
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x20
	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	_wait_event
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
