// File: /workspace/github_cpp_makefile_star2_O1/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 $0xc8, %rsp
movq %rdi, %rbx
leaq -0xd0(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq %rsi, -0x50(%rbp)
movq 0x20(%rsi), %rax
movl 0x8(%rax), %esi
leaq -0xc0(%rbp), %rdi
callq 0x440e8
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x2a264
leaq 0xdfcd(%rip), %rsi      # 0x519b2
leaq -0x70(%rbp), %rdi
callq 0x25650
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 0x250f0
leaq -0x38(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x43a2f
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x43a35
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 0xdf60(%rip), %rsi      # 0x519b7
callq 0x25650
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x43a89
movq %rdx, -0xa0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x90(%rbp)
jmp 0x43a90
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 0x25420
movq (%r15), %rdi
cmpq %r14, %rdi
je 0x43aca
callq 0x25320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x43adc
callq 0x25320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x43aee
callq 0x25320
movq %rbx, -0xe8(%rbp)
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43b0a
callq 0x25320
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x38(%rax), %r13
movq 0x40(%rax), %rbx
movq %rbx, -0xf0(%rbp)
subq %r13, %rbx
movq %rbx, -0x78(%rbp)
je 0x43ca6
sarq $0x3, -0x78(%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 0x43e40
movq -0xe0(%rbp), %rcx
movq -0xd8(%rbp), %r8
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x253a0
leaq -0x60(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x43bc4
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x43bca
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 -0x78(%rbp), %r15
leaq 0xdf67(%rip), %rsi      # 0x51b53
leaq 0xddca(%rip), %rax      # 0x519bd
cmovbq %rax, %rsi
leaq -0x70(%rbp), %rdi
callq 0x25650
leaq -0x38(%rbp), %r14
movq %r14, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x43c24
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x43c2b
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 0x25420
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x43c60
callq 0x25320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x43c72
callq 0x25320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x43c8a
callq 0x25320
incq %r15
leaq (%r12,%r13), %rax
addq $0x8, %rax
addq $0x8, %r12
cmpq -0xf0(%rbp), %rax
jne 0x43b43
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax), %esi
leaq -0x48(%rbp), %rdi
callq 0x440e8
leaq -0xa0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x357bd
movq -0xe8(%rbp), %rbx
leaq -0x90(%rbp), %r15
leaq 0xdcda(%rip), %rsi      # 0x519c0
leaq -0xa0(%rbp), %rdi
callq 0x25650
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x43d14
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x43d1a
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 0x43d42
callq 0x25320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x43d54
callq 0x25320
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x43d6c
callq 0x25320
movq %rbx, %rax
addq $0xc8, %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 0x43d9a
callq 0x25320
jmp 0x43d9a
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x43e15
jmp 0x43de8
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x43dc2
callq 0x25320
jmp 0x43dc2
jmp 0x43dbf
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x43dd9
callq 0x25320
jmp 0x43dd9
movq %rax, %r14
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x43e15
jmp 0x43de8
movq %rax, %r14
jmp 0x43e1f
movq %rax, %r14
jmp 0x43e07
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x43e07
callq 0x25320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x43e1f
callq 0x25320
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x43e37
callq 0x25320
movq %r14, %rdi
callq 0x255f0
nop