// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, -0x30(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x50(%rsi), %rsi
leaq -0x70(%rbp), %rdi
callq 0x32e54
leaq -0x70(%rbp), %rdi
movq 0x8(%rdi), %rbx
movq (%rdi), %r15
callq 0x33446
cmpq %r15, %rbx
je 0x44d45
leaq 0xbed5(%rip), %rsi      # 0x50ac0
leaq -0x50(%rbp), %rdi
callq 0x24650
movq 0x50(%r14), %rsi
leaq -0x88(%rbp), %rdi
callq 0x32e54
movq -0x88(%rbp), %r14
cmpq -0x80(%rbp), %r14
je 0x44cfb
leaq -0x60(%rbp), %rbx
leaq -0xa8(%rbp), %r15
leaq -0xc8(%rbp), %r12
leaq -0x50(%rbp), %r13
movq %r15, %rdi
movl $0x1, %esi
callq 0x42ef0
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x34543
addq $0x28, %r14
leaq 0xbf02(%rip), %rsi      # 0x50b53
cmpq -0x80(%rbp), %r14
je 0x44c5e
leaq 0xbd5f(%rip), %rsi      # 0x509bd
movq %r12, %rdi
callq 0x24650
movq %rbx, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x44c86
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x44c8c
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x68(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq %r13, %rdi
callq 0x240f0
movq -0x70(%rbp), %rdi
cmpq %rbx, %rdi
je 0x44cc1
callq 0x24320
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x44cd9
callq 0x24320
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x44cf1
callq 0x24320
cmpq -0x80(%rbp), %r14
jne 0x44c2b
leaq 0xa58a(%rip), %rsi      # 0x4f28c
leaq -0x50(%rbp), %rdi
callq 0x24650
movq -0x30(%rbp), %rdi
leaq 0x10(%rdi), %rcx
movq %rcx, (%rdi)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x290da
leaq -0x88(%rbp), %rdi
callq 0x33446
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x44d78
callq 0x24320
jmp 0x44d78
movq -0x30(%rbp), %rsi
leaq 0x10(%rsi), %rax
movq %rax, (%rsi)
movq -0x50(%rbp), %rcx
leaq -0x40(%rbp), %rdx
cmpq %rdx, %rcx
je 0x44d6a
movq %rcx, (%rsi)
movq -0x40(%rbp), %rax
movq %rax, 0x10(%rsi)
jmp 0x44d70
movups (%rdx), %xmm0
movups %xmm0, (%rax)
movq -0x48(%rbp), %rax
movq %rax, 0x8(%rsi)
movq -0x30(%rbp), %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x44d92
jmp 0x44d92
movq %rax, %r14
jmp 0x44df5
jmp 0x44d99
movq %rax, %r14
jmp 0x44de9
movq %rax, %r14
jmp 0x44dd1
movq %rax, %r14
jmp 0x44db9
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %rbx, %rdi
je 0x44db9
callq 0x24320
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x44dd1
callq 0x24320
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x44de9
callq 0x24320
leaq -0x88(%rbp), %rdi
callq 0x33446
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x44e07
callq 0x24320
movq %r14, %rdi
callq 0x245f0
nop