	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_destroy_cq          ## -- Begin function ocrdma_mbx_destroy_cq
	.p2align	4, 0x90
_ocrdma_mbx_destroy_cq:                 ## @ocrdma_mbx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_OCRDMA_CMD_DELETE_CQ@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$8, %esi
	callq	_ocrdma_init_emb_mqe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$4, %rdi
	movl	(%r12), %esi
	movq	_OCRDMA_SUBSYS_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %ecx
	callq	_ocrdma_init_mch
	movl	(%r14), %eax
	movq	_OCRDMA_DESTROY_CQ_QID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_OCRDMA_DESTROY_CQ_QID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_mbx_cmd
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_ocrdma_unbind_eq
	movq	(%r15), %rdi
	movl	12(%r14), %esi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	callq	_dma_free_coherent
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CMD_DELETE_CQ,4,2       ## @OCRDMA_CMD_DELETE_CQ
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ## @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_DESTROY_CQ_QID_SHIFT,4,2 ## @OCRDMA_DESTROY_CQ_QID_SHIFT
	.comm	_OCRDMA_DESTROY_CQ_QID_MASK,4,2 ## @OCRDMA_DESTROY_CQ_QID_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_destroy_cq          ; -- Begin function ocrdma_mbx_destroy_cq
	.p2align	2
_ocrdma_mbx_destroy_cq:                 ; @ocrdma_mbx_destroy_cq
	.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	x21, x0
Lloh0:
	adrp	x22, _OCRDMA_CMD_DELETE_CQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OCRDMA_CMD_DELETE_CQ@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #8
	bl	_ocrdma_init_emb_mqe
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	add	x0, x0, #4
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _OCRDMA_SUBSYS_COMMON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OCRDMA_SUBSYS_COMMON@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #8
	bl	_ocrdma_init_mch
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _OCRDMA_DESTROY_CQ_QID_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OCRDMA_DESTROY_CQ_QID_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _OCRDMA_DESTROY_CQ_QID_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OCRDMA_DESTROY_CQ_QID_MASK@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh10:
	ldr	w9, [x10]
	and	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_ocrdma_mbx_cmd
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_ocrdma_unbind_eq
	ldr	x0, [x21]
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
	bl	_dma_free_coherent
	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	_kfree
LBB0_2:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CMD_DELETE_CQ,4,2       ; @OCRDMA_CMD_DELETE_CQ
	.comm	_OCRDMA_SUBSYS_COMMON,4,2       ; @OCRDMA_SUBSYS_COMMON
	.comm	_OCRDMA_DESTROY_CQ_QID_SHIFT,4,2 ; @OCRDMA_DESTROY_CQ_QID_SHIFT
	.comm	_OCRDMA_DESTROY_CQ_QID_MASK,4,2 ; @OCRDMA_DESTROY_CQ_QID_MASK
.subsections_via_symbols
