	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fq_codel_enqueue
_fq_codel_enqueue:                      ## @fq_codel_enqueue
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movl	1(%r15), %esi
	movq	%rdx, %rdi
	movq	%r14, %rdx
	callq	_fq_codel_classify_flow
	cltq
	leaq	(%rax,%rax,4), %r12
	leaq	(,%r12,8), %rdi
	addq	(%r14), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_codel_enqueue
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.1:
	movq	(%r14), %rax
	cmpl	$0, (%rax,%r12,8)
	jne	LBB0_3
## %bb.2:
	leaq	(%rax,%r12,8), %rsi
	leaq	8(%r14), %rdi
	movq	_flowchain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_STAILQ_INSERT_TAIL
	movl	17(%r15), %eax
	movq	(%r14), %rcx
	movl	%eax, 32(%rcx,%r12,8)
	movl	$0, 16(%rcx,%r12,8)
	movq	$0, 24(%rcx,%r12,8)
	movl	$1, (%rcx,%r12,8)
LBB0_3:
	movq	4(%r14), %rax
	xorl	%ebx, %ebx
	cmpq	9(%r15), %rax
	jle	LBB0_26
## %bb.4:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D
	movl	1(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.5:
	movq	(%r14), %r10
	leaq	48(%r10), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -48(%rsi)
	jne	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	decq	%rdi
	addq	$40, %rsi
	movq	%rcx, %rdx
	addq	%rdi, %rdx
	jne	LBB0_6
## %bb.25:
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_7:
	movq	%rdi, %r11
	negq	%r11
	leal	1(%r11), %ebx
	cmpl	%ecx, %ebx
	jge	LBB0_23
## %bb.8:
	leaq	(%rcx,%rdi), %rbx
	leaq	(%rcx,%rdi), %r8
	addq	$-2, %r8
	incb	%bl
	testb	$1, %bl
	jne	LBB0_10
## %bb.9:
	movl	$1, %esi
	jmp	LBB0_13
LBB0_10:
	cmpl	$0, -8(%rsi)
	je	LBB0_12
## %bb.11:
	movq	(%rsi), %r9
	movl	$1, %ebx
	subl	%edi, %ebx
	cmpq	-40(%rsi), %r9
	cmovgl	%ebx, %r11d
LBB0_12:
	movl	$2, %esi
LBB0_13:
	subq	%rdi, %rsi
	testq	%r8, %r8
	je	LBB0_23
## %bb.14:
	leaq	(%rsi,%rsi,4), %rdi
	leaq	(%r10,%rdi,8), %rdi
	addq	$48, %rdi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rsi
	addq	$80, %rdi
	cmpq	%rsi, %rcx
	je	LBB0_23
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -48(%rdi)
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-40(%rdi), %rax
	movslq	%r11d, %rbx
	leaq	(%rbx,%rbx,4), %rdx
	movl	%esi, %ebx
	cmpq	8(%r10,%rdx,8), %rax
	jg	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r11d, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %r11d
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -8(%rdi)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rdi), %rax
	movslq	%r11d, %rdx
	leaq	(%rdx,%rdx,4), %rdx
	cmpq	8(%r10,%rdx,8), %rax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	leal	1(%rsi), %r11d
	jmp	LBB0_22
LBB0_23:
	movslq	%r11d, %rbx
	leaq	(%rbx,%rbx,4), %rax
	leaq	(%r10,%rax,8), %rdi
	movq	%r14, %rsi
	callq	_codel_drop_head
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_D
	movl	$1, %ebx
LBB0_26:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flowchain,4,2                  ## @flowchain
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"over limit"

L_.str.1:                               ## @.str.1
	.asciz	"maxidx = %d"

	.no_dead_strip	_fq_codel_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fq_codel_enqueue
_fq_codel_enqueue:                      ; @fq_codel_enqueue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldur	w1, [x22, #1]
	mov	x0, x2
	mov	x2, x19
	bl	_fq_codel_classify_flow
	mov	x20, x0
	ldr	x8, [x19]
	mov	w9, #40
	smaddl	x0, w0, w9, x8
	mov	x1, x21
	mov	x2, x19
	bl	_codel_enqueue
	cbz	w0, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	sxtw	x20, w20
	ldr	x8, [x19]
	mov	w9, #40
	madd	x1, x20, x9, x8
	ldr	w8, [x1]
	cbnz	w8, LBB0_4
; %bb.3:
	add	x0, x19, #8
Lloh0:
	adrp	x8, _flowchain@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flowchain@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_STAILQ_INSERT_TAIL
	ldur	w8, [x22, #17]
	ldr	x9, [x19]
	mov	w10, #40
	madd	x9, x20, x10, x9
	str	w8, [x9, #32]
	str	wzr, [x9, #16]
	str	xzr, [x9, #24]
	mov	w8, #1
	str	w8, [x9]
LBB0_4:
	ldur	x8, [x19, #4]
	ldur	x9, [x22, #9]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D
	ldur	w9, [x22, #1]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x20, #0
	ldr	x8, [x19]
	add	x10, x8, #48
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-48]
	cbnz	w11, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	add	x10, x10, #40
	cmp	x9, x20
	b.ne	LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
	add	w11, w20, #1
	cmp	w11, w9
	b.ge	LBB0_16
; %bb.12:
	add	x11, x20, #1
	mov	w12, #40
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x11, #1
	add	x10, x10, #40
	cmp	x9, x11
	b.eq	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x10, #-8]
	cbz	w13, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x13, [x10]
	smaddl	x14, w20, w12, x8
	ldr	x14, [x14, #8]
	cmp	x13, x14
	csel	w20, w11, w20, gt
	b	LBB0_13
LBB0_16:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_17:
	mov	w9, #40
	smaddl	x0, w20, w9, x8
	mov	x1, x19
	bl	_codel_drop_head
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_flowchain,4,2                  ; @flowchain
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"over limit"

l_.str.1:                               ; @.str.1
	.asciz	"maxidx = %d"

	.no_dead_strip	_fq_codel_enqueue
.subsections_via_symbols
