	.file	"extr_ion_system_heap.c_alloc_largest_available.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_largest_available, @function
alloc_largest_available:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR NUM_ORDERS[rip]
	test	eax, eax
	jle	.L12
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
.L4:
	mov	rax, QWORD PTR orders[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	order_to_size@PLT
	cmp	rax, rbp
	ja	.L5
	mov	rax, QWORD PTR orders[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	cmp	edx, r12d
	ja	.L5
	mov	rsi, r14
	mov	rdi, r13
	call	alloc_buffer_page@PLT
	test	rax, rax
	je	.L5
	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
.L5:
	.cfi_restore_state
	add	rbx, 1
	cmp	DWORD PTR NUM_ORDERS[rip], ebx
	jg	.L4
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	alloc_largest_available, .-alloc_largest_available
	.comm	orders,8,8
	.comm	NUM_ORDERS,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_ion_system_heap.c_alloc_largest_available.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_largest_available, %function
alloc_largest_available:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L13
	mov	r8, r0
	ldr	r0, [r7]
	cmp	r0, #0
	ble	.L2
	mov	r9, r1
	mov	r5, r2
	mov	r6, r3
	mov	r4, #0
	ldr	r10, .L13+4
.L4:
	ldr	r2, [r10]
	ldr	r0, [r2, r4, lsl #2]
	bl	order_to_size
	cmp	r0, r5
	bhi	.L5
	ldr	r3, [r10]
	ldr	r2, [r3, r4, lsl #2]
	cmp	r2, r6
	bhi	.L5
	mov	r1, r9
	mov	r0, r8
	bl	alloc_buffer_page
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	NUM_ORDERS
	.word	orders
	.size	alloc_largest_available, .-alloc_largest_available
	.comm	orders,4,4
	.comm	NUM_ORDERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
