// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/compiler/javascript/javascript_enum.cpp
// Function: reviser::javascript::JavaScriptEnum::Generate[abi:cxx11]()
string JavaScriptEnum::Generate() {
    string code;

    code = JavaScriptCommon::Indent(node->level)
      + "var " + node->id->text + " = {\n";

    size_t counter = 0;
    size_t total = node->properties.size();

    for (EnumProperty* p: node->properties) {
      JavaScriptEnumProperty property(p, this);
      counter++;
      code  = code + property.Generate(counter) + (counter >= total ? "\n" : ",\n");
    }

    return code + JavaScriptCommon::Indent(node->level) + "};";
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq -0xd0(%rbp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq %rsi, -0x50(%rbp)
movq 0x20(%rsi), %rax
movl 0x8(%rax), %esi
leaq -0xc0(%rbp), %rdi
callq 0x42ef0
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x290da
leaq 0xe1c9(%rip), %rsi      # 0x509b2
leaq -0x70(%rbp), %rdi
callq 0x24650
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x30(%rax), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq -0x70(%rbp), %rdi
callq 0x240f0
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x42833
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x42839
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0x48(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe15c(%rip), %rsi      # 0x509b7
callq 0x24650
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4288d
movq %rdx, -0xa0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x90(%rbp)
jmp 0x42894
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq -0xa0(%rbp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xe0(%rbp), %rdi
movq %r15, %rsi
callq 0x24420
movq (%r15), %rdi
cmpq %r14, %rdi
je 0x428ce
callq 0x24320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x428e0
callq 0x24320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x428f2
callq 0x24320
movq %rbx, -0xe8(%rbp)
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4290e
callq 0x24320
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x38(%rax), %r13
movq 0x40(%rax), %rbx
movq %rbx, -0xf8(%rbp)
subq %r13, %rbx
je 0x42abe
sarq $0x3, %rbx
movq %rbx, -0xf0(%rbp)
movl $0x1, %r15d
xorl %r12d, %r12d
leaq -0xc0(%rbp), %rbx
movq -0x8(%r13,%r15,8), %rax
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movb $0x0, -0x90(%rbp)
movq -0x50(%rbp), %rcx
movq %rcx, -0x88(%rbp)
movq %rax, -0x80(%rbp)
movq 0x20(%rcx), %rcx
movl 0x8(%rcx), %ecx
incl %ecx
movl %ecx, 0x8(%rax)
movq %rbx, %rdi
leaq -0xa0(%rbp), %rsi
movl %r15d, %edx
callq 0x42c48
movq -0xe0(%rbp), %rcx
movq -0xd8(%rbp), %r8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x243a0
leaq -0x60(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x429ca
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x429d0
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x68(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
cmpq -0xf0(%rbp), %r15
leaq 0xe15e(%rip), %rsi      # 0x50b53
leaq 0xdfc1(%rip), %rax      # 0x509bd
cmovbq %rax, %rsi
leaq -0x70(%rbp), %rdi
callq 0x24650
leaq -0x38(%rbp), %r14
movq %r14, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x42a2d
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x42a34
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0xe0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x24420
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x42a69
callq 0x24320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x42a7b
callq 0x24320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x42a93
callq 0x24320
incq %r15
leaq (%r12,%r13), %rax
addq $0x8, %rax
addq $0x8, %r12
cmpq -0xf8(%rbp), %rax
jne 0x42949
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
leaq -0xd0(%rbp), %r12
movl 0x8(%rax), %esi
leaq -0x48(%rbp), %rdi
callq 0x42ef0
leaq -0xa0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x34543
movq -0xe8(%rbp), %rbx
leaq -0x90(%rbp), %r15
leaq 0xdeca(%rip), %rsi      # 0x509c0
leaq -0xa0(%rbp), %rdi
callq 0x24650
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x42b24
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x42b2a
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x42b52
callq 0x24320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x42b64
callq 0x24320
movq -0xe0(%rbp), %rdi
cmpq %r12, %rdi
je 0x42b75
callq 0x24320
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x42ba3
callq 0x24320
jmp 0x42ba3
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x42c1e
jmp 0x42bf1
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x42bcb
callq 0x24320
jmp 0x42bcb
jmp 0x42bc8
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x42be2
callq 0x24320
jmp 0x42be2
movq %rax, %r14
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x42c1e
jmp 0x42bf1
movq %rax, %r14
jmp 0x42c28
movq %rax, %r14
jmp 0x42c10
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x42c10
callq 0x24320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x42c28
callq 0x24320
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x42c40
callq 0x24320
movq %r14, %rdi
callq 0x245f0