	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerryx_escape_handle_internal  ## -- Begin function jerryx_escape_handle_internal
	.p2align	4, 0x90
_jerryx_escape_handle_internal:         ## @jerryx_escape_handle_internal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_jerryx_escape_called_twice@GOTPCREL(%rip), %r13
LBB0_16:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_jerryx_handle_scope_get_parent
	movq	_jerryx_handle_scope_mismatch@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	8(%r12), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rsi
	jb	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rcx
	cmpq	%rbx, (%rcx,%rsi,8)
	jne	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	callq	_jerryx_hand_scope_escape_handle_from_prelist
	movq	%rax, (%r14)
	decq	8(%r12)
	movq	_jerryx_handle_scope_ok@GOTPCREL(%rip), %r13
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.7:
	movl	$1, (%r12)
	movq	(%r14), %rbx
	movq	%r12, %rdi
	callq	_jerryx_handle_scope_get_parent
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_jerryx_create_handle_in_scope
	jmp	LBB0_16
LBB0_8:
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.9:
	movq	8(%rdi), %rcx
	cmpq	%rbx, (%rdi)
	jne	LBB0_13
## %bb.10:
	leaq	24(%r12), %rdx
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rdi
	movq	%rdi, %rsi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rsi, %rdx
	movq	%rcx, %rdi
	leaq	8(%rcx), %rsi
	movq	8(%rcx), %rcx
	cmpq	%rbx, (%rdi)
	jne	LBB0_15
LBB0_11:
	movq	%rcx, (%rdx)
	movq	_jerryx_handle_scope_ok@GOTPCREL(%rip), %r13
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.12:
	movq	%rax, %rsi
	callq	_jerryx_handle_scope_add_handle_to
	movq	%rax, (%r14)
	movl	$1, (%r12)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_jerryx_escape_called_twice,4,2 ## @jerryx_escape_called_twice
	.comm	_jerryx_handle_scope_mismatch,4,2 ## @jerryx_handle_scope_mismatch
	.comm	_jerryx_handle_scope_ok,4,2     ## @jerryx_handle_scope_ok
	.comm	_JERRYX_HANDLE_PRELIST_SIZE,8,3 ## @JERRYX_HANDLE_PRELIST_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerryx_escape_handle_internal  ; -- Begin function jerryx_escape_handle_internal
	.p2align	2
_jerryx_escape_handle_internal:         ; @jerryx_escape_handle_internal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _jerryx_escape_called_twice@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jerryx_escape_called_twice@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_jerryx_handle_scope_get_parent
	cbz	x0, LBB0_13
; %bb.3:
	mov	x8, x0
	ldr	x9, [x19, #8]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #16]
	sub	x1, x9, #1
	add	x9, x10, x9, lsl #3
	ldur	x10, [x9, #-8]
	mov	x9, x1
	cmp	x10, x22
	b.ne	LBB0_4
; %bb.6:
	mov	x0, x19
	bl	_jerryx_hand_scope_escape_handle_from_prelist
	str	x0, [x20]
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	cbz	w21, LBB0_12
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	ldr	x20, [x20]
	mov	x0, x19
	bl	_jerryx_handle_scope_get_parent
	mov	x1, x0
	mov	x0, x20
	bl	_jerryx_create_handle_in_scope
	b	LBB0_12
LBB0_8:
	mov	x10, x19
	ldr	x0, [x10, #24]!
	cbz	x0, LBB0_13
; %bb.9:
	mov	x12, x0
	ldr	x11, [x12, #8]!
	ldr	x9, [x0]
	cmp	x9, x22
	b.ne	LBB0_15
LBB0_10:
	str	x11, [x10]
	cbz	w21, LBB0_12
; %bb.11:
	mov	x1, x8
	bl	_jerryx_handle_scope_add_handle_to
	str	x0, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_12:
Lloh2:
	adrp	x9, _jerryx_handle_scope_ok@GOTPAGE
Lloh3:
	ldr	x9, [x9, _jerryx_handle_scope_ok@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh4:
	adrp	x9, _jerryx_handle_scope_mismatch@GOTPAGE
Lloh5:
	ldr	x9, [x9, _jerryx_handle_scope_mismatch@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh6:
	adrp	x9, _jerryx_handle_scope_mismatch@GOTPAGE
Lloh7:
	ldr	x9, [x9, _jerryx_handle_scope_mismatch@GOTPAGEOFF]
	cbz	x11, LBB0_14
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x12
	mov	x0, x11
	mov	x12, x11
	ldr	x11, [x12, #8]!
	ldr	x13, [x0]
	cmp	x13, x22
	b.eq	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbnz	x11, LBB0_16
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_jerryx_escape_called_twice,4,2 ; @jerryx_escape_called_twice
	.comm	_jerryx_handle_scope_mismatch,4,2 ; @jerryx_handle_scope_mismatch
	.comm	_jerryx_handle_scope_ok,4,2     ; @jerryx_handle_scope_ok
	.comm	_JERRYX_HANDLE_PRELIST_SIZE,8,3 ; @JERRYX_HANDLE_PRELIST_SIZE
.subsections_via_symbols
