	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qfq_slot_scan
_qfq_slot_scan:                         ## @qfq_slot_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movl	16(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_ND
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	bsfl	%esi, %ecx
	movl	4(%rbx), %eax
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	addl	%ecx, %eax
	movq	_QFQ_MAX_SLOTS@GOTPCREL(%rip), %rdi
	cltd
	idivl	(%rdi)
	movl	%edx, %eax
	movl	%edx, 4(%rbx)
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movl	%esi, (%rbx)
LBB0_4:
	movq	8(%rbx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"grp %d full %x"

	.comm	_QFQ_MAX_SLOTS,4,2              ## @QFQ_MAX_SLOTS
	.no_dead_strip	_qfq_slot_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qfq_slot_scan
_qfq_slot_scan:                         ; @qfq_slot_scan
	.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, x0
	ldr	w1, [x0, #16]
	ldr	w2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ND
	ldr	w9, [x19]
	cbz	w9, LBB0_4
; %bb.1:
	rbit	w8, w9
	clz	w10, w8
	ldr	w8, [x19, #4]
	cbz	w10, LBB0_3
; %bb.2:
	add	w8, w8, w10
Lloh2:
	adrp	x11, _QFQ_MAX_SLOTS@GOTPAGE
Lloh3:
	ldr	x11, [x11, _QFQ_MAX_SLOTS@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	sdiv	w12, w8, w11
	msub	w8, w12, w11, w8
	asr	w9, w9, w10
	stp	w9, w8, [x19]
LBB0_3:
	ldr	x9, [x19, #8]
	ldr	x0, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"grp %d full %x"

	.comm	_QFQ_MAX_SLOTS,4,2              ; @QFQ_MAX_SLOTS
	.no_dead_strip	_qfq_slot_scan
.subsections_via_symbols
