	.file	"extr_vmscan.c_compaction_ready.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compaction_ready, @function
compaction_ready:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR PAGE_ALLOC_COSTLY_ORDER[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR [rsi], rax
	ja	.L7
.L2:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	ecx, DWORD PTR KSWAPD_ZONE_BALANCE_GAP_RATIO[rip]
	mov	eax, DWORD PTR [rdi]
	mov	rbp, rdi
	mov	rbx, rsi
	add	eax, ecx
	sub	eax, 1
	cdq
	idiv	ecx
	mov	r12d, eax
	call	low_wmark_pages@PLT
	mov	esi, r12d
	mov	edi, eax
	call	min@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	high_wmark_pages@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	edx, 2
	xor	r8d, r8d
	add	rax, r12
	xor	esi, esi
	mov	rdi, rbp
	sal	rdx, cl
	xor	ecx, ecx
	add	rdx, rax
	call	zone_watermark_ok_safe@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	compaction_deferred@PLT
	test	rax, rax
	jne	.L1
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	compaction_suitable@PLT
	test	eax, eax
	je	.L2
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	compaction_ready, .-compaction_ready
	.comm	PAGE_ALLOC_COSTLY_ORDER,8,8
	.comm	KSWAPD_ZONE_BALANCE_GAP_RATIO,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_vmscan.c_compaction_ready.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compaction_ready, %function
compaction_ready:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L8
	ldr	r2, [r1]
	ldr	r3, [r3]
	sub	sp, sp, #8
	cmp	r2, r3
	bhi	.L7
.L2:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mov	r4, r0
	mov	r6, r1
	bl	low_wmark_pages
	ldr	r2, .L8+4
	ldr	r3, [r4]
	ldr	r1, [r2]
	mov	r5, r0
	add	r0, r1, r3
	sub	r0, r0, #1
	bl	__aeabi_idiv
	mov	r1, r0
	mov	r0, r5
	bl	min
	mov	r5, r0
	mov	r0, r4
	bl	high_wmark_pages
	mov	r3, #0
	mov	r1, #2
	ldr	r2, [r6]
	add	r0, r0, r5
	add	r2, r0, r1, lsl r2
	str	r3, [sp]
	mov	r1, r3
	mov	r0, r4
	bl	zone_watermark_ok_safe
	mov	r5, r0
	mov	r0, r4
	bl	compaction_deferred
	cmp	r0, #0
	bne	.L1
	mov	r0, r4
	ldr	r1, [r6]
	bl	compaction_suitable
	cmp	r0, #0
	beq	.L2
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	PAGE_ALLOC_COSTLY_ORDER
	.word	KSWAPD_ZONE_BALANCE_GAP_RATIO
	.size	compaction_ready, .-compaction_ready
	.comm	PAGE_ALLOC_COSTLY_ORDER,4,4
	.comm	KSWAPD_ZONE_BALANCE_GAP_RATIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
