// File: /workspace/github_c_makefile_star2_O3/jtuu[P]quesler/src/vm.c
// Function: interpret_bytecode
InterpretResult interpret_bytecode(Chunk* chunk) {
    vm.chunk = chunk;
    vm.ip = vm.chunk->code + vm.chunk->labels[entry_point_label];

    InterpretResult result = run();

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, 0xecb2(%rip)      # 0x17778
movq 0x38(%rdi), %rax
leaq 0xeabf(%rip), %rcx      # 0x17590
movq (%rcx), %rcx
movslq (%rax,%rcx,4), %rax
addq 0x10(%rdi), %rax
leaq 0x100ad(%rip), %rbp     # 0x18b90
leaq 0x35c6(%rip), %r13      # 0xc0b0
leaq 0x1(%rax), %rcx
movq %rcx, 0xec8b(%rip)      # 0x17780
movzbl (%rax), %ecx
movl %ecx, %edx
andb $-0x2, %dl
cmpb $-0x8, %dl
jne 0x8b19
movzwl %cx, %edx
shll $0x8, %edx
leaq 0x2(%rax), %rcx
movq %rcx, 0xec6d(%rip)      # 0x17780
movzbl 0x1(%rax), %ecx
orl %edx, %ecx
movzwl %cx, %r14d
movl %r14d, %edi
callq 0x7698
testq %rax, %rax
je 0x931d
movl 0x10(%rax), %r15d
cmpl $0x1, %r15d
jne 0x8b6c
movq 0x100d1(%rip), %rcx     # 0x18c10
addq $-0x10, %rcx
xorl %edx, %edx
movq %rcx, 0x100c4(%rip)     # 0x18c10
movups (%rcx), %xmm0
movups %xmm0, 0x40(%rsp,%rdx)
addq $-0x10, %rcx
addq $0x10, %rdx
cmpq $0x80, %rdx
jne 0x8b45
movq %rbp, 0x100a4(%rip)     # 0x18c10
cmpl $0x59, %r14d
jg 0x8c60
leal -0x9(%r14), %ecx
cmpl $0x45, %ecx
ja 0x8c9f
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movl %r15d, %r12d
movq 0xebe9(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xebde(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xebd0(%rip)      # 0x17780
movzbl 0x1(%rax), %edx
shll $0x4, %ecx
leaq 0xebba(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %esi
shll $0x4, %edx
movl 0x18(%rdx,%rdi), %edx
leaq 0x4(%rax), %rcx
movq %rcx, 0xebac(%rip)      # 0x17780
movzbl 0x2(%rax), %r15d
movzbl 0x3(%rax), %ebx
jmp 0x8c29
movl %r15d, %r12d
movq 0xeb97(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xeb8c(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xeb77(%rip), %rdx      # 0x17778
movl 0x18(%rcx,%rdx), %esi
leaq 0x5(%rax), %rcx
movq %rcx, 0xeb70(%rip)      # 0x17780
movl 0x1(%rax), %edx
bswapl %edx
leaq 0x7(%rax), %rcx
movq %rcx, 0xeb60(%rip)      # 0x17780
movzbl 0x5(%rax), %r15d
movzbl 0x6(%rax), %ebx
movl %r14d, %edi
callq 0x93c9
testb %al, %al
je 0x8c44
shll $0x8, %r15d
orq %rbx, %r15
movq %r15, %rdi
callq 0x939e
movl %r12d, %r15d
cmpl $0x1, %r15d
jne 0x8c54
movq %rbp, 0xffbc(%rip)      # 0x18c10
movq 0xeb25(%rip), %rax      # 0x17780
jmp 0x8aea
cmpl $0x5a, %r14d
je 0x9103
cmpl $0x5e, %r14d
je 0x8c47
cmpl $0xf923, %r14d          # imm = 0xF923
jne 0x9306
movslq 0x48(%rsp), %rax
shlq $0x4, %rax
leaq 0xeaeb(%rip), %rcx      # 0x17778
movl $0x1, 0x10(%rax,%rcx)
movl $0x7b, 0x18(%rax,%rcx)
jmp 0x8c47
cmpl $0x1, %r14d
jne 0x9306
leaq 0xfad8(%rip), %rax      # 0x18788
cmpq %rax, 0xfed1(%rip)      # 0x18b88
je 0x933f
callq 0x8a7d
movq 0xeaaf(%rip), %rax      # 0x17778
movslq %edx, %rcx
addq 0x10(%rax), %rcx
movq %rcx, 0xeaa9(%rip)      # 0x17780
jmp 0x8c47
movq 0xea9d(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xea92(%rip)      # 0x17780
movzbl (%rax), %eax
shll $0x4, %eax
leaq 0xea7d(%rip), %rcx      # 0x17778
movl 0x10(%rax,%rcx), %edi
movq 0x18(%rax,%rcx), %rsi
callq 0x8a3f
jmp 0x8c47
movq 0xea6b(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xea60(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xea52(%rip)      # 0x17780
movzbl 0x1(%rax), %esi
shll $0x4, %ecx
leaq 0xea3c(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %eax
shll $0x4, %esi
cltd
idivl 0x18(%rsi,%rdi)
jmp 0x9007
movq 0xea2c(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xea21(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xea13(%rip)      # 0x17780
movzbl 0x1(%rax), %eax
shll $0x4, %ecx
shll $0x4, %eax
leaq 0xe9fa(%rip), %rdx      # 0x17778
movl 0x18(%rax,%rdx), %eax
imull 0x18(%rcx,%rdx), %eax
jmp 0x8f57
movq 0xe9ed(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe9e2(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xe9d4(%rip)      # 0x17780
movzbl 0x1(%rax), %eax
shll $0x4, %ecx
shll $0x4, %eax
leaq 0xe9bb(%rip), %rdx      # 0x17778
movl 0x18(%rax,%rdx), %eax
movl $0x1, 0x10(%rcx,%rdx)
subl %eax, 0x18(%rcx,%rdx)
jmp 0x8c47
movq 0xe9a7(%rip), %rcx      # 0x17780
leaq 0x2(%rcx), %rax
movq %rax, 0xe99c(%rip)      # 0x17780
movzwl (%rcx), %edx
rolw $0x8, %dx
movq 0xe986(%rip), %rcx      # 0x17778
movq 0x38(%rcx), %rsi
movzwl %dx, %edx
movslq (%rsi,%rdx,4), %rbx
testq %rbx, %rbx
js 0x9313
subl 0x10(%rcx), %eax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
movq 0x10(%rsp), %rsi
andq %rcx, %rsi
orq %rax, %rsi
movl $0x1, %edi
movq %rsi, 0x10(%rsp)
callq 0x8a3f
movq 0xe944(%rip), %rax      # 0x17778
addq 0x10(%rax), %rbx
movq %rbx, 0xe941(%rip)      # 0x17780
jmp 0x8c47
movq 0xe935(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe92a(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xe91c(%rip)      # 0x17780
movzbl 0x1(%rax), %eax
shll $0x4, %ecx
shll $0x4, %eax
leaq 0xe903(%rip), %rdx      # 0x17778
movl 0x18(%rax,%rdx), %eax
movl $0x1, 0x10(%rcx,%rdx)
addl %eax, 0x18(%rcx,%rdx)
jmp 0x8c47
movq 0xe8ef(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe8e4(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe8cf(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %edx
leaq 0x5(%rax), %rsi
movq %rsi, 0xe8c8(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
subl %eax, %edx
movl $0x1, 0x10(%rcx,%rdi)
movl %edx, 0x18(%rcx,%rdi)
jmp 0x8c47
movq 0xe8a9(%rip), %rax      # 0x17780
leaq 0x2(%rax), %rcx
movq %rcx, 0xe89e(%rip)      # 0x17780
movzwl (%rax), %eax
rolw $0x8, %ax
movzwl %ax, %edi
callq 0x939e
jmp 0x8c47
movq 0xe883(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe878(%rip)      # 0x17780
movzbl (%rax), %eax
shll $0x4, %eax
xorl %ecx, %ecx
leaq 0xe861(%rip), %rdx      # 0x17778
cmpl $0x0, 0x18(%rax,%rdx)
sete %cl
movl %ecx, 0x18(%rax,%rdx)
jmp 0x8c47
movq 0xe851(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe846(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x5(%rax), %rdx
movq %rdx, 0xe838(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
shll $0x4, %ecx
leaq 0xe821(%rip), %rdx      # 0x17778
movl $0x1, 0x10(%rcx,%rdx)
movl %eax, 0x18(%rcx,%rdx)
jmp 0x8c47
movq 0xe811(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe806(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe7f1(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %edx
leaq 0x5(%rax), %rsi
movq %rsi, 0xe7ea(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
addl %edx, %eax
jmp 0x9007
movq 0xe7da(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe7cf(%rip)      # 0x17780
movzbl (%rax), %ebx
shll $0x4, %ebx
callq 0x8a7d
leaq 0xe7b5(%rip), %rcx      # 0x17778
movl %eax, 0x10(%rbx,%rcx)
movq %rdx, 0x18(%rbx,%rcx)
jmp 0x8c47
movq 0xe7a8(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe79d(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe788(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %edx
leaq 0x5(%rax), %rsi
movq %rsi, 0xe781(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
imull %edx, %eax
movl $0x1, 0x10(%rcx,%rdi)
movl %eax, 0x18(%rcx,%rdi)
jmp 0x8c47
movq 0xe761(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe756(%rip)      # 0x17780
movzbl (%rax), %eax
shll $0x4, %eax
leaq 0xe741(%rip), %rdx      # 0x17778
movl 0x10(%rax,%rdx), %ecx
movq 0x18(%rax,%rdx), %rax
movq 0xfbc9(%rip), %rdx      # 0x18c10
movl %ecx, (%rdx)
movq %rax, 0x8(%rdx)
jmp 0x90f6
movq 0xe727(%rip), %rcx      # 0x17780
leaq 0x1(%rcx), %rax
movq %rax, 0xe71c(%rip)      # 0x17780
movzbl (%rcx), %esi
shll $0x4, %esi
leaq 0xe707(%rip), %rdi      # 0x17778
movl 0x18(%rsi,%rdi), %eax
leaq 0x5(%rcx), %rdx
movq %rdx, 0xe700(%rip)      # 0x17780
movl 0x1(%rcx), %ecx
bswapl %ecx
cltd
idivl %ecx
movl $0x1, 0x10(%rsi,%rdi)
movl %eax, 0x18(%rsi,%rdi)
jmp 0x8c47
movq 0xe6e0(%rip), %rax      # 0x17780
movq %rax, %rcx
cmpw $0x0, (%rcx)
leaq 0x2(%rcx), %rcx
jne 0x90a3
movq %rcx, 0xe6cc(%rip)      # 0x17780
movq 0xfb55(%rip), %rcx      # 0x18c10
movl $0x6, (%rcx)
movq %rax, 0x8(%rcx)
jmp 0x90f6
movq 0xe6b2(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe6a7(%rip)      # 0x17780
movq 0x18(%rsp), %rcx
movb (%rax), %cl
movq 0xfb29(%rip), %rax      # 0x18c10
movl $0x3, (%rax)
movq %rcx, 0x18(%rsp)
movq %rcx, 0x8(%rax)
addq $0x10, 0xfb12(%rip)     # 0x18c10
jmp 0x8c47
movl %r15d, 0xc(%rsp)
movq 0x48(%rsp), %r13
movzwl (%r13), %eax
testw %ax, %ax
je 0x92c3
xorl %esi, %esi
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %edx, %edx
cmpb $0x3c, %al
je 0x91ec
movsbl %al, %ecx
cmpl $0x3e, %ecx
jne 0x91f7
cmpl $0x1, %edx
jne 0x929f
xorl %eax, %eax
leal (%rax,%rax,4), %eax
movzwl (%r15), %ecx
leal (%rcx,%rax,2), %eax
addl $-0x30, %eax
addq $0x2, %r15
cmpq %r13, %r15
jb 0x9149
movzbl %al, %eax
shll $0x4, %eax
leaq 0xe60c(%rip), %rcx      # 0x17778
movl 0x18(%rax,%rcx), %ecx
movq %rbp, (%rsp)
movq %rbp, %rbx
xorl %r15d, %r15d
movl $0xcccccccd, %esi       # imm = 0xCCCCCCCD
movslq %ecx, %rax
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
addl %ecx, %ecx
leal (%rcx,%rcx,4), %ecx
negl %ecx
addl %eax, %ecx
addl $0x30, %ecx
movw %cx, 0x32(%rsp,%r15)
movl %eax, %ecx
imulq %rsi, %rcx
shrq $0x23, %rcx
addq $-0x2, %r15
incq %rbx
cmpl $0x9, %eax
jg 0x917f
leaq 0x1(%rbx), %rbp
cmpq %rbp, %r12
jae 0x9222
leaq (%r12,%r12), %rsi
cmpq $0x8, %r12
movq %rsi, %r12
movl $0x8, %eax
cmovbq %rax, %r12
leaq (%r12,%r12), %rdx
movq %r14, %rdi
callq 0x75a4
movq %rax, %r14
jmp 0x91c2
movq %rbp, %rbx
movq %r13, %rsi
jmp 0x9288
testq %rsi, %rsi
je 0x9244
movq %r13, %rax
subq %rsi, %rax
cmpq $0x2, %rax
jne 0x921d
orl $0x20, %ecx
cmpl $0x72, %ecx
jne 0x92ab
leaq 0x2(%r13), %r15
movl $0x1, %edx
movq %rbp, %rbx
jmp 0x9288
leaq (%rsp,%r15), %rsi
addq $0x34, %rsi
movq (%rsp), %rax
leaq (%r14,%rax,2), %rdi
negq %r15
movq %r15, %rdx
callq 0x4100
xorl %edx, %edx
xorl %r15d, %r15d
jmp 0x9286
leaq 0x2(%rbp), %rcx
cmpq %rcx, %r12
jae 0x927b
leaq (%r12,%r12), %rsi
cmpq $0x8, %r12
movq %rsi, %r12
movl $0x8, %eax
cmovbq %rax, %r12
movq %rdx, %rbx
leaq (%r12,%r12), %rdx
movq %r14, %rdi
callq 0x75a4
movq %rbx, %rdx
movq %rax, %r14
movzwl (%r13), %eax
movw %ax, (%r14,%rbp,2)
incq %rbp
movq %rbp, %rbx
xorl %esi, %esi
movzwl 0x2(%r13), %eax
addq $0x2, %r13
movq %rbx, %rbp
testw %ax, %ax
jne 0x912a
jmp 0x92c8
callq 0x439a
xorl %edx, %edx
movq %rbp, %rbx
jmp 0x923f
movq %rdx, (%rsp)
movq %rsi, %rbx
callq 0x43b6
movq %rbx, %rsi
movq (%rsp), %rdx
jmp 0x921d
xorl %r14d, %r14d
xorl %ebx, %ebx
movw $0x0, (%r14,%rbx,2)
movl $0x6, %edi
movq %r14, %rsi
callq 0x8929
movl $0xa, %edi
callq 0x4040
movq %r14, %rdi
callq 0x4030
leaq 0xf89b(%rip), %rbp      # 0x18b90
leaq 0x2db4(%rip), %r13      # 0xc0b0
movl 0xc(%rsp), %r15d
jmp 0x8c47
movq %rax, %rdi
callq 0x43ee
jmp 0x8c47
callq 0x43d2
jmp 0x8c47
movq 0xdccc(%rip), %rax      # 0x16ff0
movq (%rax), %rdi
leaq 0x2f13(%rip), %rsi      # 0xc241
movl %r14d, %edx
xorl %eax, %eax
callq 0x40e0
movl $0x2, %eax
jmp 0x9341
xorl %eax, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq