	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_jerry_port_get_current_time
	movl	%eax, %edi
	callq	_srand
	cmpl	$2, %ebx
	jge	LBB0_1
LBB0_4:
	movq	(%r14), %rdi
	callq	_print_help
	movq	_JERRY_STANDALONE_EXIT_CODE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_1:
	jne	LBB0_5
## %bb.2:
	movq	8(%r14), %r15
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_JERRY_INIT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jerry_init
	xorl	%eax, %eax
	callq	_jerry_create_undefined
	movl	%ebx, %r13d
	movl	$1, %r15d
	leaq	-56(%rbp), %r12
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rdi
	movq	%r12, %rsi
	callq	_read_file
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rcx
	movq	_JERRY_PARSE_NO_OPTS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_jerry_parse
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_jerry_run
	movq	%r14, %r13
	movq	%r12, %r14
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r12d, %ebx
	movq	%r14, %r12
	movq	%r13, %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_jerry_value_is_error
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	callq	_jerry_release_value
	xorl	%eax, %eax
	callq	_jerry_create_undefined
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_6
	jmp	LBB0_12
LBB0_7:
	movq	_JERRY_ERROR_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_jerry_create_error
LBB0_12:
	movl	%eax, %ebx
LBB0_13:
	movq	_JERRY_STANDALONE_EXIT_CODE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_jerry_value_is_error
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_JERRY_LOG_LEVEL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_jerry_port_log
	movq	_JERRY_STANDALONE_EXIT_CODE_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	movl	%ebx, %edi
	callq	_jerry_release_value
	xorl	%eax, %eax
	callq	_jerry_cleanup
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-h"

L_.str.1:                               ## @.str.1
	.asciz	"--help"

	.comm	_JERRY_STANDALONE_EXIT_CODE_OK,4,2 ## @JERRY_STANDALONE_EXIT_CODE_OK
	.comm	_JERRY_INIT_EMPTY,4,2           ## @JERRY_INIT_EMPTY
	.comm	_JERRY_ERROR_COMMON,4,2         ## @JERRY_ERROR_COMMON
L_.str.2:                               ## @.str.2
	.space	1

	.comm	_JERRY_PARSE_NO_OPTS,4,2        ## @JERRY_PARSE_NO_OPTS
	.comm	_JERRY_LOG_LEVEL_ERROR,4,2      ## @JERRY_LOG_LEVEL_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Unhandled exception: Script Error!\n"

	.comm	_JERRY_STANDALONE_EXIT_CODE_FAIL,4,2 ## @JERRY_STANDALONE_EXIT_CODE_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_jerry_port_get_current_time
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_srand
	cmp	w20, #2
	b.ge	LBB0_2
LBB0_1:
	ldr	x0, [x19]
	bl	_print_help
Lloh0:
	adrp	x8, _JERRY_STANDALONE_EXIT_CODE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JERRY_STANDALONE_EXIT_CODE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_16
LBB0_2:
	b.ne	LBB0_5
; %bb.3:
	ldr	x21, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_1
; %bb.4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_1
LBB0_5:
Lloh7:
	adrp	x8, _JERRY_INIT_EMPTY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _JERRY_INIT_EMPTY@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_jerry_init
	bl	_jerry_create_undefined
	mov	w8, w20
	add	x21, x19, #8
	sub	x22, x8, #1
Lloh10:
	adrp	x23, _JERRY_PARSE_NO_OPTS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _JERRY_PARSE_NO_OPTS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	add	x1, sp, #8
	bl	_read_file
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	ldr	x3, [sp, #8]
	ldr	w4, [x23]
	mov	x0, #0
	mov	w1, #0
	bl	_jerry_parse
	mov	x19, x0
	bl	_jerry_value_is_error
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_jerry_run
	mov	x20, x0
	mov	x0, x19
	bl	_jerry_release_value
	mov	x19, x20
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_jerry_value_is_error
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_jerry_release_value
	bl	_jerry_create_undefined
	add	x21, x21, #8
	subs	x22, x22, #1
	b.ne	LBB0_6
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x8, _JERRY_ERROR_COMMON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _JERRY_ERROR_COMMON@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_jerry_create_error
LBB0_12:
	mov	x19, x0
LBB0_13:
Lloh17:
	adrp	x8, _JERRY_STANDALONE_EXIT_CODE_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _JERRY_STANDALONE_EXIT_CODE_OK@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_jerry_value_is_error
	cbz	x0, LBB0_15
; %bb.14:
Lloh20:
	adrp	x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _JERRY_LOG_LEVEL_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_jerry_port_log
Lloh25:
	adrp	x8, _JERRY_STANDALONE_EXIT_CODE_FAIL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _JERRY_STANDALONE_EXIT_CODE_FAIL@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
LBB0_15:
	mov	x0, x19
	bl	_jerry_release_value
	bl	_jerry_cleanup
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-h"

l_.str.1:                               ; @.str.1
	.asciz	"--help"

	.comm	_JERRY_STANDALONE_EXIT_CODE_OK,4,2 ; @JERRY_STANDALONE_EXIT_CODE_OK
	.comm	_JERRY_INIT_EMPTY,4,2           ; @JERRY_INIT_EMPTY
	.comm	_JERRY_ERROR_COMMON,4,2         ; @JERRY_ERROR_COMMON
l_.str.2:                               ; @.str.2
	.space	1

	.comm	_JERRY_PARSE_NO_OPTS,4,2        ; @JERRY_PARSE_NO_OPTS
	.comm	_JERRY_LOG_LEVEL_ERROR,4,2      ; @JERRY_LOG_LEVEL_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Unhandled exception: Script Error!\n"

	.comm	_JERRY_STANDALONE_EXIT_CODE_FAIL,4,2 ; @JERRY_STANDALONE_EXIT_CODE_FAIL
.subsections_via_symbols
