	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qfq_slot_insert
_qfq_slot_insert:                       ## @qfq_slot_insert
	.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
	movl	%edx, %r12d
	movq	%rdi, %r14
	movl	%edx, %ebx
	subl	(%rdi), %ebx
	movb	4(%rdi), %cl
	sarl	%cl, %ebx
	movq	%rsi, %r15
	movq	_QFQ_MAX_SLOTS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	$-2, %eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %esi
	leal	-2(%rsi), %ebx
	movb	4(%r14), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	addl	(%r14), %eax
	subl	%eax, %r12d
	subl	%r12d, 8(%r15)
	subl	%r12d, 4(%r15)
	jmp	LBB0_3
LBB0_1:
	movl	(%r13), %esi
LBB0_3:
	movl	8(%r14), %eax
	addl	%ebx, %eax
	cltd
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(,%rdx,4), %rsi
	addq	16(%r14), %rsi
	movq	%r15, %rdi
	callq	_hlist_add_head
	addq	$12, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___set_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QFQ_MAX_SLOTS,4,2              ## @QFQ_MAX_SLOTS
	.no_dead_strip	_qfq_slot_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qfq_slot_insert
_qfq_slot_insert:                       ; @qfq_slot_insert
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	sub	w8, w2, w8
	asr	w21, w8, w9
Lloh0:
	adrp	x23, _QFQ_MAX_SLOTS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QFQ_MAX_SLOTS@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w8, w8, #2
	cmp	w21, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	sub	w21, w8, #2
	ldp	w9, w10, [x19]
	lsl	w10, w21, w10
	add	w9, w9, w10
	sub	w9, w9, w22
	ldur	d0, [x20, #4]
	dup.2s	v1, w9
	add.2s	v0, v1, v0
	stur	d0, [x20, #4]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x23]
LBB0_3:
	ldr	w9, [x19, #8]
	add	w9, w9, w21
	sdiv	w10, w9, w8
	msub	w8, w10, w8, w9
	ldr	x9, [x19, #16]
	add	x1, x9, w8, uxtw #2
	mov	x0, x20
	bl	_hlist_add_head
	add	x1, x19, #12
	mov	x0, x21
	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
	b	___set_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QFQ_MAX_SLOTS,4,2              ; @QFQ_MAX_SLOTS
	.no_dead_strip	_qfq_slot_insert
.subsections_via_symbols
