// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/compiler/typescript/typescript_generator.cpp
// Function: reviser::typescript::TypeScriptGenerator::Generate[abi:cxx11]()
string TypeScriptGenerator::Generate() {
    string block_separetor = "\n\n";
    string code(
      "//\n"
      "// language: TypeScript\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 0x51c9(%rip), %rsi      # 0x50b52
leaq 0x51c4(%rip), %rdx      # 0x50b54
leaq -0x88(%rbp), %rdi
callq 0x29178
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x528f(%rip), %rsi      # 0x50c3d
leaq 0x5312(%rip), %rdx      # 0x50cc7
leaq -0xa8(%rbp), %rdi
callq 0x29178
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x4a4d8
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 0x4ba05
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4ba0b
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 0x4ba44
callq 0x24320
movq %r15, -0xb0(%rbp)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ba5d
callq 0x24320
movq 0x8(%r14), %r13
movq 0x10(%r14), %r12
cmpq %r12, %r13
je 0x4bbcd
leaq -0x68(%rbp), %r15
movl (%r13), %eax
movq 0x8(%r13), %rsi
testl %eax, %eax
je 0x4bae1
cmpl $0x1, %eax
jne 0x4bbc0
movq 0x20(%r14), %rax
movq 0x28(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x4bcfb
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 0x4bb3c
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4bb42
movq 0x38(%r14), %rax
movq 0x40(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x4bced
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 0x4bb6f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4bb75
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 0x4bba0
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 0x4bbae
callq 0x24320
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x4bbc0
callq 0x24320
addq $0x10, %r13
cmpq %r12, %r13
jne 0x4ba72
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
callq 0x4b1a8
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 0x4bc1b
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4bc21
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 0x4bc6e
movq %rsi, (%r14)
movq (%rcx), %rdx
movq %rdx, 0x10(%r14)
jmp 0x4bc74
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 0x4bc99
callq 0x24320
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
leaq -0x78(%rbp), %rbx
je 0x4bcaf
callq 0x24320
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x4bcc7
callq 0x24320
movq -0x88(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4bcd8
callq 0x24320
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x35d6(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
leaq 0x35c8(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
jmp 0x4bd3e
jmp 0x4bd53
jmp 0x4bd6a
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4bd25
callq 0x24320
jmp 0x4bd25
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x4bd5e
jmp 0x4bd6a
movq %rax, %r14
jmp 0x4bd85
jmp 0x4bd6a
jmp 0x4bd6a
jmp 0x4bd6a
jmp 0x4bd3e
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4bd56
callq 0x24320
jmp 0x4bd56
jmp 0x4bd53
movq %rax, %r14
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x4bd6d
callq 0x24320
jmp 0x4bd6d
movq %rax, %r14
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x4bd85
callq 0x24320
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x4bd9a
callq 0x24320
movq %r14, %rdi
callq 0x245f0