	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function njs_process_script
_njs_process_script:                    ## @njs_process_script
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdx), %rax
	movq	%rax, -48(%rbp)
	movslq	(%rdx), %rcx
	leaq	(%rax,%rcx,4), %rdx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_njs_vm_compile
	movq	%rax, %rbx
	movq	_NJS_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_njs_disassembler
	leaq	L_.str(%rip), %rdi
	callq	_njs_printf
LBB0_3:
	movq	%r13, %rdi
	callq	_njs_vm_start
LBB0_4:
	movq	%rax, %rbx
LBB0_5:
	movq	%r13, %rdi
	callq	_njs_vm_pending
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_njs_process_events
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setne	%dil
	callq	_njs_slow_path
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:
	movq	%r13, %rdi
	callq	_njs_vm_waiting
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%r13, %rdi
	callq	_njs_vm_posted
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	movq	%r13, %rdi
	callq	_njs_vm_run
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	_njs_stderror
	movq	_NJS_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NJS_OK,8,3                     ## @NJS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"njs_process_events() failed\n"

	.comm	_NJS_ERROR,8,3                  ## @NJS_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"njs_process_script(): async events unsupported\n"

	.no_dead_strip	_njs_process_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function njs_process_script
_njs_process_script:                    ; @njs_process_script
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x2, #8]
	str	x8, [sp, #8]
	ldrsw	x9, [x2]
	add	x2, x8, x9, lsl #2
	add	x1, sp, #8
	mov	x0, x21
	bl	_njs_vm_compile
	mov	x23, x0
Lloh0:
	adrp	x24, _NJS_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NJS_OK@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_njs_disassembler
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_njs_printf
LBB0_3:
	mov	x0, x21
	bl	_njs_vm_start
	mov	x23, x0
LBB0_4:
	mov	x0, x21
	bl	_njs_vm_pending
	cbz	w0, LBB0_12
; %bb.5:
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh6:
	adrp	x25, l_.str.2@PAGE
Lloh7:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_njs_vm_run
	mov	x23, x0
	mov	x0, x21
	bl	_njs_vm_pending
	cbz	w0, LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_njs_process_events
	ldr	x8, [x24]
	cmp	x0, x8
	cset	w0, ne
	bl	_njs_slow_path
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_njs_vm_waiting
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_njs_vm_posted
	cbnz	w0, LBB0_6
; %bb.10:
	mov	x22, x25
LBB0_11:
	mov	x0, x22
	bl	_njs_stderror
Lloh8:
	adrp	x8, _NJS_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NJS_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	x23, [x8]
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NJS_OK,8,3                     ; @NJS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"njs_process_events() failed\n"

	.comm	_NJS_ERROR,8,3                  ; @NJS_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"njs_process_script(): async events unsupported\n"

	.no_dead_strip	_njs_process_script
.subsections_via_symbols
