	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_unhandled_exception
_print_unhandled_exception:             ## @print_unhandled_exception
	.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
	subq	$312, %rsp                      ## imm = 0x138
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_jerry_value_is_error
	movl	%eax, %edi
	callq	_assert
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_jerry_get_value_from_error
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_jerry_value_to_string
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_jerry_get_utf8_string_size
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_jerry_release_value
	cmpl	$256, %ebx                      ## imm = 0x100
	jl	LBB0_2
## %bb.1:
	movups	L___const.print_unhandled_exception.msg+9(%rip), %xmm0
	movups	%xmm0, -327(%rbp)
	movaps	L___const.print_unhandled_exception.msg(%rip), %xmm0
	movaps	%xmm0, -336(%rbp)
	leaq	-304(%rbp), %rdi
	leaq	-336(%rbp), %rsi
	movl	$24, %edx
	callq	_memcpy
	jmp	LBB0_33
LBB0_2:
	leaq	-304(%rbp), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	callq	_jerry_string_to_utf8_char_buffer
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movslq	%ebx, %rax
	movb	$0, -304(%rbp,%rax)
	movq	_JERRY_FEATURE_ERROR_MESSAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jerry_is_feature_enabled
	testq	%rax, %rax
	je	LBB0_33
## %bb.3:
	movl	%r15d, %edi
	callq	_jerry_get_error_type
	movq	_JERRY_ERROR_SYNTAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_33
## %bb.5:
	movslq	%r14d, %rax
	addq	%rbp, %rax
	addq	$-304, %rax                     ## imm = 0xFED0
	leaq	-303(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$91, -1(%rbx)
	je	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rbx), %rcx
	cmpq	%rax, %rbx
	movq	%rcx, %rbx
	jb	LBB0_6
	jmp	LBB0_33
LBB0_7:
	movb	(%rbx), %cl
	cmpb	$60, %cl
	je	LBB0_33
## %bb.8:
	movq	%rbx, %r15
	cmpq	%rax, %rbx
	jae	LBB0_9
## %bb.14:
	cmpb	$58, %cl
	je	LBB0_9
## %bb.15:
	leaq	1(%rbx), %rcx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movq	%rcx, -336(%rbp)
	cmpq	%rax, %rcx
	jae	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%r15), %rcx
	cmpb	$58, (%r15)
	jne	LBB0_16
LBB0_9:
	leaq	1(%r15), %rdi
	movq	%rdi, -336(%rbp)
	leaq	-336(%rbp), %rsi
	callq	_str_to_uint
	movq	%rax, %r14
	movq	-336(%rbp), %rdi
	incq	%rdi
	movq	%rdi, -336(%rbp)
	xorl	%esi, %esi
	callq	_str_to_uint
	movq	%r14, %rcx
	testq	%r14, %r14
	je	LBB0_33
