	.file	"extr_sch_red.c_red_change.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	red_change, @function
red_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	qdisc_priv@PLT
	mov	esi, DWORD PTR TCA_RED_MAX[rip]
	mov	rcx, rsp
	mov	rbx, rax
	lea	eax, 1[rsi]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L34:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L34
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L35
.L4:
	mov	r15, rsp
	test	r12, r12
	je	.L32
	mov	ecx, DWORD PTR red_policy[rip]
	mov	rdx, r12
	xor	r8d, r8d
	mov	rdi, r15
	call	nla_parse_nested_deprecated@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR TCA_RED_PARMS[rip]
	mov	rdi, QWORD PTR [r15+rax*8]
	test	rdi, rdi
	je	.L32
	mov	rax, QWORD PTR TCA_RED_STAB[rip]
	cmp	QWORD PTR [r15+rax*8], 0
	je	.L32
	mov	rax, QWORD PTR TCA_RED_MAX_P[rip]
	mov	DWORD PTR -68[rbp], 0
	mov	r8, QWORD PTR [r15+rax*8]
	test	r8, r8
	je	.L9
	mov	rdi, r8
	call	nla_get_u32@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	rax, QWORD PTR TCA_RED_PARMS[rip]
	mov	rdi, QWORD PTR [r15+rax*8]
.L9:
	call	nla_data@PLT
	mov	edx, DWORD PTR 20[rax]
	mov	esi, DWORD PTR 24[rax]
	mov	r12, rax
	mov	edi, DWORD PTR 28[rax]
	call	red_check_params@PLT
	test	eax, eax
	je	.L32
	mov	rdx, QWORD PTR [r12]
	test	rdx, rdx
	jle	.L36
	mov	rcx, r14
	mov	rdi, r13
	lea	rsi, bfifo_qdisc_ops[rip]
	call	fifo_create_dflt@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L37
	mov	esi, 1
	mov	rdi, r14
	call	qdisc_hash_add@PLT
	mov	rdi, r13
	call	sch_tree_lock@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rbx], rax
	test	r14, r14
	je	.L18
	mov	rdi, QWORD PTR 24[rbx]
	call	qdisc_tree_flush_backlog@PLT
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 24[rbx], r14
	mov	QWORD PTR -80[rbp], rax
.L12:
	mov	rax, QWORD PTR TCA_RED_STAB[rip]
	lea	r14, 16[rbx]
	mov	rdi, QWORD PTR [r15+rax*8]
	lea	r15, 32[rbx]
	call	nla_data@PLT
	mov	r10d, DWORD PTR -68[rbp]
	mov	ecx, DWORD PTR 20[r12]
	lea	rdi, 36[rbx]
	mov	edx, DWORD PTR 24[r12]
	mov	r9d, DWORD PTR 12[r12]
	mov	r8d, DWORD PTR 16[r12]
	mov	esi, DWORD PTR 28[r12]
	push	r10
	push	rax
	call	red_set_parms@PLT
	mov	rdi, r14
	call	red_set_vars@PLT
	mov	rdi, r15
	call	del_timer@PLT
	pop	rdx
	mov	eax, DWORD PTR 8[r12]
	pop	rcx
	test	DWORD PTR TC_RED_ADAPTATIVE[rip], eax
	jne	.L38
.L14:
	mov	rax, QWORD PTR 24[rbx]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L39
.L15:
	mov	rdi, r13
	xor	r12d, r12d
	call	sch_tree_unlock@PLT
	mov	esi, 1
	mov	rdi, r13
	call	red_offload@PLT
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	qdisc_put@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, r13
	call	sch_tree_lock@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdi, r14
	call	red_start_of_idle_period@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR HZ[rip]
	mov	rdi, r15
	mov	esi, eax
	shr	esi, 31
	add	esi, eax
	sar	esi
	movsx	rsi, esi
	add	rsi, QWORD PTR jiffies[rip]
	call	mod_timer@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, r14
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L12
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	red_change, .-red_change
	.comm	red_policy,4,4
	.comm	jiffies,8,8
	.comm	bfifo_qdisc_ops,4,4
	.comm	TC_RED_ADAPTATIVE,4,4
	.comm	TCA_RED_STAB,8,8
	.comm	TCA_RED_PARMS,8,8
	.comm	TCA_RED_MAX_P,8,8
	.comm	TCA_RED_MAX,4,4
	.comm	HZ,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sch_red.c_red_change.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	red_change, %function
