// File: /workspace/github_cpp_makefile_star2_O1/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 0x440e8
movq 0x20(%r12), %rax
movl 0x98(%rax), %esi
incl %esi
leaq -0x110(%rbp), %rdi
callq 0x440e8
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 0x2a264
leaq 0xa225(%rip), %rsi      # 0x519b2
leaq -0x48(%rbp), %rdi
callq 0x25650
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 0x250f0
leaq -0x60(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x477db
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x477e2
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 0xa37e(%rip), %rsi      # 0x51b82
callq 0x25650
leaq -0xa8(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47836
movq %rdx, -0xb8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xa8(%rbp)
jmp 0x4783c
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 0x47864
callq 0x25320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x47872
callq 0x25320
movq %r12, -0x98(%rbp)
movq 0x20(%r12), %rax
movq 0x80(%rax), %r15
movq 0x88(%rax), %rax
cmpq %rax, %r15
je 0x47bcf
leaq -0x80(%rbp), %rbx
leaq -0xd8(%rbp), %r12
leaq -0x70(%rbp), %r14
leaq 0x10(%r15), %r13
xorl %ecx, %ecx
cmpq %rax, %r13
leaq 0xa29e(%rip), %rsi      # 0x51b52
leaq 0xa298(%rip), %rax      # 0x51b53
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 0x2a2fe
movl (%r15), %eax
testl %eax, %eax
je 0x47a10
cmpl $0x1, %eax
je 0x4797c
cmpl $0x2, %eax
jne 0x47b9f
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 0x48056
movq (%rax,%rsi,8), %rsi
movq %r14, %r15
movq %r14, %rdi
movq %r8, %rdx
callq 0x43940
movq %r12, %rdi
movq %r15, %rsi
callq 0x43978
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x250f0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47b34
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x47b3a
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 0x48048
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 0x47706
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x250f0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47a9a
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x47aa0
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 0x4803a
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 0x48280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x250f0
movq %rbx, -0x90(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47ad6
movq %rdx, -0x90(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x80(%rbp)
jmp 0x47adc
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 0x250f0
jmp 0x47b09
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 0x44dfe
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x47b1a
callq 0x25320
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x47b9f
callq 0x25320
jmp 0x47b9f
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 0x250f0
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x47b7f
callq 0x25320
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x47b97
callq 0x25320
movq %r15, %rdi
callq 0x43968
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x47bb1
callq 0x25320
movq -0x98(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x88(%rax), %rax
movq %r13, %r15
cmpq %rax, %r13
jne 0x478a4
leaq -0x80(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0x2a264
leaq 0xa10d(%rip), %rsi      # 0x51d09
leaq -0x90(%rbp), %rdi
callq 0x25650
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 0x250f0
leaq -0x60(%rbp), %r15
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47c53
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x47c59
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 0x9f19(%rip), %rsi      # 0x51b94
callq 0x25650
movq %r15, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47ca0
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x47ca7
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 0x250f0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x47ce0
callq 0x25320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x47cee
callq 0x25320
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
je 0x47cff
callq 0x25320
movq -0xf0(%rbp), %r13
movq -0xe8(%rbp), %r14
cmpq %r14, %r13
je 0x47d82
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 0x2a264
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x357bd
movq %r12, %rdi
movq %r15, %rsi
callq 0x25420
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x47d67
callq 0x25320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x47d79
callq 0x25320
addq $0x20, %r13
cmpq %r14, %r13
jne 0x47d21
leaq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %r15
movq %r15, (%rdi)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
addq %rsi, %rdx
callq 0x2a264
leaq 0x9dfe(%rip), %rsi      # 0x51ba8
leaq -0x70(%rbp), %rdi
callq 0x25650
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 0x250f0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x38(%rbp), %rbx
je 0x47deb
callq 0x25320
leaq -0x90(%rbp), %rdi
movq %r13, (%rdi)
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
addq %rsi, %rdx
callq 0x2a264
leaq 0x9d99(%rip), %rsi      # 0x51bab
leaq -0x90(%rbp), %rdi
callq 0x25650
movq 0x20(%r12), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq -0x90(%rbp), %rdi
callq 0x250f0
movq %rbx, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47e5b
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x47e61
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 0x9c18(%rip), %rsi      # 0x51a9b
callq 0x25650
movq %r15, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47ea8
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x47eaf
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 0x250f0
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x47ee8
callq 0x25320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x47ef6
callq 0x25320
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x47f07
callq 0x25320
leaq -0x48(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x138(%rbp), %rdx
callq 0x357bd
leaq 0x9c8e(%rip), %rsi      # 0x51bb3
leaq -0x48(%rbp), %rdi
callq 0x25650
movq %r15, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x47f4e
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x47f55
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 0x9bdb(%rip), %rsi      # 0x51b52
callq 0x25650
leaq 0x10(%r14), %rdx
movq %rdx, (%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x47f9e
movq %rsi, (%r14)
movq (%rcx), %rdx
movq %rdx, 0x10(%r14)
jmp 0x47fa4
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 0x47fc9
callq 0x25320
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x47fd7
callq 0x25320
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x47fef
callq 0x25320
leaq -0xf0(%rbp), %rdi
callq 0x29fb8
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48010
callq 0x25320
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48025
callq 0x25320
movq %r14, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8289(%rip), %rdi      # 0x502ca
xorl %eax, %eax
callq 0x25510
leaq 0x827b(%rip), %rdi      # 0x502ca
xorl %eax, %eax
callq 0x25510
leaq 0x826d(%rip), %rdi      # 0x502ca
xorl %eax, %eax
callq 0x25510
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
jne 0x481e8
jmp 0x48204
jmp 0x48201
jmp 0x48227
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x48099
callq 0x25320
jmp 0x48099
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x480b0
callq 0x25320
jmp 0x480b0
movq %rax, %r14
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
jmp 0x4821b
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
jne 0x48220
jmp 0x4822a
jmp 0x48227
jmp 0x480df
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
jne 0x48220
jmp 0x4822a
jmp 0x48227
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x4810f
callq 0x25320
jmp 0x4810f
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x48128
callq 0x25320
jmp 0x48128
jmp 0x48125
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %r12, %rdi
jne 0x48220
jmp 0x4822a
jmp 0x48227
movq %rax, %r14
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x4815a
callq 0x25320
jmp 0x4815a
jmp 0x48157
movq %rax, %r14
movq -0x48(%rbp), %rdi
cmpq %rbx, %rdi
jne 0x4823d
jmp 0x48242
movq %rax, %r14
jmp 0x48242
movq %rax, %r14
jmp 0x48263
jmp 0x48201
jmp 0x4819f
jmp 0x481d2
jmp 0x48201
jmp 0x48201
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x481b8
callq 0x25320
jmp 0x481b8
movq %rax, %r14
movq -0x90(%rbp), %rdi
cmpq %rbx, %rdi
je 0x481d5
callq 0x25320
jmp 0x481d5
movq %rax, %r14
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x481f2
callq 0x25320
jmp 0x481f2
movq %rax, %r14
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x48204
callq 0x25320
jmp 0x48204
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x43968
jmp 0x48204
jmp 0x48201
jmp 0x48201
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x4821b
jmp 0x48227
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4822a
callq 0x25320
jmp 0x4822a
movq %rax, %r14
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x48242
callq 0x25320
leaq -0xf0(%rbp), %rdi
callq 0x29fb8
leaq -0x100(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48263
callq 0x25320
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48278
callq 0x25320
movq %r14, %rdi
callq 0x255f0