// File: /workspace/github_cpp_makefile_star2_O1/CoinXu[P]reviser-compiler/src/compiler/typescript/typescript_expr.cpp
// Function: reviser::typescript::TypeScriptRightValue::Generate[abi:cxx11]()
string TypeScriptRightValue::Generate() {
    if (node->array_type) {
      switch (node->type) {
        case TYPE_ENUM: {
          vector<string> values;
          for (EnumValue* v : node->evs) {
            values.push_back(TypeScriptEnumValue(v).Generate());
          }
          return "[" + TypeScriptCommon::JoinVector(values, ", ") + "]";
        }

        case TYPE_STRUCT:
          return TypeScriptStructValue(node->sv).Generate();

        case TYPE_BOOL:
        case TYPE_FLOAT:
        case TYPE_DOUBLE:
        case TYPE_INT32:
        case TYPE_INT64:
        case TYPE_UINT32:
        case TYPE_UINT64: {
          vector<string> values;
          for (Token* t : node->dvs) {
            values.push_back(t->text);
          }
          return "[" + TypeScriptCommon::JoinVector(values, ", ") + "]";
        }

        case TYPE_STRING: {
          vector<string> values;
          for (Token* t : node->dvs) {
            values.push_back("\"" + t->text + "\"");
          }
          return "[" + TypeScriptCommon::JoinVector(values, ", ") + "]";
        }

        default:
          return "";
      }
    }

    switch (node->type) {
      case TYPE_ENUM:
        return TypeScriptEnumValue(node->ev).Generate();

      case TYPE_STRUCT:
        return TypeScriptStructValue(node->sv).Generate();

      case TYPE_BOOL:
      case TYPE_FLOAT:
      case TYPE_DOUBLE:
      case TYPE_INT32:
      case TYPE_INT64:
      case TYPE_UINT32:
      case TYPE_UINT64:
        return node->id->text;

      case TYPE_STRING:
        return "\"" + node->id->text + "\"";

      default:
        return "";
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r12
movq 0x8(%rsi), %rax
movl (%rax), %edx
cmpb $0x1, 0x10(%rax)
movl %edx, %ecx
jne 0x4a778
cmpl $0xa, %edx
ja 0x4a84d
leaq 0x754b(%rip), %rdx      # 0x51bec
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq 0x18(%rax), %rbx
movq 0x20(%rax), %r15
cmpq %r15, %rbx
je 0x4a6e2
leaq -0x60(%rbp), %r14
movq (%rbx), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0x2a126
addq $0x8, %rbx
cmpq %r15, %rbx
jne 0x4a6ca
leaq -0xb8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34434
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x7318(%rip), %rsi      # 0x51a1c
leaq 0x7313(%rip), %rdx      # 0x51a1e
leaq -0x110(%rbp), %rdi
callq 0x2a2fe
leaq -0x80(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x4b4cc
leaq 0x5e26(%rip), %rsi      # 0x5055b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2c6b4
leaq 0x72d9(%rip), %rsi      # 0x51a22
leaq -0x48(%rbp), %rdi
callq 0x25650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x4a7b3
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4a7b9
cmpl $0xa, %edx
ja 0x4a84d
leaq 0x7438(%rip), %rdx      # 0x51bc0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x8(%rax), %rax
leaq 0x10(%r12), %rcx
movq %rcx, (%r12)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2a264
jmp 0x4a81b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a7e3
callq 0x25320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a7f5
callq 0x25320
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x4a806
callq 0x25320
leaq -0xb8(%rbp), %rdi
callq 0x29fb8
leaq -0x60(%rbp), %rdi
callq 0x29fb8
movq %r12, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x48(%rax), %rax
leaq -0x48(%rbp), %rsi
movq $0x0, (%rsi)
movq %rax, 0x8(%rsi)
movq %r12, %rdi
callq 0x4aea2
jmp 0x4a81b
leaq 0x10(%r12), %rax
movq %rax, (%r12)
leaq 0x72f7(%rip), %rdx      # 0x51b54
movq %r12, %rdi
movq %rdx, %rsi
callq 0x2a2fe
jmp 0x4a81b
movq %r12, -0x88(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq 0x18(%rax), %r12
movq 0x20(%rax), %rbx
cmpq %rbx, %r12
je 0x4a937
leaq -0x38(%rbp), %r13
leaq 0x7183(%rip), %r14      # 0x51a1f
leaq -0x80(%rbp), %r15
movq (%r12), %rdx
addq $0x8, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2c6b4
movq %r15, %rdi
movq %r14, %rsi
callq 0x25650
movq %r13, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4a8de
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4a8e6
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x44dfe
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x4a918
callq 0x25320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4a92a
callq 0x25320
addq $0x8, %r12
cmpq %rbx, %r12
jne 0x4a8a0
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34434
leaq -0xe0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x70c3(%rip), %rsi      # 0x51a1c
leaq 0x70be(%rip), %rdx      # 0x51a1e
leaq -0xf0(%rbp), %rdi
callq 0x2a2fe
movq -0x88(%rbp), %r12
leaq -0x80(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x4b4cc
leaq 0x5bca(%rip), %rsi      # 0x5055b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2c6b4
leaq 0x707d(%rip), %rsi      # 0x51a22
leaq -0x48(%rbp), %rdi
callq 0x25650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x4abf5
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4abfb
movq 0x50(%rax), %rax
leaq -0x48(%rbp), %rsi
movq $0x0, (%rsi)
movq %rax, 0x8(%rsi)
movq %r12, %rdi
callq 0x4adc6
jmp 0x4a81b
movq %r12, -0x88(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movq 0x30(%rax), %rbx
movq 0x38(%rax), %r13
cmpq %r13, %rbx
je 0x4aa6a
leaq -0x48(%rbp), %r14
leaq -0x80(%rbp), %r15
leaq -0x60(%rbp), %r12
movq (%rbx), %rax
movq $0x0, -0x80(%rbp)
movq %rax, -0x78(%rbp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x4adc6
movq %r12, %rdi
movq %r14, %rsi
callq 0x44dfe
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4aa61
callq 0x25320
addq $0x8, %rbx
cmpq %r13, %rbx
jne 0x4aa2a
leaq -0xd0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34434
leaq -0x120(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x6f90(%rip), %rsi      # 0x51a1c
leaq 0x6f8b(%rip), %rdx      # 0x51a1e
leaq -0x130(%rbp), %rdi
callq 0x2a2fe
leaq -0x80(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x4b4cc
movq -0x88(%rbp), %r12
leaq 0x5a97(%rip), %rsi      # 0x5055b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2c6b4
leaq 0x6f4a(%rip), %rsi      # 0x51a22
leaq -0x48(%rbp), %rdi
callq 0x25650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x4ab96
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4ab9c
movq 0x8(%rax), %rdx
addq $0x8, %rdx
leaq 0x6f02(%rip), %r14      # 0x51a1f
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2c6b4
movq %r15, %rdi
movq %r14, %rsi
callq 0x25650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x4ab5d
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4ab63
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a81b
callq 0x25320
jmp 0x4a81b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4abc6
callq 0x25320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4abd8
callq 0x25320
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x4abe9
callq 0x25320
leaq -0xd0(%rbp), %rdi
jmp 0x4a80d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ac25
callq 0x25320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ac37
callq 0x25320
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x4ac48
callq 0x25320
leaq -0xa0(%rbp), %rdi
jmp 0x4a80d
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ac6e
callq 0x25320
jmp 0x4ac6e
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ac85
callq 0x25320
jmp 0x4ac85
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x4ac9b
callq 0x25320
jmp 0x4ac9b
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0x4ad6d
jmp 0x4adb1
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4acc6
callq 0x25320
jmp 0x4acc6
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4acdd
callq 0x25320
jmp 0x4acdd
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x4acf3
callq 0x25320
jmp 0x4acf3
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x4ad6d
jmp 0x4adb1
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4adbd
callq 0x25320
jmp 0x4adbd
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ad39
callq 0x25320
jmp 0x4ad39
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ad50
callq 0x25320
jmp 0x4ad50
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x4ad66
callq 0x25320
jmp 0x4ad66
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x29fb8
jmp 0x4adb4
jmp 0x4adb1
jmp 0x4adb1
movq %rax, %rbx
jmp 0x4ad8e
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x4ad8e
callq 0x25320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
jmp 0x4ada5
jmp 0x4adb1
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x4adb4
callq 0x25320
jmp 0x4adb4
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x29fb8
movq %rbx, %rdi
callq 0x255f0
nop