	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_js_loop                        ## -- Begin function js_loop
	.p2align	4, 0x90
_js_loop:                               ## @js_loop
	.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
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_jerry_get_global_object
	movl	%eax, %r14d
	movq	_fn_sys_loop_name@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_jerry_create_string
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_jerry_get_property
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_value_is_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r14d, %edi
	callq	_jerry_release_value
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movl	%r12d, %edi
	callq	_jerry_value_is_function
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%r15d, %edi
	callq	_jerry_create_number
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_jerry_call_function
	movl	%eax, %r15d
	movl	-44(%rbp), %edi
	callq	_jerry_release_value
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r14d, %edi
	callq	_jerry_release_value
	movl	%r15d, %edi
	callq	_jerry_value_is_error
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	movl	%r15d, %edi
	callq	_jerry_release_value
	leal	(%rbx,%rbx,2), %eax
	addl	$-3, %eax
	jmp	LBB0_5
LBB0_3:
	movq	(%r13), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	%r12d, %edi
	callq	_jerry_release_value
	movl	%r14d, %edi
	callq	_jerry_release_value
	movl	$-2, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fn_sys_loop_name,8,3           ## @fn_sys_loop_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: '%s' not defined!!!\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error: '%s' is not a function!!!\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_js_loop                        ; -- Begin function js_loop
	.p2align	2
_js_loop:                               ; @js_loop
	.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	x21, x0
	bl	_jerry_get_global_object
	mov	x19, x0
Lloh0:
	adrp	x23, _fn_sys_loop_name@GOTPAGE
Lloh1:
	ldr	x23, [x23, _fn_sys_loop_name@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_jerry_create_string
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_jerry_get_property
	mov	x20, x0
	mov	x0, x22
	bl	_jerry_release_value
	mov	x0, x20
	bl	_jerry_value_is_error
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x1, [x23]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_release_value
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_jerry_value_is_function
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_jerry_create_number
	str	w0, [sp, #12]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	bl	_jerry_call_function
	mov	x21, x0
	ldr	w0, [sp, #12]
	bl	_jerry_release_value
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_release_value
	mov	x0, x21
	bl	_jerry_value_is_error
	mov	x19, x0
	mov	x0, x21
	bl	_jerry_release_value
	cmp	x19, #0
	mov	w8, #-3
	csel	w0, wzr, w8, eq
	b	LBB0_5
LBB0_4:
	ldr	x1, [x23]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_jerry_release_value
	mov	x0, x19
	bl	_jerry_release_value
	mov	w0, #-2
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_fn_sys_loop_name,8,3           ; @fn_sys_loop_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: '%s' not defined!!!\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error: '%s' is not a function!!!\r\n"

.subsections_via_symbols
