	.file	"extr_handle-scope-allocator.c_jerryx_handle_scope_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	jerryx_handle_scope_alloc
	.type	jerryx_handle_scope_alloc, @function
jerryx_handle_scope_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR jerryx_handle_scope_pool[rip]
	cmp	rax, QWORD PTR JERRYX_SCOPE_PRELIST_SIZE[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	jge	.L2
	mov	rcx, QWORD PTR jerryx_handle_scope_pool[rip+16]
	lea	rdx, [rax+rax*2]
	lea	r12, [rcx+rdx*8]
.L3:
	add	rax, 1
	mov	DWORD PTR [r12], 0
	mov	QWORD PTR 16[r12], 0
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR jerryx_handle_scope_current[rip], r12
	mov	QWORD PTR jerryx_handle_scope_pool[rip], rax
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, 16
	call	malloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	r12, rax
	setne	dil
	call	JERRYX_HANDLE_SCOPE_ASSERT@PLT
	mov	rax, QWORD PTR jerryx_handle_scope_pool[rip]
	cmp	rax, QWORD PTR JERRYX_SCOPE_PRELIST_SIZE[rip]
	mov	QWORD PTR 8[r12], 0
	je	.L4
	mov	rdx, QWORD PTR jerryx_handle_scope_current[rip]
	mov	QWORD PTR [r12], rdx
	mov	QWORD PTR 8[rdx], r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR jerryx_handle_scope_pool[rip+8], r12
	mov	QWORD PTR [r12], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	jerryx_handle_scope_alloc, .-jerryx_handle_scope_alloc
	.comm	jerryx_handle_scope_pool,24,16
	.comm	jerryx_handle_scope_current,8,8
	.comm	JERRYX_SCOPE_PRELIST_SIZE,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_handle-scope-allocator.c_jerryx_handle_scope_alloc.c"
	.text
	.align	2
	.global	jerryx_handle_scope_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	jerryx_handle_scope_alloc, %function
jerryx_handle_scope_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L7
	ldr	r6, .L7+4
	ldr	r3, [r5]
	ldr	r2, [r6]
	cmp	r3, r2
	bge	.L2
	ldr	r4, [r5, #8]
	add	r2, r3, r3, lsl #1
	ldr	r1, .L7+8
	add	r4, r4, r2, lsl #2
.L3:
	mov	r2, #0
	add	r3, r3, #1
	str	r2, [r4]
	mov	r0, r4
	str	r2, [r4, #8]
	str	r3, [r5]
	str	r2, [r4, #4]
	str	r4, [r1]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, #8
	bl	malloc
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	JERRYX_HANDLE_SCOPE_ASSERT
	mov	r2, #0
	ldr	r1, [r6]
	ldr	r3, [r5]
	str	r2, [r4, #4]
	cmp	r3, r1
	ldr	r1, .L7+8
	streq	r4, [r5, #4]
	ldrne	r2, [r1]
	streq	r2, [r4]
	strne	r2, [r4]
	strne	r4, [r2, #4]
	b	.L3
.L8:
	.align	2
.L7:
	.word	jerryx_handle_scope_pool
	.word	JERRYX_SCOPE_PRELIST_SIZE
	.word	jerryx_handle_scope_current
	.size	jerryx_handle_scope_alloc, .-jerryx_handle_scope_alloc
	.comm	jerryx_handle_scope_pool,12,4
	.comm	jerryx_handle_scope_current,4,4
	.comm	JERRYX_SCOPE_PRELIST_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
