// File: CoinXu[P]reviser-compiler/src/compiler/javascript/javascript_generator.cpp
// Function: reviser::javascript::JavaScriptGenerator::Export[abi:cxx11]()
string JavaScriptGenerator::Export() {
    string code;

    if (descriptor->GlobalVariables().size() == 0) {
      return code;
    }

    code += "export {\n";
    vector<Descriptor::VariableDeclare> variables = descriptor->GlobalVariables();
    for (vector<Descriptor::VariableDeclare>::iterator it = begin(variables); it != end(variables); it++) {
      code += JavaScriptCommon::Indent(1) + (*it).id + (next(it) == end(variables) ? "\n" : ",\n");
    }

    return code += "}";
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x118(%rbp)
movq %rdi, %rax
movq %rax, -0x110(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x99650
movq -0x108(%rbp), %rax
movq 0x50(%rax), %rsi
leaq -0x48(%rbp), %rdi
callq 0xbd260
jmp 0xee03e
leaq -0x48(%rbp), %rdi
callq 0xc0340
movq %rax, -0x120(%rbp)
leaq -0x48(%rbp), %rdi
callq 0xbe0c0
movq -0x120(%rbp), %rax
cmpq $0x0, %rax
jne 0xee091
movq -0x118(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x99290
movl $0x1, -0x58(%rbp)
jmp 0xee2c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xee2de
leaq 0x12a83(%rip), %rsi     # 0x100b1b
leaq -0x30(%rbp), %rdi
callq 0x99460
jmp 0xee0a3
movq -0x108(%rbp), %rax
movq 0x50(%rax), %rsi
leaq -0x70(%rbp), %rdi
callq 0xbd260
jmp 0xee0b9
leaq -0x70(%rbp), %rdi
callq 0xef370
movq %rax, -0x128(%rbp)
jmp 0xee0cb
movq -0x128(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xef3a0
movq %rax, -0x130(%rbp)
jmp 0xee0e8
movq -0x130(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x78(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xbdda0
testb $0x1, %al
jne 0xee109
jmp 0xee27a
leaq -0xe0(%rbp), %rdi
movl $0x1, %esi
callq 0xeb9c0
jmp 0xee11c
leaq -0x78(%rbp), %rdi
callq 0xbdde0
movq %rax, %rdx
leaq -0xc0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0xc25f0
jmp 0xee13d
movq -0x78(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rdi
movl $0x1, %esi
callq 0xef410
movq %rax, -0x138(%rbp)
jmp 0xee162
movq -0x138(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xef3a0
movq %rax, -0x140(%rbp)
jmp 0xee182
movq -0x140(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0xef3d0
movb %al, %cl
leaq 0x12a02(%rip), %rax     # 0x100bae
leaq 0x1286a(%rip), %rdx     # 0x100a1d
testb %cl, %cl
cmovneq %rax, %rdx
leaq -0xa0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0xa10c0
jmp 0xee1ce
leaq -0x30(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x995d0
jmp 0xee1e0
leaq -0xa0(%rbp), %rdi
callq 0x992c0
leaq -0xc0(%rbp), %rdi
callq 0x992c0
leaq -0xe0(%rbp), %rdi
callq 0x992c0
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
callq 0xef440
movq %rax, -0x100(%rbp)
jmp 0xee0d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xee2ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xee26c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xee260
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x992c0
leaq -0xc0(%rbp), %rdi
callq 0x992c0
leaq -0xe0(%rbp), %rdi
callq 0x992c0
jmp 0xee2ba
leaq 0x1100b(%rip), %rsi     # 0xff28c
leaq -0x30(%rbp), %rdi
callq 0x99460
movq %rax, -0x148(%rbp)
jmp 0xee293
movq -0x148(%rbp), %rsi
movq -0x118(%rbp), %rdi
callq 0x991c0
jmp 0xee2a8
movl $0x1, -0x58(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xbe0c0
jmp 0xee2c5
leaq -0x70(%rbp), %rdi
callq 0xbe0c0
jmp 0xee2de
leaq -0x30(%rbp), %rdi
callq 0x992c0
movq -0x110(%rbp), %rax
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0x992c0
movq -0x50(%rbp), %rdi
callq 0x99840