	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fq_pie_enqueue
_fq_pie_enqueue:                        ## @fq_pie_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	%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	%rdx, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rcx
	movq	16(%rdi), %rax
	movq	(%rax), %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	1(%rcx), %esi
	movq	%rdx, %rdi
	movq	%r14, %rdx
	callq	_fq_pie_classify_flow
	cltq
	leaq	(%rax,%rax,2), %r15
	leaq	(,%r15,8), %r12
	addq	%r13, %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_pie_enqueue
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_26
## %bb.1:
	cmpl	$0, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_3
## %bb.2:
	movq	_flowchain@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_STAILQ_INSERT_TAIL
	movl	17(%rbx), %eax
	movl	%eax, 16(%r13,%r15,8)
	movq	%r12, %rdi
	callq	_fq_activate_pie
	movl	$1, (%r12)
LBB0_3:
	movq	4(%r14), %rcx
	xorl	%eax, %eax
	cmpq	9(%rbx), %rcx
	jle	LBB0_26
## %bb.4:
	movl	1(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.5:
	leaq	32(%r13), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -32(%rdx)
	jne	LBB0_7
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	decq	%rsi
	addq	$24, %rdx
	movq	%rcx, %rax
	addq	%rsi, %rax
	jne	LBB0_6
## %bb.25:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_7:
	movq	%rsi, %r9
	negq	%r9
	leal	1(%r9), %edi
	cmpl	%ecx, %edi
	jge	LBB0_23
## %bb.8:
	leaq	(%rcx,%rsi), %rbx
	leaq	(%rcx,%rsi), %rdi
	addq	$-2, %rdi
	incb	%bl
	testb	$1, %bl
	jne	LBB0_10
## %bb.9:
	movl	$1, %edx
	jmp	LBB0_13
LBB0_10:
	cmpl	$0, -8(%rdx)
	je	LBB0_12
## %bb.11:
	movq	(%rdx), %r8
	movl	$1, %ebx
	subl	%esi, %ebx
	cmpq	-24(%rdx), %r8
	cmovgl	%ebx, %r9d
LBB0_12:
	movl	$2, %edx
LBB0_13:
	subq	%rsi, %rdx
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.14:
	leaq	(%rdx,%rdx,2), %rsi
	leaq	32(,%rsi,8), %rsi
	addq	%r13, %rsi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rdx
	addq	$48, %rsi
	cmpq	%rdx, %rcx
	je	LBB0_23
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -32(%rsi)
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-24(%rsi), %rbx
	movslq	%r9d, %rdi
	leaq	(%rdi,%rdi,2), %rax
	movl	%edx, %edi
	cmpq	8(%r13,%rax,8), %rbx
	jg	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r9d, %edi
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%edi, %r9d
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, -8(%rsi)
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rsi), %rax
	movslq	%r9d, %rdi
	leaq	(%rdi,%rdi,2), %rdi
	cmpq	8(%r13,%rdi,8), %rax
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	leal	1(%rdx), %r9d
	jmp	LBB0_22
LBB0_23:
	movslq	%r9d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(,%rax,8), %rdi
	addq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pie_drop_head
	movl	$1, %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flowchain,4,2                  ## @flowchain
	.no_dead_strip	_fq_pie_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fq_pie_enqueue
_fq_pie_enqueue:                        ; @fq_pie_enqueue
	.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, x2
	mov	x19, x0
	ldp	x24, x8, [x0, #8]
	ldr	x23, [x8]
	ldur	w1, [x24, #1]
	mov	x0, x2
	mov	x2, x19
	bl	_fq_pie_classify_flow
	mov	x21, x0
	mov	w8, #24
	smaddl	x20, w0, w8, x23
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_pie_enqueue
	cbz	w0, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_10
LBB0_2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
	sxtw	x21, w21
Lloh0:
	adrp	x8, _flowchain@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flowchain@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_STAILQ_INSERT_TAIL
	ldur	w8, [x24, #17]
	mov	w9, #24
	madd	x9, x21, x9, x23
	str	w8, [x9, #16]
	mov	x0, x20
	bl	_fq_activate_pie
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
	ldur	x8, [x19, #4]
	ldur	x9, [x24, #9]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.5:
	ldur	w9, [x24, #1]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x8, #0
	add	x10, x23, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-32]
	cbnz	w11, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, #1
	add	x10, x10, #24
	cmp	x9, x8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	add	w11, w8, #1
	cmp	w11, w9
	b.ge	LBB0_16
; %bb.12:
	add	x11, x8, #1
	mov	w12, #24
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x11, x11, #1
	add	x10, x10, #24
	cmp	x9, x11
	b.eq	LBB0_16
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, w8, w12, x23
	ldr	x14, [x14, #8]
	cmp	x13, x14
	csel	w8, w11, w8, gt
	b	LBB0_13
LBB0_16:
	mov	w9, #24
	smaddl	x0, w8, w9, x23
	mov	x1, x19
	bl	_pie_drop_head
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_flowchain,4,2                  ; @flowchain
	.no_dead_strip	_fq_pie_enqueue
.subsections_via_symbols
