// File: /workspace/github_cpp_makefile_star2_O1/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 $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 0x4a586
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 0x7d74(%rip), %rsi      # 0x51d15
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 0x49feb
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x49ff1
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 0x7b7d(%rip), %rsi      # 0x51b90
callq 0x25650
leaq -0x90(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4a045
movq %rdx, -0xa0(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x90(%rbp)
jmp 0x4a04c
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 0x4a086
callq 0x25320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4a098
callq 0x25320
movq %rbx, -0xe8(%rbp)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4a0b1
callq 0x25320
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a0c6
callq 0x25320
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x38(%rax), %r12
movq 0x40(%rax), %r13
movq %r13, -0xf0(%rbp)
subq %r12, %r13
movq %r13, -0x78(%rbp)
je 0x4a25e
sarq $0x3, -0x78(%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 0x4a3f8
movq -0xe0(%rbp), %rcx
movq -0xd8(%rbp), %r8
movq %r13, %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 0x4a17c
movq %rdx, -0x70(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x60(%rbp)
jmp 0x4a182
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 0x79af(%rip), %rsi      # 0x51b53
leaq 0x7812(%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 0x4a1dc
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4a1e3
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 0x4a218
callq 0x25320
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4a22a
callq 0x25320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x4a242
callq 0x25320
incq %r15
leaq (%r12,%rbx), %rax
addq $0x8, %rax
addq $0x8, %rbx
cmpq -0xf0(%rbp), %rax
jne 0x4a0fe
movq -0x50(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax), %esi
leaq -0x48(%rbp), %rdi
callq 0x4a586
leaq -0xa0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x357bd
movq -0xe8(%rbp), %rbx
leaq -0x90(%rbp), %r15
leaq 0x5fee(%rip), %rsi      # 0x5028c
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 0x4a2cc
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x4a2d2
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 0x4a2fa
callq 0x25320
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4a30c
callq 0x25320
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4a324
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 0x4a352
callq 0x25320
jmp 0x4a352
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
jmp 0x4a3cd
jmp 0x4a3a0
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4a37a
callq 0x25320
jmp 0x4a37a
jmp 0x4a377
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4a391
callq 0x25320
jmp 0x4a391
movq %rax, %r14
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
jmp 0x4a3cd
jmp 0x4a3a0
movq %rax, %r14
jmp 0x4a3d7
movq %rax, %r14
jmp 0x4a3bf
movq %rax, %r14
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x4a3bf
callq 0x25320
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x4a3d7
callq 0x25320
movq -0xe0(%rbp), %rdi
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x4a3ef
callq 0x25320
movq %r14, %rdi
callq 0x255f0
nop