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

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

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

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

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %r12
leaq -0xd0(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
movq %rsi, -0x50(%rbp)
movq 0x20(%rsi), %rax
movl 0x8(%rax), %esi
leaq -0xc0(%rbp), %rdi
callq 0x492b4
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 0x804c(%rip), %rsi      # 0x50d15
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 0x48d13
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x48d19
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 0x7e55(%rip), %rsi      # 0x50b90
callq 0x24650
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x48d6d
movq %rdx, -0xa0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x90(%rbp)
jmp 0x48d74
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 0x48dae
callq 0x24320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x48dc0
callq 0x24320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x48dd2
callq 0x24320
movq %r12, -0xe8(%rbp)
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48dee
callq 0x24320
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x38(%rax), %r12
movq 0x40(%rax), %r13
movq %r13, -0xf8(%rbp)
subq %r12, %r13
je 0x48f9a
sarq $0x3, %r13
movq %r13, -0xf0(%rbp)
movl $0x1, %r15d
xorl %ebx, %ebx
leaq -0xc0(%rbp), %r13
movq -0x8(%r12,%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 %r13, %rdi
leaq -0xa0(%rbp), %rsi
callq 0x49124
movq -0xe0(%rbp), %rcx
movq -0xd8(%rbp), %r8
movq %r13, %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 0x48ea6
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x48eac
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 0x7c82(%rip), %rsi      # 0x50b53
leaq 0x7ae5(%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 0x48f09
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x48f10
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 0x48f45
callq 0x24320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x48f57
callq 0x24320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x48f6f
callq 0x24320
incq %r15
leaq (%r12,%rbx), %rax
addq $0x8, %rax
addq $0x8, %rbx
cmpq -0xf8(%rbp), %rax
jne 0x48e28
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
leaq -0xd0(%rbp), %rbx
movl 0x8(%rax), %esi
leaq -0x48(%rbp), %rdi
callq 0x492b4
leaq -0xa0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x34543
movq -0xe8(%rbp), %r14
leaq -0x90(%rbp), %r15
leaq 0x62ba(%rip), %rsi      # 0x4f28c
leaq -0xa0(%rbp), %rdi
callq 0x24650
leaq 0x10(%r14), %rdx
movq %rdx, (%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x49000
movq %rsi, (%r14)
movq (%rcx), %rdx
movq %rdx, 0x10(%r14)
jmp 0x49006
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 -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0x4902e
callq 0x24320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x49040
callq 0x24320
movq -0xe0(%rbp), %rdi
cmpq %rbx, %rdi
je 0x49051
callq 0x24320
movq %r14, %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 0x4907f
callq 0x24320
jmp 0x4907f
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x490fa
jmp 0x490cd
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x490a7
callq 0x24320
jmp 0x490a7
jmp 0x490a4
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x490be
callq 0x24320
jmp 0x490be
movq %rax, %r14
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x490fa
jmp 0x490cd
movq %rax, %r14
jmp 0x49104
movq %rax, %r14
jmp 0x490ec
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x490ec
callq 0x24320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x49104
callq 0x24320
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4911c
callq 0x24320
movq %r14, %rdi
callq 0x245f0