	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_handle_scope_val
_test_handle_scope_val:                 ## @test_handle_scope_val
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	-16(%rbp), %rdi
	callq	_jerryx_open_handle_scope
	movq	_JERRYX_SCOPE_PRELIST_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	%edi, %edi
	callq	_create_object_nested
	movl	(%rbx), %edi
	addl	%edi, %edi
	callq	_create_object_nested
	xorl	%eax, %eax
	callq	_jerryx_handle_scope_get_current
	xorl	%edi, %edi
	cmpq	-16(%rbp), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movq	_JERRY_GC_PRESSURE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jerry_gc
	movq	_native_free_cb_call_count@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_TEST_ASSERT
	movq	-16(%rbp), %rdi
	callq	_jerryx_close_handle_scope
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JERRYX_SCOPE_PRELIST_SIZE,4,2  ## @JERRYX_SCOPE_PRELIST_SIZE
	.comm	_JERRY_GC_PRESSURE_LOW,4,2      ## @JERRY_GC_PRESSURE_LOW
	.comm	_native_free_cb_call_count,8,3  ## @native_free_cb_call_count
	.no_dead_strip	_test_handle_scope_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_handle_scope_val
_test_handle_scope_val:                 ; @test_handle_scope_val
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	add	x0, sp, #8
	bl	_jerryx_open_handle_scope
Lloh0:
	adrp	x19, _JERRYX_SCOPE_PRELIST_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _JERRYX_SCOPE_PRELIST_SIZE@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w0, w8, #1
	bl	_create_object_nested
	ldr	w8, [x19]
	lsl	w0, w8, #1
	bl	_create_object_nested
	bl	_jerryx_handle_scope_get_current
	ldr	x8, [sp, #8]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh2:
	adrp	x8, _JERRY_GC_PRESSURE_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JERRY_GC_PRESSURE_LOW@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_jerry_gc
Lloh5:
	adrp	x8, _native_free_cb_call_count@GOTPAGE
Lloh6:
	ldr	x8, [x8, _native_free_cb_call_count@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x0, [sp, #8]
	bl	_jerryx_close_handle_scope
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_JERRYX_SCOPE_PRELIST_SIZE,4,2  ; @JERRYX_SCOPE_PRELIST_SIZE
	.comm	_JERRY_GC_PRESSURE_LOW,4,2      ; @JERRY_GC_PRESSURE_LOW
	.comm	_native_free_cb_call_count,8,3  ; @native_free_cb_call_count
	.no_dead_strip	_test_handle_scope_val
.subsections_via_symbols
