	.file	"extr_page_alloc.c_find_suitable_fallback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	find_suitable_fallback
	.type	find_suitable_fallback, @function
find_suitable_fallback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR [rdi], 0
	mov	DWORD PTR 12[rsp], ecx
	mov	QWORD PTR [rsp], r8
	je	.L2
	movsx	rax, edx
	mov	r14d, edx
	mov	rdx, QWORD PTR fallbacks[rip]
	mov	DWORD PTR [r8], 0
	lea	r12, 0[0+rax*8]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	r13d, DWORD PTR [rax]
	cmp	r13d, DWORD PTR MIGRATE_TYPES[rip]
	je	.L2
	mov	rbp, rdi
	mov	r15d, esi
	mov	ebx, 4
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r13d
	mov	rdi, rbp
	call	free_area_empty@PLT
	test	rax, rax
	jne	.L7
	mov	esi, r14d
	mov	edi, r15d
	call	can_steal_fallback@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR [rax], 1
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	je	.L1
	mov	rax, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L1
.L7:
	mov	rax, QWORD PTR fallbacks[rip]
	mov	rax, QWORD PTR [rax+r12]
	mov	r13d, DWORD PTR [rax+rbx]
	add	rbx, 4
	cmp	DWORD PTR MIGRATE_TYPES[rip], r13d
	jne	.L4
.L2:
	mov	r13d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	find_suitable_fallback, .-find_suitable_fallback
	.comm	fallbacks,8,8
	.comm	MIGRATE_TYPES,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_page_alloc.c_find_suitable_fallback.c"
	.text
	.align	2
	.global	find_suitable_fallback
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_suitable_fallback, %function
find_suitable_fallback:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r0, [r0]
	sub	sp, sp, #12
	cmp	r0, #0
	ldr	r10, [sp, #48]
	str	r1, [sp]
	str	r3, [sp, #4]
	beq	.L2
	mov	r9, r2
	mov	r2, #0
	ldr	r6, .L16
	ldr	r7, .L16+4
	ldr	r3, [r6]
	str	r2, [r10]
	ldr	r3, [r3, r9, lsl #2]
	ldr	r2, [r7]
	ldr	fp, [r3]
	lsl	r8, r9, #2
	cmp	fp, r2
	beq	.L2
	mov	r4, #4
.L4:
	mov	r1, fp
	mov	r0, r5
	bl	free_area_empty
	cmp	r0, #0
	bne	.L7
	mov	r1, r9
	ldr	r0, [sp]
	bl	can_steal_fallback
	cmp	r0, #0
	beq	.L5
	mov	r2, #1
	str	r2, [r10]
.L1:
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r2, [r10]
	cmp	r2, #0
	bne	.L1
.L7:
	ldr	r3, [r6]
	ldr	r2, [r7]
	ldr	r3, [r3, r8]
	ldr	fp, [r3, r4]
	add	r4, r4, #4
	cmp	r2, fp
	bne	.L4
.L2:
	mvn	fp, #0
	mov	r0, fp
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	fallbacks
	.word	MIGRATE_TYPES
	.size	find_suitable_fallback, .-find_suitable_fallback
	.comm	fallbacks,4,4
	.comm	MIGRATE_TYPES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
