// File: 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
subq $0x1d0, %rsp            # imm = 0x1D0
movq %rdi, -0x1d0(%rbp)
movq %rdi, %rax
movq %rax, -0x1c8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1c0(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x99650
movq -0x1c0(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax), %esi
leaq -0xb0(%rbp), %rdi
callq 0xf8390
jmp 0xf7d84
leaq 0x8fe6(%rip), %rdx      # 0x100d71
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xaaee0
jmp 0xf7da0
movq -0x1c0(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x30(%rax), %rdx
addq $0x8, %rdx
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xa1070
jmp 0xf7dc5
leaq 0x8e1f(%rip), %rdx      # 0x100beb
leaq -0x50(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa10c0
jmp 0xf7ddb
leaq -0x30(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x99590
leaq -0x50(%rbp), %rdi
callq 0x992c0
leaq -0x70(%rbp), %rdi
callq 0x992c0
leaq -0x90(%rbp), %rdi
callq 0x992c0
leaq -0xb0(%rbp), %rdi
callq 0x992c0
movq -0x1c0(%rbp), %rax
movq $0x0, -0xc8(%rbp)
movq 0x20(%rax), %rdi
addq $0x38, %rdi
callq 0xad910
movq %rax, %rcx
movq -0x1c0(%rbp), %rax
movq %rcx, -0xd0(%rbp)
movq 0x20(%rax), %rax
addq $0x38, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rdi
callq 0xad7c0
movq %rax, -0xe0(%rbp)
movq -0xd8(%rbp), %rdi
callq 0xad650
movq %rax, -0xe8(%rbp)
leaq -0xe0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0xbd930
testb $0x1, %al
jne 0xf7e93
jmp 0xf806d
leaq -0xe0(%rbp), %rdi
callq 0xbd970
movq -0x1c0(%rbp), %rdx
movq (%rax), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rsi
leaq -0x118(%rbp), %rdi
callq 0xf82f0
jmp 0xf7ec5
movq -0xc8(%rbp), %rax
incq %rax
movq %rax, -0xc8(%rbp)
movl -0xc8(%rbp), %edx
leaq -0x178(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0xf8150
jmp 0xf7ef1
leaq -0x158(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x178(%rbp), %rdx
callq 0xeba70
jmp 0xf7f0a
movq -0xc8(%rbp), %rax
movq -0xd0(%rbp), %rcx
subq %rcx, %rax
leaq 0x8c8c(%rip), %rax      # 0x100bae
leaq 0x8af4(%rip), %rdx      # 0x100a1d
cmovaeq %rax, %rdx
leaq -0x138(%rbp), %rdi
leaq -0x158(%rbp), %rsi
callq 0xa10c0
jmp 0xf7f42
leaq -0x30(%rbp), %rdi
leaq -0x138(%rbp), %rsi
callq 0x99590
leaq -0x138(%rbp), %rdi
callq 0x992c0
leaq -0x158(%rbp), %rdi
callq 0x992c0
leaq -0x178(%rbp), %rdi
callq 0x992c0
leaq -0x118(%rbp), %rdi
callq 0xf8340
leaq -0xe0(%rbp), %rdi
callq 0xbd990
jmp 0xf7e77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0xf812d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0xf7ff9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0xf7fed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x992c0
leaq -0x90(%rbp), %rdi
callq 0x992c0
leaq -0xb0(%rbp), %rdi
callq 0x992c0
jmp 0xf812d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0xf805c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0xf8050
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x992c0
leaq -0x178(%rbp), %rdi
callq 0x992c0
leaq -0x118(%rbp), %rdi
callq 0xf8340
jmp 0xf812d
movq -0x1c0(%rbp), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax), %esi
leaq -0x1b8(%rbp), %rdi
callq 0xf8390
jmp 0xf8089
leaq -0x198(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0xc25f0
jmp 0xf80a2
movq -0x1d0(%rbp), %rdi
leaq 0x71dc(%rip), %rdx      # 0xff28c
leaq -0x198(%rbp), %rsi
callq 0xa10c0
jmp 0xf80be
leaq -0x198(%rbp), %rdi
callq 0x992c0
leaq -0x1b8(%rbp), %rdi
callq 0x992c0
leaq -0x30(%rbp), %rdi
callq 0x992c0
movq -0x1c8(%rbp), %rax
addq $0x1d0, %rsp            # imm = 0x1D0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
jmp 0xf8121
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xb8(%rbp)
movl %eax, -0xbc(%rbp)
leaq -0x198(%rbp), %rdi
callq 0x992c0
leaq -0x1b8(%rbp), %rdi
callq 0x992c0
leaq -0x30(%rbp), %rdi
callq 0x992c0
movq -0xb8(%rbp), %rdi
callq 0x99840
nopw %cs:(%rax,%rax)