// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/compiler/typescript/typescript_expr.cpp
// Function: reviser::typescript::TypeScriptDeclare::Generate[abi:cxx11]()
string TypeScriptDeclare::Generate() {
    string type;
    string value;

    switch (node->type) {
      case TYPE_ENUM:
      case TYPE_STRUCT:
        type = node->type_id->text;
        break;

      case TYPE_BOOL:
      case TYPE_FLOAT:
      case TYPE_DOUBLE:
      case TYPE_INT32:
      case TYPE_INT64:
      case TYPE_UINT32:
      case TYPE_UINT64:
      case TYPE_STRING:
        type = TypeScriptBuildInDataTypeMap[node->type];
        break;

      default:
        type = "any";
    }

    if (node->array_type) {
      type = type + "[]";
    }

    return "public "
      + node->id->text
      + ": " + type + " = "
      + TypeScriptRightValue(node->rv).Generate();
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x58(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0xd8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movq 0x8(%rsi), %rsi
movl (%rsi), %eax
cmpl $0x8, %eax
jae 0x49e2f
leaq 0x16fa3(%rip), %rdi     # 0x60dc8
callq 0x4a288
movq %rax, %rsi
jmp 0x49e43
addl $-0x9, %eax
cmpl $0x1, %eax
ja 0x4a125
movq 0x10(%rsi), %rsi
addq $0x8, %rsi
leaq -0x68(%rbp), %rdi
callq 0x24210
movq 0x8(%r14), %rax
cmpb $0x1, 0x4(%rax)
leaq -0x38(%rbp), %r12
jne 0x49ea2
leaq -0x48(%rbp), %rdi
movq %r12, (%rdi)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
callq 0x290da
leaq 0x6ba9(%rip), %rsi      # 0x50a21
leaq -0x48(%rbp), %rdi
callq 0x24650
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %r15
movq %r15, %rsi
callq 0x24420
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x49e9e
callq 0x24320
movq 0x8(%r14), %rax
movq 0x8(%rax), %rdx
addq $0x8, %rdx
leaq 0x6d6c(%rip), %rsi      # 0x50c1d
leaq -0x108(%rbp), %rdi
callq 0x2b4b3
leaq 0x53d9(%rip), %rsi      # 0x4f29d
leaq -0x108(%rbp), %rdi
callq 0x24650
leaq -0x98(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x49f00
movq %rsi, %r15
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x49f09
movups (%rcx), %xmm0
movq %rsi, %r15
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq -0xa8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0x240f0
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x49f61
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x49f69
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq -0xc8(%rbp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6a9b(%rip), %rsi      # 0x50a29
callq 0x24650
movq %r12, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x49fb3
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x49fbb
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r14), %rax
movq 0x18(%rax), %rax
leaq -0x118(%rbp), %rsi
movq %rcx, (%rsi)
movq %rax, 0x8(%rsi)
leaq -0x88(%rbp), %rdi
callq 0x49398
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r12, %rcx
je 0x4a010
movq -0x38(%rbp), %rdi
movq -0x88(%rbp), %rsi
cmpq %rdi, %rax
jbe 0x4a033
leaq -0x78(%rbp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x4a02e
movq -0x78(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x4a03e
leaq -0x48(%rbp), %rdi
callq 0x240f0
jmp 0x4a04e
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x243a0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4a06d
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x4a073
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a0a1
callq 0x24320
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x4a0af
callq 0x24320
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
leaq -0xd8(%rbp), %r14
je 0x4a0c7
callq 0x24320
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x58(%rbp), %r15
je 0x4a0dc
callq 0x24320
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a0f1
callq 0x24320
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x4a102
callq 0x24320
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x4a110
callq 0x24320
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6aed(%rip), %rcx      # 0x50c19
leaq -0x68(%rbp), %rdi
movl $0x3, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x24530
jmp 0x49e4c
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0x4a1bd
jmp 0x4a1c9
jmp 0x4a1c6
movq %rax, %rbx
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a16e
callq 0x24320
jmp 0x4a16e
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x4a181
callq 0x24320
jmp 0x4a181
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x4a197
callq 0x24320
jmp 0x4a197
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x4a1ad
callq 0x24320
jmp 0x4a1ad
movq %rax, %rbx
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a1c9
callq 0x24320
jmp 0x4a1c9
jmp 0x4a1c6
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x4a1e1
callq 0x24320
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x4a1f3
callq 0x24320
movq %rbx, %rdi
callq 0x245f0
nop