	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerryx_handle_scope_alloc      ## -- Begin function jerryx_handle_scope_alloc
	.p2align	4, 0x90
_jerryx_handle_scope_alloc:             ## @jerryx_handle_scope_alloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_jerryx_handle_scope_pool@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_JERRYX_SCOPE_PRELIST_SIZE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jge	LBB0_2
## %bb.1:
	leaq	(%rax,%rax,2), %rbx
	shlq	$3, %rbx
	addq	16(%r14), %rbx
	jmp	LBB0_3
LBB0_2:
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_JERRYX_HANDLE_SCOPE_ASSERT
	movq	$0, 8(%rbx)
	movq	(%r14), %rax
	movq	_jerryx_handle_scope_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	8(%rcx), %rdx
	leaq	8(%r14), %rsi
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	cmoveq	%rsi, %rdx
	cmovneq	%rcx, %rdi
	movq	%rbx, (%rdx)
	movq	%rdi, (%rbx)
	movq	(%r14), %rax
LBB0_3:
	movl	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_jerryx_handle_scope_current@GOTPCREL(%rip), %rcx
	movq	%rbx, (%rcx)
	incq	%rax
	movq	%rax, (%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jerryx_handle_scope_pool,24,3  ## @jerryx_handle_scope_pool
	.comm	_JERRYX_SCOPE_PRELIST_SIZE,8,3  ## @JERRYX_SCOPE_PRELIST_SIZE
	.comm	_jerryx_handle_scope_current,8,3 ## @jerryx_handle_scope_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jerryx_handle_scope_alloc      ; -- Begin function jerryx_handle_scope_alloc
	.p2align	2
_jerryx_handle_scope_alloc:             ; @jerryx_handle_scope_alloc
	.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
Lloh0:
	adrp	x20, _jerryx_handle_scope_pool@GOTPAGE
Lloh1:
	ldr	x20, [x20, _jerryx_handle_scope_pool@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x22, _JERRYX_SCOPE_PRELIST_SIZE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _JERRYX_SCOPE_PRELIST_SIZE@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh4:
	adrp	x21, _jerryx_handle_scope_current@GOTPAGE
Lloh5:
	ldr	x21, [x21, _jerryx_handle_scope_current@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x19, x8, x10, x9
	b	LBB0_3
LBB0_2:
	mov	w0, #16
	bl	_malloc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_JERRYX_HANDLE_SCOPE_ASSERT
	str	xzr, [x19, #8]
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x10, [x21]
	add	x11, x10, #8
	add	x12, x20, #8
	cmp	x8, x9
	csel	x8, x12, x11, eq
	csel	x9, xzr, x10, eq
	str	x19, [x8]
	str	x9, [x19]
	ldr	x8, [x20]
LBB0_3:
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #8]
	str	x19, [x21]
	add	x8, x8, #1
	str	x8, [x20]
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jerryx_handle_scope_pool,24,3  ; @jerryx_handle_scope_pool
	.comm	_JERRYX_SCOPE_PRELIST_SIZE,8,3  ; @JERRYX_SCOPE_PRELIST_SIZE
	.comm	_jerryx_handle_scope_current,8,3 ; @jerryx_handle_scope_current
.subsections_via_symbols
