	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cciss_check_queues
_cciss_check_queues:                    ## @cciss_check_queues
	.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, %r15
	movl	(%rdi), %r14d
	movl	20(%rdi), %edi
	movq	8(%r15), %rsi
	callq	_find_first_zero_bit
	cmpq	8(%r15), %rax
	je	LBB0_12
## %bb.1:
	movl	16(%r15), %ecx
	testl	%ecx, %ecx
	js	LBB0_12
## %bb.2:
	movl	$-1, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rcx), %esi
	leal	(%r14,%rbx), %eax
	incl	%eax
	cltd
	idivl	%esi
	movl	%edx, %r12d
	movq	32(%r15), %rdx
	movslq	%r12d, %rax
	movq	(%rdx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 4(%rdx)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%rdx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_blk_start_queue
	movl	20(%r15), %edi
	movq	8(%r15), %rsi
	callq	_find_first_zero_bit
	cmpq	8(%r15), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r15), %ecx
	jmp	LBB0_8
LBB0_9:
	cmpl	%r14d, %r12d
	jne	LBB0_11
## %bb.10:
	incl	%r14d
	movl	16(%r15), %ecx
	incl	%ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movl	%edx, %r12d
LBB0_11:
	movl	%r12d, (%r15)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cciss_check_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cciss_check_queues
_cciss_check_queues:                    ; @cciss_check_queues
	.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, x0
	ldr	w20, [x0]
	ldr	w0, [x0, #20]
	ldr	x1, [x19, #8]
	bl	_find_first_zero_bit
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.1:
	ldr	w8, [x19, #16]
	tbnz	w8, #31, LBB0_12
; %bb.2:
	mov	w21, #-1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w8, #1
	add	w10, w20, w21
	add	w10, w10, #1
	sdiv	w11, w10, w9
	msub	w22, w11, w9, w10
	ldr	x9, [x19, #32]
	ldr	x9, [x9, w22, sxtw #3]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x9, #4]
	cbz	w10, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x9]
	cbz	w9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w22
	ldr	x9, [x19, #24]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w0, [x8]
	bl	_blk_start_queue
	ldr	w0, [x19, #20]
	ldr	x1, [x19, #8]
	bl	_find_first_zero_bit
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	b	LBB0_3
LBB0_9:
	cmp	w22, w20
	b.ne	LBB0_11
; %bb.10:
	add	w8, w20, #1
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	sdiv	w10, w8, w9
	msub	w22, w10, w9, w8
LBB0_11:
	str	w22, [x19]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cciss_check_queues
.subsections_via_symbols