## %bb.10:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_33
## %bb.11:
	movq	%rcx, -344(%rbp)                ## 8-byte Spill
	movb	$0, (%r15)
	leaq	-336(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_file
	movq	%rax, %rbx
	movb	$58, (%r15)
	movl	$1, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %r15d
	cmpq	%r13, %rsi
	jl	LBB0_29
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_jerry_port_log
	incq	%rbx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edx
	cmpl	$10, %edx
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testb	%dl, %dl
	movq	-344(%rbp), %rsi                ## 8-byte Reload
	jne	LBB0_20
	jmp	LBB0_29
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	movq	-344(%rbp), %rsi                ## 8-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_SYNTAX_ERROR_CONTEXT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rsi
	jl	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rsi, %rcx
	subq	%r13, %rcx
	jl	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rax, %rcx
	jle	LBB0_28
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%r13, %rsi
	jl	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r15d, %r15d
	incq	%rbx
	jmp	LBB0_12
LBB0_29:
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_jerry_port_log
	decq	%r14
	je	LBB0_32
## %bb.30:
	leaq	L_.str.2(%rip), %rbx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_jerry_port_log
	decq	%r14
	jne	LBB0_31
LBB0_32:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_jerry_port_log
LBB0_33:
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-304(%rbp), %rdx
	xorl	%eax, %eax
	callq	_jerry_port_log
	movl	%r12d, %edi
	callq	_jerry_release_value
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	addq	$312, %rsp                      ## imm = 0x138
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.print_unhandled_exception.msg
L___const.print_unhandled_exception.msg:
	.asciz	"[Error message too long]"

	.comm	_JERRY_FEATURE_ERROR_MESSAGES,4,2 ## @JERRY_FEATURE_ERROR_MESSAGES
	.comm	_JERRY_ERROR_SYNTAX,8,3         ## @JERRY_ERROR_SYNTAX
	.comm	_SYNTAX_ERROR_CONTEXT_SIZE,8,3  ## @SYNTAX_ERROR_CONTEXT_SIZE
	.comm	_JERRY_LOG_LEVEL_ERROR,4,2      ## @JERRY_LOG_LEVEL_ERROR
L_.str:                                 ## @.str
	.asciz	"%c"

L_.str.1:                               ## @.str.1
	.asciz	"\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"^\n"

L_.str.4:                               ## @.str.4
	.asciz	"Script Error: %s\n"

	.no_dead_strip	_print_unhandled_exception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_unhandled_exception
_print_unhandled_exception:             ; @print_unhandled_exception
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #416
	.cfi_def_cfa_offset 416
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #336]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #352]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #368]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #384]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #400]            ; 16-byte Folded Spill
	add	x29, sp, #400
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_jerry_value_is_error
	bl	_assert
	mov	x0, x19
	mov	w1, #0
	bl	_jerry_get_value_from_error
	mov	x20, x0
	bl	_jerry_value_to_string
	mov	x19, x0
	bl	_jerry_get_utf8_string_size
	mov	x22, x0
	mov	x0, x20
	bl	_jerry_release_value
Lloh3:
	adrp	x24, _JERRY_LOG_LEVEL_ERROR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _JERRY_LOG_LEVEL_ERROR@GOTPAGEOFF]
	cmp	w22, #256
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, l___const.print_unhandled_exception.msg@PAGE
Lloh6:
	add	x8, x8, l___const.print_unhandled_exception.msg@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldur	q0, [x8, #9]
	stur	q0, [sp, #25]
	add	x0, sp, #56
	add	x1, sp, #16
	mov	w2, #24
	bl	_memcpy
	b	LBB0_34
LBB0_2:
	add	x23, sp, #56
	add	x1, sp, #56
	mov	x0, x19
	mov	x2, x22
	bl	_jerry_string_to_utf8_char_buffer
	mov	x21, x0
	cmp	w0, w22
	cset	w0, eq
	bl	_assert
	strb	wzr, [x23, w22, sxtw]
Lloh7:
	adrp	x8, _JERRY_FEATURE_ERROR_MESSAGES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _JERRY_FEATURE_ERROR_MESSAGES@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_jerry_is_feature_enabled
	cbz	x0, LBB0_34
; %bb.3:
	mov	x0, x20
	bl	_jerry_get_error_type
Lloh10:
	adrp	x8, _JERRY_ERROR_SYNTAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JERRY_ERROR_SYNTAX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.4:
	cmp	w21, #1
	b.lt	LBB0_34
; %bb.5:
	sxtw	x8, w21
	add	x9, sp, #56
	add	x10, x9, x8
	sub	x8, x8, #2
	add	x22, x9, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w9, [x22, #-1]
	cmp	w9, #91
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x8, x8, #1
	add	x9, x22, #1
	cmp	x22, x10
	mov	x22, x9
	b.lo	LBB0_6
	b	LBB0_34
LBB0_8:
	mov	x9, x22
	ldrb	w11, [x9], #1
	cmp	w11, #60
	b.eq	LBB0_34
; %bb.9:
	mov	x23, x22
	cmp	x22, x10
	b.hs	LBB0_15
; %bb.10:
	mov	x23, x22
	cmp	w11, #58
	b.eq	LBB0_15
; %bb.11:
	add	x10, x8, x22
	add	x23, x10, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x9, [sp, #16]
	cbz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w10, [x9], #1
	sub	x8, x8, #1
	cmp	w10, #58
	b.ne	LBB0_12
; %bb.14:
	sub	x23, x9, #1
LBB0_15:
	add	x0, x23, #1
	str	x0, [sp, #16]
	add	x1, sp, #16
	bl	_str_to_uint
	mov	x20, x0
	ldr	x8, [sp, #16]
	add	x0, x8, #1
	str	x0, [sp, #16]
	mov	x1, #0
	bl	_str_to_uint
	cbz	x20, LBB0_34
; %bb.16:
	mov	x21, x0
	cbz	x0, LBB0_34
; %bb.17:
	strb	wzr, [x23]
	add	x1, sp, #16
	mov	x0, x22
	bl	_read_file
	mov	x22, x0
	mov	w27, #0
	mov	w8, #58
	strb	w8, [x23]
	mov	w25, #1
Lloh13:
	adrp	x26, _SYNTAX_ERROR_CONTEXT_SIZE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _SYNTAX_ERROR_CONTEXT_SIZE@GOTPAGEOFF]
Lloh15:
	adrp	x23, l_.str@PAGE
Lloh16:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	x20, x25
	b.lt	LBB0_30
; %bb.19:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w27, #1
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	sxtb	w8, w8
	ldr	w0, [x24]
	str	x8, [sp]
	mov	x1, x23
	bl	_jerry_port_log
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x22, x22, #1
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	cmp	w8, #10
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cbnz	w8, LBB0_25
	b	LBB0_30
LBB0_24:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x25, x25, #1
LBB0_25:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x26]
	cmp	x20, x9
	b.lt	LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	subs	x10, x20, x25
	b.lt	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	cmp	x10, x9
	b.le	LBB0_18
LBB0_28:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	x20, x25
	b.lt	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=1
	cbnz	w27, LBB0_20
	b	LBB0_21
LBB0_30:
	ldr	w0, [x24]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_jerry_port_log
	subs	x21, x21, #1
	b.eq	LBB0_33
; %bb.31:
Lloh19:
	adrp	x20, l_.str.2@PAGE
Lloh20:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_jerry_port_log
	subs	x21, x21, #1
	b.ne	LBB0_32
LBB0_33:
	ldr	w0, [x24]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_jerry_port_log
LBB0_34:
	ldr	w0, [x24]
	add	x8, sp, #56
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_jerry_port_log
	mov	x0, x19
	bl	_jerry_release_value
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	ldp	x29, x30, [sp, #400]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #384]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #368]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #352]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #416
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.print_unhandled_exception.msg: ; @__const.print_unhandled_exception.msg
	.asciz	"[Error message too long]"

	.comm	_JERRY_FEATURE_ERROR_MESSAGES,4,2 ; @JERRY_FEATURE_ERROR_MESSAGES
	.comm	_JERRY_ERROR_SYNTAX,8,3         ; @JERRY_ERROR_SYNTAX
	.comm	_SYNTAX_ERROR_CONTEXT_SIZE,8,3  ; @SYNTAX_ERROR_CONTEXT_SIZE
	.comm	_JERRY_LOG_LEVEL_ERROR,4,2      ; @JERRY_LOG_LEVEL_ERROR
l_.str:                                 ; @.str
	.asciz	"%c"

l_.str.1:                               ; @.str.1
	.asciz	"\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"^\n"

l_.str.4:                               ; @.str.4
	.asciz	"Script Error: %s\n"

	.no_dead_strip	_print_unhandled_exception
.subsections_via_symbols
