// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/compiler/javascript/javascript_generator.cpp
// Function: reviser::javascript::JavaScriptGenerator::Generate[abi:cxx11]()
string JavaScriptGenerator::Generate() {
    string block_separetor = "\n\n";
    string code(
      "//\n"
      "// language: JavaScript\n"
      "// generated by reviser-comiper\n"
      "// do not change this file\n"
      "// see https://github.com/CoinXu/reviser-compiler\n\n\n"
    );

    code += Import() + block_separetor;

    for (StmtSeqItem it: seq) {
      switch(it.type) {
        case STMT_TYPE_STRUCT:
          code += StmtStruct(structures.at(it.index)) + block_separetor;
          break;

        case STMT_TYPE_ENUM:
          code += StmtEnum(enums.at(it.index)) + block_separetor;
          break;

        default:
          break;
      }
    }

    return code + Export() + block_separetor;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xbc75(%rip), %rsi      # 0x50b52
leaq 0xbc70(%rip), %rdx      # 0x50b54
leaq -0x88(%rbp), %rdi
callq 0x29178
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xbbc8(%rip), %rsi      # 0x50aca
leaq 0xbc4b(%rip), %rdx      # 0x50b54
leaq -0xa8(%rbp), %rdi
callq 0x29178
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x43ec0
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x240f0
leaq -0x38(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x44f59
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x44f5f
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x240f0
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x44f98
callq 0x24320
movq %r15, -0xb0(%rbp)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44fb1
callq 0x24320
movq 0x8(%r14), %r13
movq 0x10(%r14), %r12
cmpq %r12, %r13
je 0x45121
leaq -0x68(%rbp), %r15
movl (%r13), %eax
movq 0x8(%r13), %rsi
testl %eax, %eax
je 0x45035
cmpl $0x1, %eax
jne 0x45114
movq 0x20(%r14), %rax
movq 0x28(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x4524f
movq (%rax,%rsi,8), %rdx
movq (%r14), %rax
movq %r15, %rdi
movq %r14, %rsi
callq *(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x240f0
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x45090
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x45096
movq 0x38(%r14), %rax
movq 0x40(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x45241
movq (%rax,%rsi,8), %rdx
movq (%r14), %rax
movq %r15, %rdi
movq %r14, %rsi
callq *0x8(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x240f0
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x450c3
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x450c9
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x240f0
jmp 0x450f4
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0x240f0
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x45102
callq 0x24320
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x45114
callq 0x24320
addq $0x10, %r13
cmpq %r12, %r13
jne 0x44fc6
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x44b90
movq -0xa8(%rbp), %rcx
movq -0xa0(%rbp), %r8
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x243a0
movq -0xb0(%rbp), %r14
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4516f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x45175
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq -0x48(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x240f0
leaq 0x10(%r14), %rdx
movq %rdx, (%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x451c2
movq %rsi, (%r14)
movq (%rcx), %rdx
movq %rdx, 0x10(%r14)
jmp 0x451c8
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x451ed
callq 0x24320
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
leaq -0x78(%rbp), %rbx
je 0x45203
callq 0x24320
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x4521b
callq 0x24320
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4522c
callq 0x24320
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa082(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
leaq 0xa074(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
jmp 0x45292
jmp 0x452a7
jmp 0x452be
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x45279
callq 0x24320
jmp 0x45279
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x452b2
jmp 0x452be
movq %rax, %r14
jmp 0x452d9
jmp 0x452be
jmp 0x452be
jmp 0x452be
jmp 0x45292
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x452aa
callq 0x24320
jmp 0x452aa
jmp 0x452a7
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x452c1
callq 0x24320
jmp 0x452c1
movq %rax, %r14
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x452d9
callq 0x24320
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x452ee
callq 0x24320
movq %r14, %rdi
callq 0x245f0