	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_object_nested
_create_object_nested:                  ## @create_object_nested
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	leaq	-16(%rbp), %rdi
	callq	_jerryx_open_escapable_handle_scope
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	decl	%ebx
	movl	%ebx, %edi
	callq	_create_object_nested
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_jerry_create_object
	movl	%eax, %edi
	callq	_jerryx_create_handle
	movl	%eax, %ebx
	movq	_native_info@GOTPCREL(%rip), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_jerry_set_object_native_pointer
LBB0_3:
	xorl	%eax, %eax
	callq	_jerryx_handle_scope_get_current
	xorl	%edi, %edi
	cmpq	-16(%rbp), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	$0, -20(%rbp)
	movq	-16(%rbp), %rdi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %esi
	callq	_jerryx_escape_handle
	movq	_jerryx_handle_scope_ok@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_TEST_ASSERT
	movq	-16(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_TEST_ASSERT
	movq	-16(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$0, 8(%rax)
	sete	%dil
	callq	_TEST_ASSERT
	movq	-16(%rbp), %rdi
	callq	_jerryx_close_handle_scope
	movl	-20(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_native_info,4,2                ## @native_info
	.comm	_jerryx_handle_scope_ok,8,3     ## @jerryx_handle_scope_ok
	.no_dead_strip	_create_object_nested
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_object_nested
_create_object_nested:                  ; @create_object_nested
	.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
	mov	x19, x0
	add	x0, sp, #8
	bl	_jerryx_open_escapable_handle_scope
	cbz	w19, LBB0_2
; %bb.1:
	sub	w0, w19, #1
	bl	_create_object_nested
	mov	x19, x0
	b	LBB0_3
LBB0_2:
	bl	_jerry_create_object
	bl	_jerryx_create_handle
	mov	x19, x0
Lloh0:
	adrp	x2, _native_info@GOTPAGE
Lloh1:
	ldr	x2, [x2, _native_info@GOTPAGEOFF]
	mov	x1, #0
	bl	_jerry_set_object_native_pointer
LBB0_3:
	bl	_jerryx_handle_scope_get_current
	ldr	x8, [sp, #8]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	str	wzr, [sp, #4]
	ldr	x0, [sp, #8]
	add	x2, sp, #4
	mov	x1, x19
	bl	_jerryx_escape_handle
Lloh2:
	adrp	x8, _jerryx_handle_scope_ok@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jerryx_handle_scope_ok@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x0, [sp, #8]
	bl	_jerryx_close_handle_scope
	ldr	w0, [sp, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_native_info,4,2                ; @native_info
	.comm	_jerryx_handle_scope_ok,8,3     ; @jerryx_handle_scope_ok
	.no_dead_strip	_create_object_nested
.subsections_via_symbols
