	.file	"extr_sch_sfq.c_sfq_dequeue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sfq_dequeue, @function
sfq_dequeue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	qdisc_priv@PLT
	mov	r12, QWORD PTR 8[rax]
	test	r12, r12
	je	.L1
	mov	rbp, QWORD PTR [r12]
	mov	rdx, QWORD PTR 24[rax]
	mov	r13, rax
	lea	rax, 0[rbp+rbp*4]
	lea	rbx, [rdx+rax*8]
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jg	.L3
	mov	rsi, QWORD PTR 0[r13]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rbp, QWORD PTR [rbx]
	add	rax, rsi
	mov	rcx, rbx
	mov	QWORD PTR 8[rbx], rax
	lea	rax, 0[rbp+rbp*4]
	lea	rbx, [rdx+rax*8]
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	jle	.L4
	mov	QWORD PTR 8[r13], rcx
.L3:
	mov	rdi, rbx
	call	slot_dequeue_head@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12, rax
	call	sfq_dec@PLT
	mov	rsi, r12
	mov	rdi, r14
	call	qdisc_bstats_update@PLT
	sub	DWORD PTR [r14], 1
	mov	rsi, r12
	mov	rdi, r14
	call	qdisc_qstats_backlog_dec@PLT
	mov	rdi, r12
	call	qdisc_pkt_len@PLT
	sub	DWORD PTR 32[rbx], eax
	cmp	QWORD PTR 16[rbx], 0
	jne	.L5
	mov	rax, QWORD PTR 16[r13]
	mov	rdx, QWORD PTR 24[rbx]
	mov	ecx, DWORD PTR SFQ_EMPTY_SLOT[rip]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR [rbx]
	cmp	rax, rbp
	je	.L13
	mov	rdx, QWORD PTR 8[r13]
	mov	QWORD PTR [rdx], rax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r12
	call	qdisc_pkt_len@PLT
	mov	rdi, rax
	call	SFQ_ALLOT_SIZE@PLT
	sub	QWORD PTR 8[rbx], rax
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	QWORD PTR 8[r13], 0
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sfq_dequeue, .-sfq_dequeue
	.comm	SFQ_EMPTY_SLOT,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_sfq.c_sfq_dequeue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfq_dequeue, %function
sfq_dequeue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	bl	qdisc_priv
	ldr	r6, [r0, #4]
	cmp	r6, #0
	beq	.L1
	ldr	r5, [r6]
	ldr	r1, [r0, #12]
	add	r4, r5, r5, lsl #2
	add	r4, r1, r4, lsl #2
	ldr	r3, [r4, #4]
	mov	r7, r0
	cmp	r3, #0
	bgt	.L3
	ldr	r0, [r0]
.L4:
	ldr	r5, [r4]
	add	r3, r0, r3
	add	r2, r5, r5, lsl #2
	str	r3, [r4, #4]
	mov	ip, r4
	add	r4, r1, r2, lsl #2
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L4
	str	ip, [r7, #4]
.L3:
	mov	r0, r4
	bl	slot_dequeue_head
	mov	r6, r0
	mov	r1, r5
	mov	r0, r7
	bl	sfq_dec
	mov	r1, r6
	mov	r0, r8
	bl	qdisc_bstats_update
	ldr	r3, [r8]
	mov	r1, r6
	sub	r3, r3, #1
	str	r3, [r8]
	mov	r0, r8
	bl	qdisc_qstats_backlog_dec
	mov	r0, r6
	bl	qdisc_pkt_len
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #8]
	sub	r3, r3, r0
	cmp	r2, #0
	str	r3, [r4, #16]
	bne	.L5
	ldr	r3, [r4]
	ldr	r1, .L13
	cmp	r3, r5
	ldr	ip, [r1]
	ldr	r0, [r4, #12]
	ldr	r1, [r7, #8]
	ldrne	r2, [r7, #4]
	str	ip, [r1, r0, lsl #2]
	streq	r2, [r7, #4]
	strne	r3, [r2]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r6
	bl	qdisc_pkt_len
	bl	SFQ_ALLOT_SIZE
	ldr	r3, [r4, #4]
	sub	r3, r3, r0
	str	r3, [r4, #4]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	SFQ_EMPTY_SLOT
	.size	sfq_dequeue, .-sfq_dequeue
	.comm	SFQ_EMPTY_SLOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
