	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_get_backtrace_api_call
_test_get_backtrace_api_call:           ## @test_get_backtrace_api_call
	.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
	movq	_JERRY_INIT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jerry_init
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_jerry_get_global_object
	movl	%eax, %r15d
	movq	_backtrace_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jerry_create_external_function
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_jerry_create_string
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_jerry_set_property
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r13d, %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_release_value
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_run
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	movl	$0, %edi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_jerry_value_is_array
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_2:
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_array_length
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_TEST_ASSERT
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_compare
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_compare
	leaq	L_.str.5(%rip), %rdx
	movl	%ebx, %edi
	movl	$2, %esi
	callq	_compare
	leaq	L_.str.6(%rip), %rdx
	movl	%ebx, %edi
	movl	$3, %esi
	callq	_compare
	movl	%ebx, %edi
	callq	_jerry_release_value
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_run
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_jerry_value_is_array
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_4:
	movl	%r14d, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_get_array_length
	xorl	%edi, %edi
	cmpl	$2, %eax
	sete	%dil
	callq	_TEST_ASSERT
	leaq	L_.str.9(%rip), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_compare
	leaq	L_.str.10(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_compare
	movl	%ebx, %edi
	callq	_jerry_release_value
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jerry_cleanup                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JERRY_INIT_EMPTY,4,2           ## @JERRY_INIT_EMPTY
	.comm	_backtrace_handler,4,2          ## @backtrace_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"backtrace"

L_.str.1:                               ## @.str.1
	.asciz	"function f() {\n  return backtrace(0);\n}\n\nfunction g() {\n  return f();\n}\n\nfunction h() {\n  return g();\n}\n\nh();\n"

L_.str.2:                               ## @.str.2
	.asciz	"something.js"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"something.js:10"

L_.str.6:                               ## @.str.6
	.asciz	"something.js:13"

L_.str.7:                               ## @.str.7
	.asciz	"function f() {\n  return backtrace(2);\n}\n\nfunction g() {\n  return f();\n}\n\nfunction h() {\n  return g();\n}\n\nh();\n"

L_.str.8:                               ## @.str.8
	.asciz	"something_else.js"

L_.str.9:                               ## @.str.9
	.asciz	"something_else.js:2"

L_.str.10:                              ## @.str.10
	.asciz	"something_else.js:6"

	.no_dead_strip	_test_get_backtrace_api_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_get_backtrace_api_call
_test_get_backtrace_api_call:           ; @test_get_backtrace_api_call
	.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
	bl	_jerry_get_global_object
	mov	x19, x0
Lloh3:
	adrp	x8, _backtrace_handler@GOTPAGE
Lloh4:
	ldr	x8, [x8, _backtrace_handler@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_jerry_create_external_function
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_jerry_create_string
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_jerry_set_property
	mov	x22, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x0, x22
	bl	_jerry_release_value
	mov	x0, x21
	bl	_jerry_release_value
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_release_value
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_run
	mov	x19, x0
	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, #4
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_compare
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_compare
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_compare
Lloh18:
	adrp	x2, l_.str.6@PAGE
Lloh19:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w1, #3
	bl	_compare
	mov	x0, x19
	bl	_jerry_release_value
Lloh20:
	adrp	x0, l_.str.8@PAGE
Lloh21:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_run
	mov	x19, x0
	bl	_jerry_value_is_error
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_jerry_value_is_array
	cmp	x0, #0
	cset	w0, ne
LBB0_5:
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_get_array_length
	cmp	w0, #2
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh24:
	adrp	x2, l_.str.9@PAGE
Lloh25:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_compare
Lloh26:
	adrp	x2, l_.str.10@PAGE
Lloh27:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	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	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_JERRY_INIT_EMPTY,4,2           ; @JERRY_INIT_EMPTY
	.comm	_backtrace_handler,4,2          ; @backtrace_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"backtrace"

l_.str.1:                               ; @.str.1
	.asciz	"function f() {\n  return backtrace(0);\n}\n\nfunction g() {\n  return f();\n}\n\nfunction h() {\n  return g();\n}\n\nh();\n"

l_.str.2:                               ; @.str.2
	.asciz	"something.js"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"something.js:10"

l_.str.6:                               ; @.str.6
	.asciz	"something.js:13"

l_.str.7:                               ; @.str.7
	.asciz	"function f() {\n  return backtrace(2);\n}\n\nfunction g() {\n  return f();\n}\n\nfunction h() {\n  return g();\n}\n\nh();\n"

l_.str.8:                               ; @.str.8
	.asciz	"something_else.js"

l_.str.9:                               ; @.str.9
	.asciz	"something_else.js:2"

l_.str.10:                              ; @.str.10
	.asciz	"something_else.js:6"

	.no_dead_strip	_test_get_backtrace_api_call
.subsections_via_symbols
