	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qfq_dequeue
_qfq_dequeue:                           ## @qfq_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	%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
	movq	%rdi, %rbx
	callq	_qdisc_priv
	movq	%rax, %r13
	movq	8(%rax), %rax
	movq	_ER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_qfq_ffs
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_qfq_slot_head
	movq	%rax, %r12
	movl	16(%rax), %edi
	callq	_qdisc_dequeue_peeked
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	decl	(%rbx)
	movq	(%r13), %rbx
	movq	%rax, %rdi
	callq	_qdisc_pkt_len
	movl	%eax, %ecx
	movq	_IWSUM@GOTPCREL(%rip), %rdx
	imulq	(%rdx), %rcx
	addq	(%r13), %rcx
	movq	%rcx, (%r13)
	movq	8(%r12), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_qfq_update_class
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	(%r15), %r12
	movq	%r15, %rdi
	callq	_qfq_slot_scan
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	callq	_qfq_round_down
	cmpq	%rax, 16(%r15)
	je	LBB0_10
## %bb.8:
	movq	%rax, 16(%r15)
	movb	8(%r15), %cl
	movl	$2, %edx
	shlq	%cl, %rdx
	addq	%rax, %rdx
	movq	%rdx, (%r15)
	movl	24(%r15), %edi
	movq	_ER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	callq	___clear_bit
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_qfq_calc_state
	movl	24(%r15), %edi
	movl	%eax, %esi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	callq	___set_bit
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_6:
	movl	24(%r15), %edi
	movq	_ER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	callq	___clear_bit
LBB0_9:
	movl	24(%r15), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_qfq_unblock_groups
LBB0_10:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_qfq_update_eligible
LBB0_11:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ER,8,3                         ## @ER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qfq_dequeue: non-workconserving leaf\n"

	.comm	_IWSUM,8,3                      ## @IWSUM
L_.str.1:                               ## @.str.1
	.asciz	"qfq dequeue: len %u F %lld now %lld\n"

	.no_dead_strip	_qfq_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qfq_dequeue
_qfq_dequeue:                           ; @qfq_dequeue
	.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, x0
	bl	_qdisc_priv
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x24, _ER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ER@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w1, [x8, x9, lsl #2]
	cbz	w1, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_qfq_ffs
	mov	x21, x0
	bl	_qfq_slot_head
	mov	x23, x0
	ldr	w0, [x0, #16]
	bl	_qdisc_dequeue_peeked
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	ldr	x22, [x19]
	mov	x0, x20
	bl	_qdisc_pkt_len
	mov	x1, x0
Lloh2:
	adrp	x8, _IWSUM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWSUM@GOTPAGEOFF]
	mov	w9, w0
Lloh4:
	ldr	x8, [x8]
	ldr	x10, [x19]
	madd	x3, x8, x9, x10
	str	x3, [x19]
	ldr	x2, [x23, #8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x21
	mov	x1, x23
	bl	_qfq_update_class
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x23, [x21]
	mov	x0, x21
	bl	_qfq_slot_scan
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x0]
	ldr	x1, [x21, #8]
	bl	_qfq_round_down
	ldr	x8, [x21, #16]
	cmp	x8, x0
	b.eq	LBB0_10
; %bb.5:
	str	x0, [x21, #16]
	ldr	x8, [x21, #8]
	mov	w9, #2
	lsl	x8, x9, x8
	add	x8, x8, x0
	str	x8, [x21]
	ldr	w0, [x21, #24]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x8, x9, lsl #2
	bl	___clear_bit
	mov	x0, x19
	mov	x1, x21
	bl	_qfq_calc_state
	ldr	w8, [x21, #24]
	ldr	x9, [x19, #8]
	add	x1, x9, w0, uxtw #2
	mov	x0, x8
	bl	___set_bit
	b	LBB0_9
LBB0_6:
	mov	x20, #0
	b	LBB0_11
LBB0_7:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
	b	LBB0_11
LBB0_8:
	ldr	w0, [x21, #24]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x8, x9, lsl #2
	bl	___clear_bit
LBB0_9:
	ldr	w1, [x21, #24]
	mov	x0, x19
	mov	x2, x23
	bl	_qfq_unblock_groups
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_qfq_update_eligible
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ER,8,3                         ; @ER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qfq_dequeue: non-workconserving leaf\n"

	.comm	_IWSUM,8,3                      ; @IWSUM
l_.str.1:                               ; @.str.1
	.asciz	"qfq dequeue: len %u F %lld now %lld\n"

	.no_dead_strip	_qfq_dequeue
.subsections_via_symbols
