	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_cq_clean                    ## -- Begin function c2_cq_clean
	.p2align	4, 0x90
_c2_cq_clean:                           ## @c2_cq_clean
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edx, %esi
	callq	_c2_cq_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_c2_mq_empty
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_c2_cq_put                      ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	8(%r15), %ebx
	movq	32(%r15), %rax
	movl	(%rax), %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	16(%r15)
	movq	32(%r15), %rax
	movl	(%rax), %edi
	movl	%edx, %ebx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_be16_to_cpu
	cmpl	%eax, %ebx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movslq	12(%r15), %rdx
	movslq	%ebx, %rcx
	imulq	%rdx, %rcx
	cmpq	%r14, (%rax,%rcx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%rcx,%rax)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c2_cq_clean                    ; -- Begin function c2_cq_clean
	.p2align	2
_c2_cq_clean:                           ; @c2_cq_clean
	.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	x1, x2
	bl	_c2_cq_get
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_spin_lock_irq
	add	x0, x20, #8
	bl	_c2_mq_empty
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irq
	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	_c2_cq_put
LBB0_3:
	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
LBB0_4:
	ldr	w21, [x20, #8]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w21, #1
	ldr	w9, [x20, #16]
	sdiv	w10, w8, w9
	msub	w21, w10, w9, w8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_be16_to_cpu
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x20, #12]
	sxtw	x10, w21
	mul	x9, x9, x10
	ldr	x10, [x8, x9]
	cmp	x10, x19
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x9, x8]
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