red_change:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r4, r1
	ldr	r3, .L31
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, r0
	bl	qdisc_priv
	ldr	r3, .L31+4
	cmp	r4, #0
	ldr	r1, [r3]
	lsl	r3, r1, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	beq	.L24
	mov	r5, r0
	mov	r0, #0
	ldr	r3, .L31+8
	str	r0, [sp]
	add	r8, sp, #16
	mov	r2, r4
	mov	r0, r8
	ldr	r3, [r3]
	bl	nla_parse_nested_deprecated
	cmp	r0, #0
	blt	.L1
	ldr	r4, .L31+12
	ldr	r3, [r4]
	ldr	r0, [r8, r3, lsl #2]
	cmp	r0, #0
	beq	.L24
	ldr	r9, .L31+16
	ldr	r3, [r9]
	ldr	r3, [r8, r3, lsl #2]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r3, [r8, r3, lsl #2]
	cmp	r3, #0
	streq	r3, [fp, #-48]
	beq	.L6
	mov	r0, r3
	bl	nla_get_u32
	ldr	r3, [r4]
	str	r0, [fp, #-48]
	ldr	r0, [r8, r3, lsl #2]
.L6:
	bl	nla_data
	ldr	r2, [r0, #16]
	ldr	r1, [r0, #20]
	mov	r6, r0
	ldr	r0, [r0, #24]
	bl	red_check_params
	cmp	r0, #0
	beq	.L24
	ldr	r2, [r6]
	cmp	r2, #0
	ble	.L26
	mov	r3, r10
	ldr	r1, .L31+24
	mov	r0, r7
	bl	fifo_create_dflt
	mov	r10, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L27
	mov	r1, #1
	mov	r0, r10
	bl	qdisc_hash_add
	mov	r0, r7
	bl	sch_tree_lock
	ldr	r2, [r6, #4]
	ldr	r3, [r6]
	cmp	r10, #0
	moveq	r4, r10
	stm	r5, {r2, r3}
	beq	.L9
	ldr	r0, [r5, #12]
	bl	qdisc_tree_flush_backlog
	ldr	r4, [r5, #12]
	str	r10, [r5, #12]
.L9:
	ldr	r3, [r9]
	ldr	r2, [r6, #8]
	ldr	r0, [r8, r3, lsl #2]
	ldr	r3, [r6, #12]
	ldr	r9, [r6, #24]
	ldr	r8, [r6, #20]
	ldr	r10, [r6, #16]
	str	r3, [fp, #-56]
	str	r2, [fp, #-52]
	bl	nla_data
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-56]
	str	r0, [sp, #8]
	ldr	r0, [fp, #-48]
	mov	r1, r9
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r10
	str	r0, [sp, #12]
	add	r8, r5, #8
	add	r0, r5, #20
	bl	red_set_parms
	add	r9, r5, #16
	mov	r0, r8
	bl	red_set_vars
	mov	r0, r9
	bl	del_timer
	ldr	r3, .L31+28
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L28
.L11:
	ldr	r3, [r5, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
.L12:
	mov	r0, r7
	bl	sch_tree_unlock
	mov	r0, r7
	mov	r1, #1
	bl	red_offload
	subs	r0, r4, #0
	beq	.L1
	bl	qdisc_put
	mov	r0, #0
	b	.L1
.L24:
	ldr	r3, .L31+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, r7
	bl	sch_tree_lock
	ldr	r2, [r6, #4]
	ldr	r3, [r6]
	mov	r4, #0
	stm	r5, {r2, r3}
	b	.L9
.L29:
	mov	r0, r8
	bl	red_start_of_idle_period
	b	.L12
.L28:
	ldr	r3, .L31+36
	ldr	r2, .L31+40
	ldr	r3, [r3]
	ldr	r1, [r2]
	add	r3, r3, r3, lsr #31
	mov	r0, r9
	add	r1, r1, r3, asr #1
	bl	mod_timer
	b	.L11
.L27:
	mov	r0, r10
	bl	PTR_ERR
	b	.L1
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	TCA_RED_MAX
	.word	red_policy
	.word	TCA_RED_PARMS
	.word	TCA_RED_STAB
	.word	TCA_RED_MAX_P
	.word	bfifo_qdisc_ops
	.word	TC_RED_ADAPTATIVE
	.word	EINVAL
	.word	HZ
	.word	jiffies
	.size	red_change, .-red_change
	.comm	red_policy,4,4
	.comm	jiffies,4,4
	.comm	bfifo_qdisc_ops,4,4
	.comm	TC_RED_ADAPTATIVE,4,4
	.comm	TCA_RED_STAB,4,4
	.comm	TCA_RED_PARMS,4,4
	.comm	TCA_RED_MAX_P,4,4
	.comm	TCA_RED_MAX,4,4
	.comm	HZ,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
