	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqueue_dequeue
_cqueue_dequeue:                        ## @cqueue_dequeue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_cqueue_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_av_assert2
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	movsd	(%rcx,%rax,8), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	incq	%rax
	movslq	16(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, 8(%rbx)
	decl	20(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cqueue_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqueue_dequeue
_cqueue_dequeue:                        ; @cqueue_dequeue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_cqueue_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_av_assert2
	ldp	x8, x9, [x20]
	ldr	d0, [x8, x9, lsl #3]
	str	d0, [x19]
	add	x8, x9, #1
	ldp	w9, w10, [x20, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	str	x8, [x20, #8]
	sub	w8, w10, #1
	str	w8, [x20, #20]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cqueue_dequeue
.subsections_via_symbols
