	.file	"extr_sch_qfq.c_qfq_deactivate_class.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qfq_deactivate_class, @function
qfq_deactivate_class:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdx, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rsi]
	mov	rbx, QWORD PTR 8[rsi]
	mov	DWORD PTR 4[rsi], eax
	mov	rsi, rbx
	call	qfq_slot_remove@PLT
	mov	eax, DWORD PTR 48[rbx]
	test	eax, eax
	jne	.L2
	mov	rdx, QWORD PTR IR[rip]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rdx, QWORD PTR EB[rip]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rdx, QWORD PTR IB[rip]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR ER[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	test_bit@PLT
	test	rax, rax
	jne	.L3
.L12:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR ER[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
.L4:
	call	__clear_bit@PLT
.L6:
	mov	esi, DWORD PTR 8[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	qfq_update_eligible@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 40[rbx]
	lea	rdi, [rax+rdx*4]
	call	hlist_empty@PLT
	test	rax, rax
	je	.L6
	mov	rdi, rbx
	call	qfq_slot_scan@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	qfq_round_down@PLT
	mov	r12, rax
	cmp	QWORD PTR 24[rbx], rax
	je	.L6
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR ER[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR IR[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR EB[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rdx, QWORD PTR IB[rip]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, [rax+rdx*8]
	call	__clear_bit@PLT
	mov	rcx, QWORD PTR 16[rbx]
	mov	QWORD PTR 24[rbx], r12
	mov	rsi, rbx
	mov	eax, 2
	mov	rdi, rbp
	sal	rax, cl
	add	r12, rax
	mov	QWORD PTR 32[rbx], r12
	call	qfq_calc_state@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	cdqe
	lea	rsi, [rdx+rax*8]
	call	__set_bit@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rbx]
	mov	r12d, 1
	mov	r8, QWORD PTR ER[rip]
	mov	ecx, edi
	lea	rsi, [rax+r8*8]
	mov	rax, r12
	sal	rax, cl
	mov	rdx, QWORD PTR [rsi]
	neg	rax
	test	rax, rdx
	jne	.L4
	mov	rax, -1
	mov	r13, -1
	sal	rax, cl
	mov	rdi, rax
	not	rdi
	and	rdi, rdx
	jne	.L14
.L5:
	mov	rdx, QWORD PTR EB[rip]
	mov	rcx, r8
	mov	rsi, r13
	mov	rdi, rbp
	call	qfq_move_groups@PLT
	mov	rcx, QWORD PTR IR[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	rdx, QWORD PTR IB[rip]
	call	qfq_move_groups@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	call	__fls@PLT
	mov	r8, QWORD PTR ER[rip]
	mov	ecx, eax
	sal	r12, cl
	mov	r13, r12
	neg	r13
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	qfq_deactivate_class, .-qfq_deactivate_class
	.comm	IR,8,8
	.comm	IB,8,8
	.comm	ER,8,8
	.comm	EB,8,8
	.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_qfq.c_qfq_deactivate_class.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qfq_deactivate_class, %function
qfq_deactivate_class:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r1]
	ldr	r5, [r1, #8]
	str	r3, [r1, #4]
	mov	r2, r1
	mov	r1, r5
	mov	r4, r0
	bl	qfq_slot_remove
	ldr	r3, [r5, #28]
	cmp	r3, #0
	bne	.L2
	ldr	r8, .L14
	ldr	r3, [r4]
	ldr	r1, [r8]
	ldr	r9, .L14+4
	add	r1, r3, r1, lsl #2
	ldr	r0, [r5]
	bl	__clear_bit
	ldr	r3, [r4]
	ldr	r1, [r9]
	ldr	r7, .L14+8
	add	r1, r3, r1, lsl #2
	ldr	r0, [r5]
	bl	__clear_bit
	ldr	r3, [r4]
	ldr	r1, [r7]
	ldr	r6, .L14+12
	add	r1, r3, r1, lsl #2
	ldr	r0, [r5]
	bl	__clear_bit
	ldr	r1, [r6]
	ldr	r3, [r4]
	ldr	r0, [r5]
	add	r1, r3, r1, lsl #2
	bl	test_bit
	cmp	r0, #0
	bne	.L3
.L11:
	ldr	r3, [r6]
	ldr	r1, [r4]
	ldr	r0, [r5]
	add	r1, r1, r3, lsl #2
.L4:
	bl	__clear_bit
.L6:
	mov	r0, r4
	ldr	r1, [r4, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	qfq_update_eligible
.L2:
	ldr	r0, [r5, #4]
	ldr	r3, [r5, #24]
	add	r0, r3, r0, lsl #2
	bl	hlist_empty
	cmp	r0, #0
	beq	.L6
	mov	r0, r5
	bl	qfq_slot_scan
	add	r3, r5, #8
	ldmia	r3, {r2-r3}
	ldr	r0, [r0]
	bl	qfq_round_down
	ldr	r3, [r5, #16]
	mov	r6, r0
	cmp	r3, r0
	beq	.L6
	ldr	r2, .L14+12
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [r5]
	add	r1, r3, r1, lsl #2
	bl	__clear_bit
	ldr	r2, .L14
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [r5]
	add	r1, r3, r1, lsl #2
	bl	__clear_bit
	ldr	r2, .L14+4
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [r5]
	add	r1, r3, r1, lsl #2
	bl	__clear_bit
	ldr	r2, .L14+8
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [r5]
	add	r1, r3, r1, lsl #2
	bl	__clear_bit
	mov	r3, #2
	ldr	r0, [r5, #8]
	str	r6, [r5, #16]
	add	r6, r6, r3, lsl r0
	mov	r1, r5
	mov	r0, r4
	str	r6, [r5, #20]
	bl	qfq_calc_state
	mov	r1, r0
	ldr	r3, [r4]
	ldr	r0, [r5]
	add	r1, r3, r1, lsl #2
	bl	__set_bit
	b	.L6
.L3:
	mov	r10, #1
	ldr	r3, [r6]
	ldr	r1, [r4]
	ldr	r0, [r5]
	ldr	ip, [r1, r3, lsl #2]
	lsl	r2, r10, r0
	rsb	r2, r2, #0
	tst	r2, ip
	add	r1, r1, r3, lsl #2
	bne	.L4
	mvn	r1, #0
	bics	r0, ip, r1, lsl r0
	moveq	r10, r1
	bne	.L13
.L5:
	mov	r1, r10
	ldr	r2, [r9]
	mov	r0, r4
	bl	qfq_move_groups
	mov	r1, r10
	mov	r0, r4
	ldr	r3, [r8]
	ldr	r2, [r7]
	bl	qfq_move_groups
	b	.L11
.L13:
	bl	__fls
	lsl	r10, r10, r0
	ldr	r3, [r6]
	rsb	r10, r10, #0
	b	.L5
.L15:
	.align	2
.L14:
	.word	IR
	.word	EB
	.word	IB
	.word	ER
	.size	qfq_deactivate_class, .-qfq_deactivate_class
	.comm	IR,4,4
	.comm	IB,4,4
	.comm	ER,4,4
	.comm	EB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
