	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbq_ovl_classic
_cbq_ovl_classic:                       ## @cbq_ovl_classic
	.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	48(%rdi), %edi
	callq	_qdisc_priv
	movq	(%rbx), %rsi
	movq	(%rax), %rdx
	subq	%rdx, %rsi
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
## %bb.1:
	addq	40(%rbx), %rsi
	movl	12(%rbx), %r8d
	testl	%r8d, %r8d
	jns	LBB0_3
## %bb.2:
	movl	%r8d, %edi
	negl	%edi
	movb	16(%rbx), %cl
	movl	%edi, %r9d
	shrl	%cl, %r9d
	subl	%r9d, %edi
	movslq	%edi, %rcx
	subq	%rcx, %rsi
LBB0_3:
	movl	20(%rbx), %ecx
	cmpl	%ecx, %r8d
	jge	LBB0_5
## %bb.4:
	movl	%ecx, 12(%rbx)
LBB0_5:
	cmpq	$2, %rsi
	movl	$1, %ecx
	cmovlq	%rcx, %rsi
	leaq	(%rsi,%rdx), %rcx
	movq	%rcx, (%rbx)
	incl	32(%rbx)
	movl	$1, 8(%rbx)
LBB0_6:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	cmpq	%rsi, %rcx
	jle	LBB0_9
LBB0_8:
	movq	%rsi, 8(%rax)
	movq	%rsi, %rcx
LBB0_9:
	movq	16(%rax), %rsi
	movq	_TC_CBQ_MAXLEVEL@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_14
## %bb.10:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	movq	24(%rsi), %rsi
	subq	%rdx, %rdi
	cmpq	$2, %rdi
	movl	$1, %ebx
	cmovgeq	%rdi, %rbx
	cmpq	%rcx, %rdi
	cmovlq	%rbx, %rcx
	testq	%rsi, %rsi
	jne	LBB0_11
LBB0_13:
	movq	%rcx, 8(%rax)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_CBQ_MAXLEVEL,8,3            ## @TC_CBQ_MAXLEVEL
	.no_dead_strip	_cbq_ovl_classic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbq_ovl_classic
_cbq_ovl_classic:                       ; @cbq_ovl_classic
	.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	w0, [x0, #48]
	bl	_qdisc_priv
	ldr	x9, [x19]
	ldr	x8, [x0]
	sub	x10, x9, x8
	ldr	w9, [x19, #8]
	cbnz	w9, LBB0_6
; %bb.1:
	ldr	x9, [x19, #40]
	add	x9, x9, x10
	ldr	w10, [x19, #12]
	tbz	w10, #31, LBB0_3
; %bb.2:
	ldr	w11, [x19, #16]
	neg	w12, w10
	lsr	w11, w12, w11
	sub	w11, w12, w11
	sub	x9, x9, w11, sxtw
LBB0_3:
	ldr	w11, [x19, #20]
	cmp	w10, w11
	b.ge	LBB0_5
; %bb.4:
	str	w11, [x19, #12]
LBB0_5:
	cmp	x9, #1
	csinc	x10, x9, xzr, gt
	add	x9, x10, x8
	str	x9, [x19]
	ldr	w9, [x19, #32]
	add	w9, w9, #1
	str	w9, [x19, #32]
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_6:
	ldr	x9, [x0, #8]
	cmp	x9, #0
	ccmp	x9, x10, #0, ne
	b.le	LBB0_8
; %bb.7:
	str	x10, [x0, #8]
	mov	x9, x10
LBB0_8:
	ldr	x10, [x0, #16]
Lloh0:
	adrp	x11, _TC_CBQ_MAXLEVEL@GOTPAGE
Lloh1:
	ldr	x11, [x11, _TC_CBQ_MAXLEVEL@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_12
; %bb.9:
	ldr	x10, [x19, #24]
	cbz	x10, LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	sub	x11, x11, x8
	cmp	x11, #1
	csinc	x12, x11, xzr, gt
	cmp	x11, x9
	csel	x9, x12, x9, lt
	ldr	x10, [x10, #24]
	cbnz	x10, LBB0_10
LBB0_11:
	str	x9, [x0, #8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_CBQ_MAXLEVEL,8,3            ; @TC_CBQ_MAXLEVEL
	.no_dead_strip	_cbq_ovl_classic
.subsections_via_symbols
