	.file	"extr_swap_slots.c_check_cache_active.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_cache_active, @function
check_cache_active:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR swap_slot_cache_enabled[rip]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR swap_slot_cache_initialized[rip]
	test	eax, eax
	jne	.L18
.L14:
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	eax, eax
	call	get_nr_swap_pages@PLT
	mov	edx, DWORD PTR swap_slot_cache_active[rip]
	mov	rbx, rax
	xor	eax, eax
	test	edx, edx
	je	.L19
	call	num_online_cpus@PLT
	imul	rax, QWORD PTR THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE[rip]
	cmp	rax, rbx
	jg	.L20
.L5:
	mov	eax, DWORD PTR swap_slot_cache_active[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	eax, eax
	call	deactivate_swap_slots_cache@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	call	num_online_cpus@PLT
	imul	rax, QWORD PTR THRESHOLD_ACTIVATE_SWAP_SLOTS_CACHE[rip]
	cmp	rax, rbx
	jge	.L5
	xor	eax, eax
	call	reactivate_swap_slots_cache@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	check_cache_active, .-check_cache_active
	.comm	swap_slot_cache_initialized,4,4
	.comm	swap_slot_cache_enabled,4,4
	.comm	swap_slot_cache_active,4,4
	.comm	THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE,8,8
	.comm	THRESHOLD_ACTIVATE_SWAP_SLOTS_CACHE,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_swap_slots.c_check_cache_active.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_cache_active, %function
check_cache_active:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	ldr	r0, [r3]
	cmp	r0, #0
	bxeq	lr
	ldr	r3, .L20+4
	ldr	r0, [r3]
	cmp	r0, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	bl	get_nr_swap_pages
	ldr	r5, .L20+8
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L18
	bl	num_online_cpus
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mul	r0, r3, r0
	cmp	r0, r4
	bgt	.L19
.L5:
	ldr	r0, [r5]
	pop	{r4, r5, r6, pc}
.L19:
	bl	deactivate_swap_slots_cache
	b	.L5
.L18:
	bl	num_online_cpus
	ldr	r3, .L20+16
	ldr	r3, [r3]
	mul	r0, r3, r0
	cmp	r0, r4
	bge	.L5
	bl	reactivate_swap_slots_cache
	b	.L5
.L21:
	.align	2
.L20:
	.word	swap_slot_cache_enabled
	.word	swap_slot_cache_initialized
	.word	swap_slot_cache_active
	.word	THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE
	.word	THRESHOLD_ACTIVATE_SWAP_SLOTS_CACHE
	.size	check_cache_active, .-check_cache_active
	.comm	swap_slot_cache_initialized,4,4
	.comm	swap_slot_cache_enabled,4,4
	.comm	swap_slot_cache_active,4,4
	.comm	THRESHOLD_DEACTIVATE_SWAP_SLOTS_CACHE,4,4
	.comm	THRESHOLD_ACTIVATE_SWAP_SLOTS_CACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
