	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_exception_backtrace
_test_exception_backtrace:              ## @test_exception_backtrace
	.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	_JERRY_INIT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jerry_init
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_run
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_jerry_get_value_from_error
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jerry_value_is_object
	movl	%eax, %edi
	callq	_TEST_ASSERT
	leaq	L_.str.2(%rip), %rdi
	callq	_jerry_create_string
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_jerry_get_property
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_release_value
	movl	%r14d, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_jerry_value_is_array
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_2:
	callq	_TEST_ASSERT
	movl	%r14d, %edi
	callq	_jerry_get_array_length
	xorl	%edi, %edi
	cmpl	$3, %eax
	sete	%dil
	callq	_TEST_ASSERT
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_compare
	leaq	L_.str.4(%rip), %rdx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_compare
	leaq	L_.str.5(%rip), %rdx
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_compare
	movl	%r14d, %edi
	callq	_jerry_release_value
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jerry_cleanup                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JERRY_INIT_EMPTY,4,2           ## @JERRY_INIT_EMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function f() {\n  undef_reference;\n}\n\nfunction g() {\n  return f();\n}\n\ng();\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad.js"

L_.str.2:                               ## @.str.2
	.asciz	"stack"

L_.str.3:                               ## @.str.3
	.asciz	"bad.js:2"

L_.str.4:                               ## @.str.4
	.asciz	"bad.js:6"

L_.str.5:                               ## @.str.5
	.asciz	"bad.js:9"

	.no_dead_strip	_test_exception_backtrace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_exception_backtrace
_test_exception_backtrace:              ; @test_exception_backtrace
	.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	x8, _JERRY_INIT_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JERRY_INIT_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_jerry_init
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_run
	mov	x19, x0
	bl	_jerry_value_is_error
	bl	_TEST_ASSERT
	mov	x0, x19
	mov	w1, #1
	bl	_jerry_get_value_from_error
	mov	x20, x0
	bl	_jerry_value_is_object
	bl	_TEST_ASSERT
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_jerry_create_string
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_jerry_get_property
	mov	x19, x0
	mov	x0, x21
	bl	_jerry_release_value
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_value_is_error
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_jerry_value_is_array
	cmp	x0, #0
	cset	w0, ne
LBB0_3:
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_get_array_length
	cmp	w0, #3
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_compare
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_compare
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_compare
	mov	x0, x19
	bl	_jerry_release_value
	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
	b	_jerry_cleanup
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_JERRY_INIT_EMPTY,4,2           ; @JERRY_INIT_EMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function f() {\n  undef_reference;\n}\n\nfunction g() {\n  return f();\n}\n\ng();\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad.js"

l_.str.2:                               ; @.str.2
	.asciz	"stack"

l_.str.3:                               ; @.str.3
	.asciz	"bad.js:2"

l_.str.4:                               ; @.str.4
	.asciz	"bad.js:6"

l_.str.5:                               ; @.str.5
	.asciz	"bad.js:9"

	.no_dead_strip	_test_exception_backtrace
.subsections_via_symbols
