	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gred_enqueue
_gred_enqueue:                          ## @gred_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_qdisc_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_tc_index_to_dp
	movq	16(%r15), %rcx
	cmpq	(%r15), %rax
	jae	LBB0_2
## %bb.1:
	movq	(%rcx,%rax,8), %r12
	testq	%r12, %r12
	jne	LBB0_4
LBB0_2:
	movq	8(%r15), %rax
	movq	(%rcx,%rax,8), %r12
	testq	%r12, %r12
	je	LBB0_25
## %bb.3:
	movq	_GRED_VQ_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	(%rbx), %rcx
	orq	%rax, %rcx
	movq	%rcx, (%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	_gred_wred_mode
	testq	%rax, %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_17
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	incl	60(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_qdisc_pkt_len
	addl	%eax, 56(%r12)
	movq	%r15, %rdi
	callq	_gred_wred_mode
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gred_load_wred_set
LBB0_8:
	leaq	48(%r12), %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_gred_backlog
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_red_calc_qavg
	movq	%rax, 48(%r12)
	movq	%r14, %rdi
	callq	_red_is_idling
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_red_end_of_idle_period
LBB0_10:
	movq	%r15, %rdi
	callq	_gred_wred_mode
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gred_store_wred_set
LBB0_12:
	addq	(%r14), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_red_action
	cmpl	$129, %eax
	je	LBB0_26
## %bb.13:
	cmpl	$128, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_35
## %bb.14:
	incl	(%r13)
	movq	%r15, %rdi
	callq	_gred_use_ecn
	testl	%eax, %eax
	je	LBB0_28
## %bb.15:
	movq	%rbx, %rdi
	callq	_INET_ECN_set_ce
	testl	%eax, %eax
	je	LBB0_28
## %bb.16:
	leaq	36(%r12), %rax
	jmp	LBB0_34
LBB0_17:
	movq	%r15, %rdi
	callq	_gred_rio_mode
	testq	%rax, %rax
	je	LBB0_5
## %bb.18:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.19:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	cmpq	%rbx, (%r15)
	jbe	LBB0_6
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%rdi), %rax
	cmpq	(%r12), %rax
	jge	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	$48, %rdi
	callq	_red_is_idling
	testq	%rax, %rax
	jne	LBB0_20
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	addq	48(%rax), %r13
	jmp	LBB0_20
LBB0_25:
	leaq	4(%r13), %rdi
	callq	_skb_queue_len
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_qdisc_dev
	cmpq	(%rax), %r14
	jge	LBB0_37
	jmp	LBB0_39
LBB0_26:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	incl	(%r13)
	movq	%r15, %rdi
	callq	_gred_use_harddrop
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
LBB0_27:
	addq	$32, %r12
	jmp	LBB0_29
LBB0_28:
	addq	$40, %r12
LBB0_29:
	incl	(%r12)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_qdisc_drop
	movq	_NET_XMIT_CN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	%r15, %rdi
	callq	_gred_use_ecn
	testl	%eax, %eax
	je	LBB0_27
## %bb.32:
	movq	%rbx, %rdi
	callq	_INET_ECN_set_ce
	testl	%eax, %eax
	je	LBB0_27
## %bb.33:
	leaq	28(%r12), %rax
LBB0_34:
	incl	(%rax)
LBB0_35:
	movq	8(%r12), %r14
	movq	%rbx, %rdi
	callq	_qdisc_pkt_len
	addq	%r14, %rax
	cmpq	16(%r12), %rax
	jle	LBB0_38
## %bb.36:
	incl	24(%r12)
LBB0_37:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qdisc_drop                     ## TAILCALL
LBB0_38:
	movq	%rbx, %rdi
	callq	_qdisc_pkt_len
	addq	%rax, 8(%r12)
LBB0_39:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qdisc_enqueue_tail             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRED_VQ_MASK,8,3               ## @GRED_VQ_MASK
	.comm	_NET_XMIT_CN,4,2                ## @NET_XMIT_CN
	.no_dead_strip	_gred_enqueue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gred_enqueue
_gred_enqueue:                          ; @gred_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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_qdisc_priv
	mov	x22, x0
	mov	x0, x20
	bl	_tc_index_to_dp
	ldr	x9, [x22]
	ldr	x8, [x22, #16]
	cmp	x0, x9
	b.hs	LBB0_2
; %bb.1:
	ldr	x21, [x8, x0, lsl #3]
	cbnz	x21, LBB0_4
LBB0_2:
	ldr	x9, [x22, #8]
	ldr	x21, [x8, x9, lsl #3]
	cbz	x21, LBB0_25
; %bb.3:
	ldr	x8, [x20]
Lloh0:
	adrp	x10, _GRED_VQ_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GRED_VQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	bic	x8, x8, x10
	orr	x8, x8, x9
	str	x8, [x20]
LBB0_4:
	mov	x0, x22
	bl	_gred_wred_mode
	cbz	x0, LBB0_17
LBB0_5:
	mov	x24, #0
LBB0_6:
	ldr	w8, [x21, #60]
	add	w8, w8, #1
	str	w8, [x21, #60]
	mov	x0, x20
	bl	_qdisc_pkt_len
	ldr	w8, [x21, #56]
	add	w8, w8, w0
	str	w8, [x21, #56]
	mov	x0, x22
	bl	_gred_wred_mode
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	bl	_gred_load_wred_set
LBB0_8:
	add	x23, x21, #48
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_gred_backlog
	mov	x1, x0
	mov	x0, x23
	bl	_red_calc_qavg
	str	x0, [x21, #48]
	mov	x0, x23
	bl	_red_is_idling
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_red_end_of_idle_period
LBB0_10:
	mov	x0, x22
	bl	_gred_wred_mode
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x22
	mov	x1, x21
	bl	_gred_store_wred_set
LBB0_12:
	ldr	x8, [x23]
	add	x1, x8, x24
	mov	x0, x23
	bl	_red_action
	cmp	w0, #129
	b.eq	LBB0_26
; %bb.13:
	cmp	w0, #128
	b.ne	LBB0_34
; %bb.14:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_gred_use_ecn
	cbz	w0, LBB0_28
; %bb.15:
	mov	x0, x20
	bl	_INET_ECN_set_ce
	cbz	w0, LBB0_28
; %bb.16:
	add	x8, x21, #36
	b	LBB0_33
LBB0_17:
	mov	x0, x22
	bl	_gred_rio_mode
	cbz	x0, LBB0_5
; %bb.18:
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.19:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x8, x23
	b.ls	LBB0_6
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x21]
	cmp	x9, x10
	b.ge	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	add	x0, x8, #48
	bl	_red_is_idling
	cbnz	x0, LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #48]
	add	x24, x8, x24
	b	LBB0_20
LBB0_25:
	add	x0, x19, #4
	bl	_skb_queue_len
	mov	x21, x0
	mov	x0, x19
	bl	_qdisc_dev
	ldr	x8, [x0]
	cmp	x21, x8
	b.ge	LBB0_36
	b	LBB0_38
LBB0_26:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_gred_use_harddrop
	cbz	w0, LBB0_30
LBB0_27:
	add	x8, x21, #32
	b	LBB0_29
LBB0_28:
	add	x8, x21, #40
LBB0_29:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_qdisc_drop
Lloh3:
	adrp	x8, _NET_XMIT_CN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NET_XMIT_CN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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_30:
	mov	x0, x22
	bl	_gred_use_ecn
	cbz	w0, LBB0_27
; %bb.31:
	mov	x0, x20
	bl	_INET_ECN_set_ce
	cbz	w0, LBB0_27
; %bb.32:
	add	x8, x21, #28
LBB0_33:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_34:
	ldr	x22, [x21, #8]
	mov	x0, x20
	bl	_qdisc_pkt_len
	ldr	x8, [x21, #16]
	add	x9, x0, x22
	cmp	x9, x8
	b.le	LBB0_37
; %bb.35:
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
LBB0_36:
	mov	x0, x20
	mov	x1, x19
	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
	b	_qdisc_drop
LBB0_37:
	mov	x0, x20
	bl	_qdisc_pkt_len
	ldr	x8, [x21, #8]
	add	x8, x8, x0
	str	x8, [x21, #8]
LBB0_38:
	mov	x0, x20
	mov	x1, x19
	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
	b	_qdisc_enqueue_tail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GRED_VQ_MASK,8,3               ; @GRED_VQ_MASK
	.comm	_NET_XMIT_CN,4,2                ; @NET_XMIT_CN
	.no_dead_strip	_gred_enqueue
.subsections_via_symbols
