	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_destroy_cq                ## -- Begin function c4iw_destroy_cq
	.p2align	4, 0x90
_c4iw_destroy_cq:                       ## @c4iw_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	%rdi, %rbx
	callq	_to_c4iw_cq
	movq	%rax, %r12
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_to_c4iw_dev
	movq	%rax, %r15
	movl	$1, (%r12)
	movq	%rbx, %rdi
	callq	_ibv_cmd_destroy_cq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	32(%r12), %edi
	callq	_MASKED
	movq	_c4iw_page_size@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_munmap
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	callq	_munmap
	movq	%r15, %rdi
	callq	_pthread_spin_lock
	movq	8(%r15), %rax
	movq	8(%r12), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r15, %rdi
	callq	_pthread_spin_unlock
	movq	16(%r12), %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_c4iw_page_size,4,2             ## @c4iw_page_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_destroy_cq                ; -- Begin function c4iw_destroy_cq
	.p2align	2
_c4iw_destroy_cq:                       ; @c4iw_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	x20, x0
	bl	_to_c4iw_cq
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_to_c4iw_dev
	mov	x21, x0
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_ibv_cmd_destroy_cq
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_MASKED
Lloh0:
	adrp	x8, _c4iw_page_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _c4iw_page_size@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_munmap
	ldp	w1, w0, [x19, #24]
	bl	_munmap
	mov	x0, x21
	bl	_pthread_spin_lock
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_pthread_spin_unlock
	ldr	x0, [x19, #16]
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_c4iw_page_size,4,2             ; @c4iw_page_size
.subsections_via_symbols
