// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/compiler/javascript/javascript_struct.cpp
// Function: reviser::javascript::JavaScriptStruct::Generate[abi:cxx11]()
string JavaScriptStruct::Generate() {
    string indent = JavaScriptCommon::Indent(node->level);
    string indent_next = JavaScriptCommon::Indent(node->level + 1);

    vector<string> properties;
    string code = indent + "var " + node->id->text + " = (function() {\n";

    for (vector<Struct::ContentStore>::iterator it = begin(node->contents);
      it != end(node->contents); it++) {
      const string new_line = next(it) == end(node->contents) ? "\n" : "\n\n";

      switch ((*it).type) {
        case DeclareProperty: {
          JavaScriptStructProperty g(node->properties.at((*it).index), this);
          properties.push_back(g.Generate() + new_line);
          break;
        }

        case DeclareStruct: {
          JavaScriptStruct g(node->structs.at((*it).index), this);
          code += g.Generate() + new_line;
          break;
        }

        case DeclareEnum: {
          JavaScriptEnum g(node->enums.at((*it).index), this);
          code += g.Generate() + new_line;
          break;
        }

        default:
          break;
      }
    }

    code += indent_next + "class " + node->id->text + " extends Reviser {\n";
    for (string p: properties) {
      code = code + p;
    }
    code += indent_next + "}\n";
    code += indent_next + "return " + node->id->text + ";\n"; 

    return code + indent + "})();" + "\n\n";
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r12
movq %rdi, %r14
movq 0x20(%rsi), %rax
movl 0x98(%rax), %esi
leaq -0x138(%rbp), %rdi
callq 0x42ef0
movq 0x20(%r12), %rax
movl 0x98(%rax), %esi
incl %esi
leaq -0x110(%rbp), %rdi
callq 0x42ef0
xorps %xmm0, %xmm0
movaps %xmm0, -0xf0(%rbp)
movq $0x0, -0xe0(%rbp)
leaq -0x38(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x290da
leaq 0xa4f1(%rip), %rsi      # 0x509b2
leaq -0x48(%rbp), %rdi
callq 0x24650
movq %r14, -0x118(%rbp)
movq 0x20(%r12), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq -0x48(%rbp), %rdi
callq 0x240f0
leaq -0x60(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4650f
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x46516
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x70(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa64a(%rip), %rsi      # 0x50b82
callq 0x24650
leaq -0xa8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4656a
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x46570
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46598
callq 0x24320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x465a6
callq 0x24320
movq %r12, -0x98(%rbp)
movq 0x20(%r12), %rax
movq 0x80(%rax), %r15
movq 0x88(%rax), %rax
cmpq %rax, %r15
je 0x46903
leaq -0x80(%rbp), %rbx
leaq -0xd8(%rbp), %r12
leaq -0x70(%rbp), %r14
leaq 0x10(%r15), %r13
xorl %ecx, %ecx
cmpq %rax, %r13
leaq 0xa56a(%rip), %rsi      # 0x50b52
leaq 0xa564(%rip), %rax      # 0x50b53
cmoveq %rax, %rsi
sete %cl
leaq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
negq %rcx
leaq (%rsi,%rcx), %rdx
addq $0x2, %rdx
leaq -0x48(%rbp), %rdi
callq 0x29178
movl (%r15), %eax
testl %eax, %eax
je 0x46744
cmpl $0x1, %eax
je 0x466b0
cmpl $0x2, %eax
jne 0x468d3
movq -0x98(%rbp), %r8
movq 0x20(%r8), %rcx
movq 0x8(%r15), %rsi
movq 0x68(%rcx), %rax
movq 0x70(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x46d8a
movq (%rax,%rsi,8), %rsi
movq %r14, %r15
movq %r14, %rdi
movq %r8, %rdx
callq 0x42740
movq %r12, %rdi
movq %r15, %rsi
callq 0x42778
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x240f0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x46868
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x4686e
movq -0x98(%rbp), %rdi
movq 0x20(%rdi), %rax
movq 0x8(%r15), %rsi
movq 0x50(%rax), %rcx
movq 0x58(%rax), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x46d7c
movq (%rcx,%rsi,8), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movb $0x0, -0x60(%rbp)
movq %rdi, -0x58(%rbp)
movq %rcx, -0x50(%rbp)
movl 0x98(%rax), %eax
incl %eax
movl %eax, 0x98(%rcx)
movq %r12, %rdi
movq %r14, %rsi
callq 0x4643a
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x240f0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x467ce
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x467d4
movq -0x98(%rbp), %rdi
movq 0x20(%rdi), %rax
movq 0x8(%r15), %rsi
movq 0x38(%rax), %rcx
movq 0x40(%rax), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rsi, %rdx
jbe 0x46d6e
movq (%rcx,%rsi,8), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movb $0x0, -0x60(%rbp)
movq %rdi, -0x58(%rbp)
movq %rcx, -0x50(%rbp)
movl 0x98(%rax), %eax
incl %eax
movl %eax, 0x8(%rcx)
movq %r12, %rdi
movq %r14, %rsi
callq 0x46fb4
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x240f0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4680a
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x46810
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
callq 0x240f0
jmp 0x4683d
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xf0(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x43c06
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4684e
callq 0x24320
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x468d3
callq 0x24320
jmp 0x468d3
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, -0x88(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
callq 0x240f0
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x468b3
callq 0x24320
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x468cb
callq 0x24320
movq %r15, %rdi
callq 0x42768
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x468e5
callq 0x24320
movq -0x98(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x88(%rax), %rax
movq %r13, %r15
cmpq %rax, %r13
jne 0x465d8
leaq -0x80(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x290da
leaq 0xa3d9(%rip), %rsi      # 0x50d09
leaq -0x90(%rbp), %rdi
callq 0x24650
leaq -0x38(%rbp), %rbx
movq -0x98(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq -0x90(%rbp), %rdi
callq 0x240f0
leaq -0x60(%rbp), %r15
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x46987
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4698d
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)
leaq 0xa1e5(%rip), %rsi      # 0x50b94
callq 0x24650
movq %r15, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x469d4
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x469db
movups (%rcx), %xmm0
movups %xmm0, (%r15)
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
leaq -0xb8(%rbp), %rdi
callq 0x240f0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46a14
callq 0x24320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x46a22
callq 0x24320
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x46a33
callq 0x24320
movq -0xf0(%rbp), %r13
movq -0xe8(%rbp), %r14
cmpq %r14, %r13
je 0x46ab6
leaq -0x70(%rbp), %rbx
leaq -0x48(%rbp), %r15
leaq -0xb8(%rbp), %r12
leaq -0x60(%rbp), %rax
movq %rax, -0x70(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x290da
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x34543
movq %r12, %rdi
movq %r15, %rsi
callq 0x24420
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x46a9b
callq 0x24320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x46aad
callq 0x24320
addq $0x20, %r13
cmpq %r14, %r13
jne 0x46a55
leaq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %r15
movq %r15, (%rdi)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
addq %rsi, %rdx
callq 0x290da
leaq 0xa0ca(%rip), %rsi      # 0x50ba8
leaq -0x70(%rbp), %rdi
callq 0x24650
movq -0x118(%rbp), %r14
movq -0x98(%rbp), %r12
leaq -0x80(%rbp), %r13
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
leaq -0xb8(%rbp), %rdi
callq 0x240f0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x38(%rbp), %rbx
je 0x46b1f
callq 0x24320
leaq -0x90(%rbp), %rdi
movq %r13, (%rdi)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
addq %rsi, %rdx
callq 0x290da
leaq 0xa065(%rip), %rsi      # 0x50bab
leaq -0x90(%rbp), %rdi
callq 0x24650
movq 0x20(%r12), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq -0x90(%rbp), %rdi
callq 0x240f0
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x46b8f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x46b95
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)
leaq 0x9ee4(%rip), %rsi      # 0x50a9b
callq 0x24650
movq %r15, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x46bdc
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x46be3
movups (%rcx), %xmm0
movups %xmm0, (%r15)
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
leaq -0xb8(%rbp), %rdi
callq 0x240f0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46c1c
callq 0x24320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x46c2a
callq 0x24320
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x46c3b
callq 0x24320
leaq -0x48(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x138(%rbp), %rdx
callq 0x34543
leaq 0x9f5a(%rip), %rsi      # 0x50bb3
leaq -0x48(%rbp), %rdi
callq 0x24650
movq %r15, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x46c82
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x46c89
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq -0x70(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x9ea7(%rip), %rsi      # 0x50b52
callq 0x24650
leaq 0x10(%r14), %rdx
movq %rdx, (%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x46cd2
movq %rsi, (%r14)
movq (%rcx), %rdx
movq %rdx, 0x10(%r14)
jmp 0x46cd8
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 -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46cfd
callq 0x24320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x46d0b
callq 0x24320
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x46d23
callq 0x24320
leaq -0xf0(%rbp), %rdi
callq 0x28e24
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46d44
callq 0x24320
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46d59
callq 0x24320
movq %r14, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8555(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
leaq 0x8547(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
leaq 0x8539(%rip), %rdi      # 0x4f2ca
xorl %eax, %eax
callq 0x24510
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
jne 0x46f1c
jmp 0x46f38
jmp 0x46f35
jmp 0x46f5b
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46dcd
callq 0x24320
jmp 0x46dcd
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x46de4
callq 0x24320
jmp 0x46de4
movq %rax, %r14
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
jmp 0x46f4f
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
jne 0x46f54
jmp 0x46f5e
jmp 0x46f5b
jmp 0x46e13
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
jne 0x46f54
jmp 0x46f5e
jmp 0x46f5b
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46e43
callq 0x24320
jmp 0x46e43
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x46e5c
callq 0x24320
jmp 0x46e5c
jmp 0x46e59
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
jne 0x46f54
jmp 0x46f5e
jmp 0x46f5b
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x46e8e
callq 0x24320
jmp 0x46e8e
jmp 0x46e8b
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
jne 0x46f71
jmp 0x46f76
movq %rax, %r14
jmp 0x46f76
movq %rax, %r14
jmp 0x46f97
jmp 0x46f35
jmp 0x46ed3
jmp 0x46f06
jmp 0x46f35
jmp 0x46f35
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x46eec
callq 0x24320
jmp 0x46eec
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x46f09
callq 0x24320
jmp 0x46f09
movq %rax, %r14
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x46f26
callq 0x24320
jmp 0x46f26
movq %rax, %r14
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x46f38
callq 0x24320
jmp 0x46f38
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x42768
jmp 0x46f38
jmp 0x46f35
jmp 0x46f35
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x46f4f
jmp 0x46f5b
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x46f5e
callq 0x24320
jmp 0x46f5e
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x46f76
callq 0x24320
leaq -0xf0(%rbp), %rdi
callq 0x28e24
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46f97
callq 0x24320
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46fac
callq 0x24320
movq %r14, %rdi
callq 0x245f0