// File: /workspace/github_c_makefile_star2_O1/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 $0xd8, %rsp
movq %rdi, 0xeb1e(%rip)      # 0x17778
movq 0x38(%rdi), %rax
leaq 0xe92b(%rip), %rcx      # 0x17590
movq (%rcx), %rcx
movslq (%rax,%rcx,4), %rax
addq 0x10(%rdi), %rax
movq %rax, 0xeb09(%rip)      # 0x17780
leaq 0x3593(%rip), %r13      # 0xc211
leaq 0xff0b(%rip), %rbp      # 0x18b90
leaq 0x33f4(%rip), %r12      # 0xc080
movq 0xeaed(%rip), %rcx      # 0x17780
leaq 0x1(%rcx), %rax
movq %rax, 0xeae2(%rip)      # 0x17780
movzbl (%rcx), %eax
movl %eax, %edx
andb $-0x2, %dl
cmpb $-0x8, %dl
jne 0x8cc2
movzwl %ax, %edx
shll $0x8, %edx
leaq 0x2(%rcx), %rax
movq %rax, 0xeac4(%rip)      # 0x17780
movzbl 0x1(%rcx), %eax
orl %edx, %eax
movzwl %ax, %r15d
movl %r15d, %edi
callq 0x77b8
testq %rax, %rax
je 0x8e48
movl 0x10(%rax), %r14d
cmpl $0x1, %r14d
jne 0x8d15
movq 0xff28(%rip), %rcx      # 0x18c10
addq $-0x10, %rcx
xorl %edx, %edx
movq %rcx, 0xff1b(%rip)      # 0x18c10
movups (%rcx), %xmm0
movups %xmm0, 0x50(%rsp,%rdx)
addq $-0x10, %rcx
addq $0x10, %rdx
cmpq $0x80, %rdx
jne 0x8cee
movq %rbp, 0xfefb(%rip)      # 0x18c10
cmpl $0x59, %r15d
jg 0x8e09
leal -0x9(%r15), %ecx
cmpl $0x45, %ecx
ja 0x8e6b
movslq (%r12,%rcx,4), %rcx
addq %r12, %rcx
jmpq *%rcx
movq 0xea44(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xea39(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xea2b(%rip)      # 0x17780
movzbl 0x1(%rax), %edx
shll $0x4, %ecx
leaq 0xea15(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %esi
shll $0x4, %edx
movl 0x18(%rdx,%rdi), %edx
leaq 0x4(%rax), %rcx
movq %rcx, 0xea07(%rip)      # 0x17780
movzbl 0x2(%rax), %r12d
movzbl 0x3(%rax), %ebx
jmp 0x8dcb
movq 0xe9f5(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe9ea(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe9d5(%rip), %rdx      # 0x17778
movl 0x18(%rcx,%rdx), %esi
leaq 0x5(%rax), %rcx
movq %rcx, 0xe9ce(%rip)      # 0x17780
movl 0x1(%rax), %edx
bswapl %edx
leaq 0x7(%rax), %rcx
movq %rcx, 0xe9be(%rip)      # 0x17780
movzbl 0x5(%rax), %r12d
movzbl 0x6(%rax), %ebx
movl %r15d, %edi
callq 0x95bd
testb %al, %al
je 0x8de6
shll $0x8, %r12d
orq %rbx, %r12
movq %r12, %rdi
callq 0x9592
leaq 0x3293(%rip), %r12      # 0xc080
movb $0x1, %bl
cmpl $0x1, %r14d
jne 0x8dfc
movq %rbp, 0xfe14(%rip)      # 0x18c10
testb %bl, %bl
jne 0x8c8c
jmp 0x9531
cmpl $0x5a, %r15d
je 0x92cf
cmpl $0x5e, %r15d
je 0x8ded
cmpl $0xf923, %r15d          # imm = 0xF923
jne 0x951a
movslq 0x58(%rsp), %rax
shlq $0x4, %rax
leaq 0xe942(%rip), %rcx      # 0x17778
movl $0x1, 0x10(%rax,%rcx)
movl $0x7b, 0x18(%rax,%rcx)
jmp 0x8ded
movq 0xe1a1(%rip), %rax      # 0x16ff0
movq (%rax), %rdi
xorl %ebx, %ebx
movq %r13, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x40e0
movl $0x2, 0xc(%rsp)
jmp 0x8dfc
cmpl $0x1, %r15d
jne 0x951a
leaq 0xf90c(%rip), %rax      # 0x18788
cmpq %rax, 0xfd05(%rip)      # 0x18b88
je 0x950b
callq 0x8c0d
movq 0xe8e3(%rip), %rax      # 0x17778
movslq %edx, %rcx
addq 0x10(%rax), %rcx
movq %rcx, 0xe8dd(%rip)      # 0x17780
jmp 0x8ded
movq 0xe8d1(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe8c6(%rip)      # 0x17780
movzbl (%rax), %eax
shll $0x4, %eax
leaq 0xe8b1(%rip), %rcx      # 0x17778
movl 0x10(%rax,%rcx), %edi
movq 0x18(%rax,%rcx), %rsi
callq 0x8bcf
jmp 0x8ded
movq 0xe89f(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe894(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xe886(%rip)      # 0x17780
movzbl 0x1(%rax), %esi
shll $0x4, %ecx
leaq 0xe870(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %eax
shll $0x4, %esi
cltd
idivl 0x18(%rsi,%rdi)
jmp 0x91d3
movq 0xe860(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe855(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xe847(%rip)      # 0x17780
movzbl 0x1(%rax), %eax
shll $0x4, %ecx
shll $0x4, %eax
leaq 0xe82e(%rip), %rdx      # 0x17778
movl 0x18(%rax,%rdx), %eax
imull 0x18(%rcx,%rdx), %eax
jmp 0x9123
movq 0xe821(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe816(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xe808(%rip)      # 0x17780
movzbl 0x1(%rax), %eax
shll $0x4, %ecx
shll $0x4, %eax
leaq 0xe7ef(%rip), %rdx      # 0x17778
movl 0x18(%rax,%rdx), %eax
movl $0x1, 0x10(%rcx,%rdx)
subl %eax, 0x18(%rcx,%rdx)
jmp 0x8ded
movq 0xe7db(%rip), %rcx      # 0x17780
leaq 0x2(%rcx), %rax
movq %rax, 0xe7d0(%rip)      # 0x17780
movzwl (%rcx), %edx
rolw $0x8, %dx
movq 0xe7ba(%rip), %rcx      # 0x17778
movq 0x38(%rcx), %rsi
movzwl %dx, %edx
movslq (%rsi,%rdx,4), %rbx
testq %rbx, %rbx
js 0x9527
subl 0x10(%rcx), %eax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
movq 0x20(%rsp), %rsi
andq %rcx, %rsi
orq %rax, %rsi
movl $0x1, %edi
movq %rsi, 0x20(%rsp)
callq 0x8bcf
movq 0xe778(%rip), %rax      # 0x17778
addq 0x10(%rax), %rbx
movq %rbx, 0xe775(%rip)      # 0x17780
jmp 0x8ded
movq 0xe769(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe75e(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x2(%rax), %rdx
movq %rdx, 0xe750(%rip)      # 0x17780
movzbl 0x1(%rax), %eax
shll $0x4, %ecx
shll $0x4, %eax
leaq 0xe737(%rip), %rdx      # 0x17778
movl 0x18(%rax,%rdx), %eax
movl $0x1, 0x10(%rcx,%rdx)
addl %eax, 0x18(%rcx,%rdx)
jmp 0x8ded
movq 0xe723(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe718(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe703(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %edx
leaq 0x5(%rax), %rsi
movq %rsi, 0xe6fc(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
subl %eax, %edx
movl $0x1, 0x10(%rcx,%rdi)
movl %edx, 0x18(%rcx,%rdi)
jmp 0x8ded
movq 0xe6dd(%rip), %rax      # 0x17780
leaq 0x2(%rax), %rcx
movq %rcx, 0xe6d2(%rip)      # 0x17780
movzwl (%rax), %eax
rolw $0x8, %ax
movzwl %ax, %edi
callq 0x9592
jmp 0x8ded
movq 0xe6b7(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe6ac(%rip)      # 0x17780
movzbl (%rax), %eax
shll $0x4, %eax
xorl %ecx, %ecx
leaq 0xe695(%rip), %rdx      # 0x17778
cmpl $0x0, 0x18(%rax,%rdx)
sete %cl
movl %ecx, 0x18(%rax,%rdx)
jmp 0x8ded
movq 0xe685(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe67a(%rip)      # 0x17780
movzbl (%rax), %ecx
leaq 0x5(%rax), %rdx
movq %rdx, 0xe66c(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
shll $0x4, %ecx
leaq 0xe655(%rip), %rdx      # 0x17778
movl $0x1, 0x10(%rcx,%rdx)
movl %eax, 0x18(%rcx,%rdx)
jmp 0x8ded
movq 0xe645(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe63a(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe625(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %edx
leaq 0x5(%rax), %rsi
movq %rsi, 0xe61e(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
addl %edx, %eax
jmp 0x91d3
movq 0xe60e(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe603(%rip)      # 0x17780
movzbl (%rax), %ebx
shll $0x4, %ebx
callq 0x8c0d
leaq 0xe5e9(%rip), %rcx      # 0x17778
movl %eax, 0x10(%rbx,%rcx)
movq %rdx, 0x18(%rbx,%rcx)
jmp 0x8ded
movq 0xe5dc(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe5d1(%rip)      # 0x17780
movzbl (%rax), %ecx
shll $0x4, %ecx
leaq 0xe5bc(%rip), %rdi      # 0x17778
movl 0x18(%rcx,%rdi), %edx
leaq 0x5(%rax), %rsi
movq %rsi, 0xe5b5(%rip)      # 0x17780
movl 0x1(%rax), %eax
bswapl %eax
imull %edx, %eax
movl $0x1, 0x10(%rcx,%rdi)
movl %eax, 0x18(%rcx,%rdi)
jmp 0x8ded
movq 0xe595(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe58a(%rip)      # 0x17780
movzbl (%rax), %eax
shll $0x4, %eax
leaq 0xe575(%rip), %rdx      # 0x17778
movl 0x10(%rax,%rdx), %ecx
movq 0x18(%rax,%rdx), %rax
movq 0xf9fd(%rip), %rdx      # 0x18c10
movl %ecx, (%rdx)
movq %rax, 0x8(%rdx)
jmp 0x92c2
movq 0xe55b(%rip), %rcx      # 0x17780
leaq 0x1(%rcx), %rax
movq %rax, 0xe550(%rip)      # 0x17780
movzbl (%rcx), %esi
shll $0x4, %esi
leaq 0xe53b(%rip), %rdi      # 0x17778
movl 0x18(%rsi,%rdi), %eax
leaq 0x5(%rcx), %rdx
movq %rdx, 0xe534(%rip)      # 0x17780
movl 0x1(%rcx), %ecx
bswapl %ecx
cltd
idivl %ecx
movl $0x1, 0x10(%rsi,%rdi)
movl %eax, 0x18(%rsi,%rdi)
jmp 0x8ded
movq 0xe514(%rip), %rax      # 0x17780
movq %rax, %rcx
cmpw $0x0, (%rcx)
leaq 0x2(%rcx), %rcx
jne 0x926f
movq %rcx, 0xe500(%rip)      # 0x17780
movq 0xf989(%rip), %rcx      # 0x18c10
movl $0x6, (%rcx)
movq %rax, 0x8(%rcx)
jmp 0x92c2
movq 0xe4e6(%rip), %rax      # 0x17780
leaq 0x1(%rax), %rcx
movq %rcx, 0xe4db(%rip)      # 0x17780
movq 0x28(%rsp), %rcx
movb (%rax), %cl
movq 0xf95d(%rip), %rax      # 0x18c10
movl $0x3, (%rax)
movq %rcx, 0x28(%rsp)
movq %rcx, 0x8(%rax)
addq $0x10, 0xf946(%rip)     # 0x18c10
jmp 0x8ded
movl %r14d, 0x18(%rsp)
xorl %r14d, %r14d
movq 0x58(%rsp), %rbx
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
xorl %esi, %esi
movl $0x8, %edi
movzwl (%rbx), %edx
testl %edx, %edx
je 0x9480
cmpb $0x3c, %dl
je 0x93f9
movsbl %dl, %eax
cmpl $0x3e, %eax
jne 0x93fe
cmpl $0x1, %r14d
jne 0x948a
movl %edx, 0x1c(%rsp)
xorl %eax, %eax
leal (%rax,%rax,4), %eax
movzwl (%r12), %ecx
leal (%rcx,%rax,2), %eax
addl $-0x30, %eax
addq $0x2, %r12
cmpq %rbx, %r12
jb 0x931e
movzbl %al, %eax
shll $0x4, %eax
leaq 0xe436(%rip), %rcx      # 0x17778
movl 0x18(%rax,%rcx), %eax
movq %r13, (%rsp)
xorl %r12d, %r12d
movslq %eax, %rcx
imulq $0x66666667, %rcx, %rdx # imm = 0x66666667
movq %rdx, %rsi
shrq $0x3f, %rsi
sarq $0x22, %rdx
addl %esi, %edx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
negl %esi
addl %esi, %eax
addl $0x30, %eax
movw %ax, 0x42(%rsp,%r12)
addq $-0x2, %r12
incq %r13
movl %edx, %eax
cmpl $0x9, %ecx
jg 0x934d
movq %rbx, 0x10(%rsp)
leaq 0x1(%r13), %r14
cmpq %r14, %rbp
jae 0x93c3
movl $0x8, %ebx
leaq (,%rbp,2), %rsi
cmpq $0x8, %rbp
movq %rsi, %rbp
cmovbq %rbx, %rbp
leaq (,%rbp,2), %rdx
movq %r15, %rdi
callq 0x76c4
movq %rax, %r15
cmpq %r14, %rbp
jb 0x9398
leaq (%rsp,%r12), %rsi
addq $0x44, %rsi
movq (%rsp), %rax
leaq (%r15,%rax,2), %rdi
negq %r12
movq %r12, %rdx
callq 0x4100
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %esi, %esi
movl $0x8, %edi
movq 0x10(%rsp), %rbx
movl 0x1c(%rsp), %edx
jmp 0x947c
movq %rbx, %rsi
jmp 0x947c
testq %rsi, %rsi
je 0x9427
movq %rbx, %rcx
subq %rsi, %rcx
cmpq $0x2, %rcx
jne 0x947c
orl $0x20, %eax
cmpl $0x72, %eax
jne 0x94a2
leaq 0x2(%rbx), %r12
movl $0x1, %r14d
jmp 0x947c
leaq 0x2(%r13), %rax
cmpq %rax, %rbp
jae 0x946f
leaq (,%rbp,2), %rsi
cmpq $0x8, %rbp
movq %rsi, %rbp
cmovbq %rdi, %rbp
movq %r14, (%rsp)
movq %r13, %r14
movl %edx, %r13d
leaq (,%rbp,2), %rdx
movq %r15, %rdi
callq 0x76c4
movl $0x8, %edi
movl %r13d, %edx
movq %r14, %r13
movq (%rsp), %r14
movq %rax, %r15
movzwl (%rbx), %eax
movw %ax, (%r15,%r13,2)
incq %r13
xorl %esi, %esi
addq $0x2, %rbx
testl %edx, %edx
jne 0x92ee
jmp 0x94c6
movl %edx, %r12d
callq 0x43b1
movl $0x8, %edi
movl %r12d, %edx
xorl %r14d, %r14d
xorl %r12d, %r12d
jmp 0x947a
movq %r13, (%rsp)
movl %edx, %r13d
movq %rsi, 0x10(%rsp)
callq 0x43cd
movq 0x10(%rsp), %rsi
movl $0x8, %edi
movl %r13d, %edx
movq (%rsp), %r13
jmp 0x947c
movw $0x0, (%r15,%r13,2)
movl $0x6, %edi
movq %r15, %rsi
callq 0x8ab2
movl $0xa, %edi
callq 0x4040
movq %r15, %rdi
callq 0x4030
leaq 0x2d1e(%rip), %r13      # 0xc211
leaq 0xf696(%rip), %rbp      # 0x18b90
leaq 0x2b7f(%rip), %r12      # 0xc080
movl 0x18(%rsp), %r14d
jmp 0x8ded
xorl %ebx, %ebx
movl $0x0, 0xc(%rsp)
jmp 0x8dfc
movq %rax, %rdi
callq 0x4405
jmp 0x8ded
callq 0x43e9
jmp 0x8ded
movl 0xc(%rsp), %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq