	.file	"extr_mesh.c_reserve.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reserve, @function
reserve:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	cmp	edi, esi
	jge	.L2
	cmp	QWORD PTR 8[rbx], 0
	mov	ebp, edx
	je	.L3
	test	edi, edi
	jne	.L15
.L3:
	mov	edi, 16
	call	max@PLT
	imul	ebp, eax
	mov	r12d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	mov	edi, eax
	mov	edx, ebp
	call	HeapAlloc@PLT
.L4:
	test	rax, rax
	je	.L16
	mov	QWORD PTR 8[rbx], rax
	mov	DWORD PTR [rbx], r12d
.L2:
	mov	eax, DWORD PTR TRUE[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	add	edi, edi
	call	max@PLT
	mov	r13, QWORD PTR 8[rbx]
	imul	ebp, eax
	mov	r12d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r13
	xor	esi, esi
	mov	edi, eax
	mov	ecx, ebp
	call	HeapReAlloc@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	reserve, .-reserve
	.comm	TRUE,4,4
	.comm	FALSE,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_mesh.c_reserve.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reserve, %function
reserve:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	cmp	r0, r1
	bge	.L2
	ldr	r3, [r4, #4]
	subs	r7, r0, #0
	movne	r7, #1
	cmp	r3, #0
	moveq	r7, #0
	cmp	r7, #0
	mov	r5, r2
	bne	.L9
	mov	r0, #16
	bl	max
	mov	r6, r0
	bl	GetProcessHeap
	mov	r1, r7
	mul	r2, r6, r5
	bl	HeapAlloc
.L4:
	cmp	r0, #0
	strne	r0, [r4, #4]
	strne	r6, [r4]
	beq	.L10
.L2:
	ldr	r3, .L11
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	lsl	r0, r0, #1
	bl	max
	mov	r6, r0
	bl	GetProcessHeap
	mov	r1, #0
	mul	r3, r5, r6
	ldr	r2, [r4, #4]
	bl	HeapReAlloc
	b	.L4
.L10:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	TRUE
	.word	FALSE
	.size	reserve, .-reserve
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
