	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_destroy_cq              ## -- Begin function ocrdma_destroy_cq
	.p2align	4, 0x90
_ocrdma_destroy_cq:                     ## @ocrdma_destroy_cq
	.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, %rbx
	callq	_get_ocrdma_cq
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_get_ocrdma_dev
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	(%r12), %rcx
	movq	$0, (%rax,%rcx,8)
	movl	32(%r12), %esi
	movq	%r14, %rdi
	callq	_ocrdma_get_eq_table_index
	leaq	(,%rax,4), %rsi
	addq	8(%r14), %rsi
	movq	%r14, %rdi
	callq	_ocrdma_get_irq
	movq	%rax, %rdi
	callq	_synchronize_irq
	movq	%r12, %rdi
	callq	_ocrdma_flush_cq
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ocrdma_mbx_destroy_cq
	movq	8(%r12), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movl	(%rax), %r13d
	movl	16(%r12), %edi
	movl	24(%r12), %ebx
	callq	_PAGE_ALIGN
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ocrdma_del_mmap
	movq	8(%r12), %rbx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_ocrdma_get_db_addr
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocrdma_del_mmap                ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_destroy_cq              ; -- Begin function ocrdma_destroy_cq
	.p2align	2
_ocrdma_destroy_cq:                     ; @ocrdma_destroy_cq
	.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	x19, x0
	bl	_get_ocrdma_cq
	mov	x20, x0
	ldr	w0, [x19]
	bl	_get_ocrdma_dev
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
	ldr	w1, [x20, #32]
	bl	_ocrdma_get_eq_table_index
	ldr	x8, [x19, #8]
	add	x1, x8, x0, lsl #2
	mov	x0, x19
	bl	_ocrdma_get_irq
	bl	_synchronize_irq
	mov	x0, x20
	bl	_ocrdma_flush_cq
	mov	x0, x19
	mov	x1, x20
	bl	_ocrdma_mbx_destroy_cq
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w22, [x8]
	ldr	w23, [x20, #24]
	ldr	w0, [x20, #16]
	bl	_PAGE_ALIGN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_ocrdma_del_mmap
	ldr	x20, [x20, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_ocrdma_get_db_addr
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x20
	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
	b	_ocrdma_del_mmap
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
