	.file	"extr_handle-scope.c_jerryx_hand_scope_escape_handle_from_prelist.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	jerryx_hand_scope_escape_handle_from_prelist
	.type	jerryx_hand_scope_escape_handle_from_prelist, @function
jerryx_hand_scope_escape_handle_from_prelist:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r8, QWORD PTR 8[rdi]
	movsx	rdx, DWORD PTR [rdi]
	mov	eax, DWORD PTR JERRYX_HANDLE_PRELIST_SIZE[rip]
	lea	rcx, [r8+rsi*4]
	mov	r12d, DWORD PTR [rcx]
	cmp	edx, eax
	je	.L9
.L2:
	sub	eax, 1
	cdqe
	cmp	rax, rsi
	jbe	.L1
	mov	eax, DWORD PTR -4[r8+rdx*4]
	mov	DWORD PTR [rcx], eax
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r9, QWORD PTR 16[rdi]
	test	r9, r9
	je	.L2
	mov	rax, QWORD PTR 8[r9]
	mov	QWORD PTR 16[rdi], rax
	mov	eax, DWORD PTR [r9]
	mov	rdi, r9
	mov	DWORD PTR [rcx], eax
	call	free@PLT
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	jerryx_hand_scope_escape_handle_from_prelist, .-jerryx_hand_scope_escape_handle_from_prelist
	.comm	JERRYX_HANDLE_PRELIST_SIZE,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_handle-scope.c_jerryx_hand_scope_escape_handle_from_prelist.c"
	.text
	.align	2
	.global	jerryx_hand_scope_escape_handle_from_prelist
	.syntax unified
	.arm
	.fpu softvfp
	.type	jerryx_hand_scope_escape_handle_from_prelist, %function
jerryx_hand_scope_escape_handle_from_prelist:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	ip, [r0, #4]
	cmp	r2, r3
	push	{r4, lr}
	ldr	r4, [ip, r1, lsl #2]
	beq	.L9
.L2:
	sub	r3, r3, #1
	cmp	r3, r1
	subhi	r2, r2, #-1073741823
	ldrhi	r3, [ip, r2, lsl #2]
	mov	r0, r4
	strhi	r3, [ip, r1, lsl #2]
	pop	{r4, pc}
.L9:
	ldr	lr, [r0, #8]
	cmp	lr, #0
	beq	.L2
	ldr	r2, [lr, #4]
	ldr	r3, [lr]
	str	r2, [r0, #8]
	mov	r0, lr
	str	r3, [ip, r1, lsl #2]
	bl	free
	mov	r0, r4
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	JERRYX_HANDLE_PRELIST_SIZE
	.size	jerryx_hand_scope_escape_handle_from_prelist, .-jerryx_hand_scope_escape_handle_from_prelist
	.comm	JERRYX_HANDLE_PRELIST_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
