	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_queue_get_num_queued    ## -- Begin function cw1200_queue_get_num_queued
	.p2align	4, 0x90
_cw1200_queue_get_num_queued:           ## @cw1200_queue_get_num_queued
	.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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movq	(%rax), %r13
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	cmpl	$-1, %r12d
	je	LBB0_7
## %bb.3:
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	cmpq	$1, %r13
	jne	LBB0_8
## %bb.6:
	movl	$1, %ecx
	xorl	%eax, %eax
	xorl	%ebx, %ebx
LBB0_14:
	testb	$1, %r13b
	je	LBB0_17
## %bb.15:
	testl	%r12d, %ecx
	je	LBB0_17
## %bb.16:
	movq	24(%r15), %rcx
	addq	(%rcx,%rax,8), %rbx
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_7:
	movq	(%r15), %rbx
	subq	8(%r15), %rbx
	jmp	LBB0_17
LBB0_4:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdx
	andq	$-2, %rdx
	movl	$1, %ecx
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rax
	shll	$2, %ecx
	cmpq	%rax, %rdx
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %ecx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r15), %rsi
	addq	(%rsi,%rax,8), %rbx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	leal	(%rcx,%rcx), %esi
	testl	%r12d, %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r15), %rsi
	addq	8(%rsi,%rax,8), %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_queue_get_num_queued    ; -- Begin function cw1200_queue_get_num_queued
	.p2align	2
_cw1200_queue_get_num_queued:           ; @cw1200_queue_get_num_queued
	.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
	cbz	w1, LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x23, [x8]
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_bh
	cmn	w21, #1
	b.eq	LBB0_8
; %bb.2:
	cbz	x23, LBB0_9
; %bb.3:
	mov	x8, #0
	mov	x22, #0
	mov	w9, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	lsl	w9, w9, #1
	cmp	x23, x8
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	tst	w9, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x20, #24]
	ldr	x10, [x10, x8, lsl #3]
	add	x22, x10, x22
	b	LBB0_4
LBB0_7:
	mov	x22, #0
	b	LBB0_11
LBB0_8:
	ldp	x8, x9, [x20]
	sub	x22, x8, x9
	b	LBB0_10
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_11:
	mov	x0, x22
	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
