	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htb_dequeue_tree
_htb_dequeue_tree:                      ## @htb_dequeue_tree
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r15
	movslq	%esi, %rbx
	movq	(%rax,%r15,8), %rdi
	addq	%rbx, %rdi
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax,%r15,8), %rdx
	addq	%rbx, %rdx
	movq	(%rcx,%r15,8), %rcx
	addq	%rbx, %rcx
	movl	%ebx, %esi
	callq	_htb_lookup_leaf
	movq	%rax, %r14
	movl	$1, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r14, %r13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_htb_deactivate
	movq	(%r12), %rax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax,%r15,4)
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	24(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rsi, %rdi
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax,%r15,8), %rdx
	addq	%rsi, %rdx
	movq	(%rcx,%r15,8), %rcx
	addq	%rsi, %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_htb_lookup_leaf
	movq	%rax, %rbx
	cmpq	%r13, %r14
	cmoveq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	movq	%rbx, %r14
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rdi
	callq	*8(%rdi)
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	callq	_likely
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_qdisc_warn_nonwc
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r14), %rax
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	callq	_htb_next_rb_node
	movq	24(%r12), %rax
	movq	(%rax,%r15,8), %rdi
	addq	%rbx, %rdi
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	(%rax,%r15,8), %rdx
	addq	%rbx, %rdx
	movq	(%rcx,%r15,8), %rcx
	addq	%rbx, %rcx
	movl	%ebx, %esi
	callq	_htb_lookup_leaf
	movq	%rax, %r14
	cmpq	%r13, %rax
	jne	LBB0_1
	jmp	LBB0_15
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %r13
LBB0_15:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_likely
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_qdisc_pkt_len
	movq	8(%r13), %rcx
	movq	(%rcx,%r15,8), %rdx
	subq	%rax, %rdx
	movq	%rdx, (%rcx,%r15,8)
	jns	LBB0_22
## %bb.17:
	addq	(%r13), %rdx
	movq	%rdx, (%rcx,%r15,8)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.18:
	movq	24(%r13), %rax
	jmp	LBB0_21
LBB0_19:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_20:
	movq	8(%r12), %rax
LBB0_21:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_htb_next_rb_node
LBB0_22:
	movq	16(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_24
## %bb.23:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_htb_deactivate
LBB0_24:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rcx
	callq	_htb_charge_class
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htb"

	.no_dead_strip	_htb_dequeue_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htb_dequeue_tree
_htb_dequeue_tree:                      ; @htb_dequeue_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	sxtw	x28, w2
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	sbfiz	x9, x2, #3, #32
	ldr	x8, [x8, x9]
	sxtw	x27, w22
	add	x0, x8, x27
	ldp	x8, x10, [x20, #8]
	ldr	x8, [x8, x9]
	add	x2, x8, x27
	ldr	x8, [x10, x9]
	add	x3, x8, x27
	bl	_htb_lookup_leaf
	mov	x25, x0
	mov	w8, #1
	lsl	w19, w8, w22
	lsl	x23, x28, #3
	mov	x21, x0
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	cmp	x25, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_10
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x20
	mov	x1, x25
	bl	_htb_deactivate
	ldr	x8, [x20]
	ldr	w8, [x8, x28, lsl #2]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	ldp	x9, x8, [x20, #16]
	ldr	x8, [x8, x23]
	add	x0, x8, x27
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	add	x2, x8, x27
	ldr	x8, [x9, x23]
	add	x3, x8, x27
	mov	x1, x22
	bl	_htb_lookup_leaf
	mov	x24, x0
	cmp	x25, x21
	csel	x21, x0, x21, eq
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	mov	x25, x24
	cbz	x0, LBB0_2
	b	LBB0_10
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x25, #16]
	ldr	x8, [x0, #8]
	blr	x8
	mov	x24, x0
	cmp	x0, #0
	cset	w26, ne
	mov	x0, x26
	bl	_likely
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x25, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qdisc_warn_nonwc
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x25, #24]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8]
	add	x0, x8, x27
	bl	_htb_next_rb_node
	ldp	x9, x8, [x20, #16]
	ldr	x8, [x8, x23]
	add	x0, x8, x27
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	add	x2, x8, x27
	ldr	x8, [x9, x23]
	add	x3, x8, x27
	mov	x1, x22
	bl	_htb_lookup_leaf
	mov	x25, x0
	cmp	x0, x21
	b.ne	LBB0_1
	b	LBB0_13
LBB0_10:
	mov	x24, #0
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	x21, x25
LBB0_13:
	mov	x0, x26
	bl	_likely
	cbz	x0, LBB0_11
; %bb.14:
	mov	x0, x24
	bl	_qdisc_pkt_len
	ldr	x8, [x21, #8]
	ldr	x9, [x8, x23]
	subs	x9, x9, x0
	str	x9, [x8, x23]
	b.pl	LBB0_19
; %bb.15:
	ldr	x10, [x21]
	add	x9, x10, x9
	str	x9, [x8, x28, lsl #3]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	w8, LBB0_17
; %bb.16:
	ldr	x8, [x21, #24]
	b	LBB0_18
LBB0_17:
	ldr	x8, [x20, #8]
LBB0_18:
	ldr	x8, [x8]
	add	x0, x8, x27
	bl	_htb_next_rb_node
LBB0_19:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x21
	bl	_htb_deactivate
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x24
	bl	_htb_charge_class
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htb"

	.no_dead_strip	_htb_dequeue_tree
.subsections_via_symbols
