	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fq_codel_dequeue
_fq_codel_dequeue:                      ## @fq_codel_dequeue
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	sete	%r14b
	movq	%r15, %r12
	cmoveq	%rbx, %r12
	movq	%r12, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movb	%r14b, -41(%rbp)                ## 1-byte Spill
	movq	_flowchain@GOTPCREL(%rip), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%rbx)
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_STAILQ_REMOVE_HEAD
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%r15, %r12
	cmoveq	%rbx, %r12
	movq	%r12, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	jne	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	testq	%rax, %rax
	jns	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	1(%r13), %rax
	movq	%rax, (%rbx)
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_TAIL
	movq	%r12, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fqc_codel_dequeue
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_TAIL
	jmp	LBB0_13
LBB0_11:
	movq	(%rax), %rcx
	subq	%rcx, (%rbx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_flowchain,4,2                  ## @flowchain
	.no_dead_strip	_fq_codel_dequeue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fq_codel_dequeue
_fq_codel_dequeue:                      ; @fq_codel_dequeue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x23, [x0, #8]
	add	x20, x0, #4
	mov	x0, x20
	bl	_STAILQ_EMPTY
	cmp	x0, #0
	csel	x21, x20, x19, eq
	cset	w25, eq
	mov	x0, x21
	bl	_STAILQ_EMPTY
	cbz	x0, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x24, _flowchain@GOTPAGE
Lloh1:
	ldr	x24, [x24, _flowchain@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_STAILQ_EMPTY
	cbz	x0, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_STAILQ_EMPTY
	cmp	x0, #0
	csel	x21, x20, x19, eq
	cset	w25, eq
	mov	x0, x21
	bl	_STAILQ_EMPTY
	cbnz	x0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_STAILQ_FIRST
	mov	x22, x0
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	tbz	x8, #63, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x9, [x23, #1]
	add	x8, x9, x8
	str	x8, [x22]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_STAILQ_REMOVE_HEAD
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_STAILQ_INSERT_TAIL
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_fqc_codel_dequeue
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	tbz	w25, #0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_STAILQ_REMOVE_HEAD
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x22
	bl	_STAILQ_INSERT_TAIL
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x22, #8]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_STAILQ_REMOVE_HEAD
	b	LBB0_5
LBB0_13:
	ldr	x8, [x0]
	ldr	x9, [x22]
	sub	x8, x9, x8
	str	x8, [x22]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_flowchain,4,2                  ; @flowchain
	.no_dead_strip	_fq_codel_dequeue
.subsections_via_symbols
