	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbq_dequeue_prio
_cbq_dequeue_prio:                      ## @cbq_dequeue_prio
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_qdisc_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r15
	movq	24(%r15), %rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	movq	%rbx, %r14
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_cbq_under_limit
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rdi
	callq	*8(%rdi)
	testq	%rax, %rax
	jne	LBB0_6
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 16(%rbx)
	je	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%rbx), %rcx
	movq	%rcx, 24(%r12)
	movq	$0, 24(%rbx)
	cmpq	%r15, %rbx
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	testq	%rax, %rax
	je	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_cbq_activate_class
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rbx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	8(%rbx), %rax
	movq	%rax, (%rbx)
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %r12
	movq	24(%rbx), %rbx
	cmpq	%r15, %r12
	jne	LBB0_1
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r12
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jne	LBB0_1
	jmp	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	cmpq	%r12, %r15
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rax,%rcx,8)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%r12, %r15
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_19
LBB0_6:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_qdisc_pkt_len
	subq	%rax, (%rbx)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, 32(%r15)
	movq	%r14, 24(%r15)
	cmpq	%rbx, %r14
	je	LBB0_8
## %bb.7:
	incq	40(%r14)
	incq	40(%rbx)
LBB0_8:
	movq	%r13, %rdi
	callq	_qdisc_pkt_len
	movq	%rax, (%r15)
	cmpq	$0, (%rbx)
	jg	LBB0_24
## %bb.9:
	movq	16(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rax,%rcx,8)
	movq	24(%rbx), %rax
	movq	8(%rax), %rcx
	addq	%rcx, (%rax)
	jmp	LBB0_24
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rax,%rcx,8)
	jmp	LBB0_23
LBB0_14:
	movl	$-2, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	andl	%edx, 8(%rax)
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.15:
	movq	%r15, %rdi
	callq	_cbq_activate_class
LBB0_23:
	xorl	%r13d, %r13d
LBB0_24:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cbq_dequeue_prio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbq_dequeue_prio
_cbq_dequeue_prio:                      ; @cbq_dequeue_prio
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	bl	_qdisc_priv
	mov	x19, x0
	mov	w26, #0
	ldr	x8, [x0, #16]
	sxtw	x25, w21
	ldr	x22, [x8, w21, sxtw #3]
	ldr	x20, [x22, #24]
	mov	x27, x22
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	mov	x24, x20
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_cbq_under_limit
	mov	x24, x0
	cbz	x0, LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	cmp	x8, #0
	b.le	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x20, #32]
	ldr	x8, [x0, #8]
	blr	x8
	cbnz	x0, LBB0_17
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x20, #16]
	cmp	w9, w21
	b.eq	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20, #24]
	str	x9, [x27, #24]
	str	xzr, [x20, #24]
	cmp	x20, x22
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x8, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_cbq_activate_class
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x27
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x26
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x20, #8]
	add	x8, x9, x8
	str	x8, [x20]
	mov	w8, #1
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, x20
	ldr	x20, [x20, #24]
	mov	x26, x8
	cmp	x27, x22
	b.ne	LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	w26, #0
	mov	x27, x22
	cbnz	w8, LBB0_1
	b	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
	cmp	x22, x27
	b.eq	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x27, [x8, x25, lsl #3]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	mov	x22, x27
	cbnz	x8, LBB0_9
	b	LBB0_10
LBB0_17:
	mov	x23, x0
	bl	_qdisc_pkt_len
	ldr	x8, [x20]
	sub	x8, x8, x0
	str	x8, [x20]
	stp	x24, x20, [x19, #24]
	cmp	x24, x20
	b.eq	LBB0_19
; %bb.18:
	ldr	x8, [x24, #40]
	add	x8, x8, #1
	str	x8, [x24, #40]
	ldr	x8, [x20, #40]
	add	x8, x8, #1
	str	x8, [x20, #40]
LBB0_19:
	mov	x0, x23
	bl	_qdisc_pkt_len
	str	x0, [x19]
	ldr	x8, [x20]
	cmp	x8, #0
	b.gt	LBB0_25
; %bb.20:
	ldr	x8, [x19, #16]
	str	x20, [x8, x25, lsl #3]
	ldr	x8, [x20, #24]
	ldp	x10, x9, [x8]
	add	x9, x10, x9
	str	x9, [x8]
	b	LBB0_25
LBB0_21:
	mov	x23, #0
	ldr	x8, [x19, #16]
	str	x22, [x8, x25, lsl #3]
	b	LBB0_25
LBB0_22:
	str	xzr, [x8, x25, lsl #3]
	mov	w8, #1
	lsl	w8, w8, w21
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x22
	bl	_cbq_activate_class
LBB0_24:
	mov	x23, #0
LBB0_25:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cbq_dequeue_prio
.subsections_via_symbols
