// File: /workspace/github_cpp_makefile_star2_O1/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 0x4b0ff
leaq 0x16cd3(%rip), %rdi     # 0x61dc8
callq 0x4b558
movq %rax, %rsi
jmp 0x4b113
addl $-0x9, %eax
cmpl $0x1, %eax
ja 0x4b3f6
movq 0x10(%rsi), %rsi
addq $0x8, %rsi
leaq -0x68(%rbp), %rdi
callq 0x25210
movq 0x8(%r14), %rax
cmpb $0x1, 0x4(%rax)
leaq -0x38(%rbp), %r12
jne 0x4b16e
leaq -0x48(%rbp), %rdi
movq %r12, (%rdi)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
addq %rsi, %rdx
callq 0x2a264
leaq 0x68d9(%rip), %rsi      # 0x51a21
leaq -0x48(%rbp), %rdi
callq 0x25650
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %r15
movq %r15, %rsi
callq 0x25420
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x4b16e
callq 0x25320
movq 0x8(%r14), %rax
movq 0x8(%rax), %rdx
addq $0x8, %rdx
leaq 0x6a9c(%rip), %rsi      # 0x51c1d
leaq -0x108(%rbp), %rdi
callq 0x2c6b4
leaq 0x5109(%rip), %rsi      # 0x5029d
leaq -0x108(%rbp), %rdi
callq 0x25650
leaq -0x98(%rbp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4b1d0
movq %rsi, %r15
movq %rdx, -0xa8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x98(%rbp)
jmp 0x4b1d9
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 0x250f0
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4b231
movq %rdx, -0xc8(%rbp)
movq (%rcx), %rdx
movq %rdx, -0xb8(%rbp)
jmp 0x4b239
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 0x67cb(%rip), %rsi      # 0x51a29
callq 0x25650
movq %r12, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4b283
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4b28b
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 0x4a668
movq -0x48(%rbp), %rcx
movq -0x40(%rbp), %r8
movq -0x80(%rbp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x4b2e0
movq -0x38(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x4b2fd
leaq -0x78(%rbp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x4b2f8
movq -0x78(%rbp), %rsi
cmpq %rsi, %rax
jbe 0x4b30f
movq -0x88(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x250f0
jmp 0x4b31f
leaq -0x88(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x253a0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x4b33e
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x4b344
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 0x4b372
callq 0x25320
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x4b380
callq 0x25320
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
leaq -0xd8(%rbp), %r14
je 0x4b398
callq 0x25320
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x58(%rbp), %r15
je 0x4b3ad
callq 0x25320
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4b3c2
callq 0x25320
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0x4b3d3
callq 0x25320
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x4b3e1
callq 0x25320
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x681c(%rip), %rcx      # 0x51c19
leaq -0x68(%rbp), %rdi
movl $0x3, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x25530
jmp 0x4b11c
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
jne 0x4b48e
jmp 0x4b49a
jmp 0x4b497
movq %rax, %rbx
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4b43f
callq 0x25320
jmp 0x4b43f
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x4b452
callq 0x25320
jmp 0x4b452
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x4b468
callq 0x25320
jmp 0x4b468
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x4b47e
callq 0x25320
jmp 0x4b47e
movq %rax, %rbx
leaq -0xf8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4b49a
callq 0x25320
jmp 0x4b49a
jmp 0x4b497
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
leaq -0xd8(%rbp), %rax
cmpq %rax, %rdi
je 0x4b4b2
callq 0x25320
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x4b4c4
callq 0x25320
movq %rbx, %rdi
callq 0x255f0