// File: /workspace/github_cpp_makefile_star2_O3/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 0x494a8
cmpl $0xa, %edx
ja 0x4957d
leaq 0x781b(%rip), %rdx      # 0x50bec
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 0x49412
leaq -0x60(%rbp), %r14
movq (%rbx), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0x28f9c
addq $0x8, %rbx
cmpq %r15, %rbx
jne 0x493fa
leaq -0xb8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x331a4
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x75e8(%rip), %rsi      # 0x50a1c
leaq 0x75e3(%rip), %rdx      # 0x50a1e
leaq -0x110(%rbp), %rdi
callq 0x29178
leaq -0x80(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x4a1fc
leaq 0x60f6(%rip), %rsi      # 0x4f55b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2b4b3
leaq 0x75a9(%rip), %rsi      # 0x50a22
leaq -0x48(%rbp), %rdi
callq 0x24650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x494e3
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x494e9
cmpl $0xa, %edx
ja 0x4957d
leaq 0x7708(%rip), %rdx      # 0x50bc0
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 0x290da
jmp 0x4954b
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 0x49513
callq 0x24320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49525
callq 0x24320
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x49536
callq 0x24320
leaq -0xb8(%rbp), %rdi
callq 0x28e24
leaq -0x60(%rbp), %rdi
callq 0x28e24
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 0x49bd2
jmp 0x4954b
leaq 0x10(%r12), %rax
movq %rax, (%r12)
leaq 0x75c7(%rip), %rdx      # 0x50b54
movq %r12, %rdi
movq %rdx, %rsi
callq 0x29178
jmp 0x4954b
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 0x49667
leaq -0x38(%rbp), %r13
leaq 0x7453(%rip), %r14      # 0x50a1f
leaq -0x80(%rbp), %r15
movq (%r12), %rdx
addq $0x8, %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2b4b3
movq %r15, %rdi
movq %r14, %rsi
callq 0x24650
movq %r13, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4960e
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x49616
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 0x43c06
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x49648
callq 0x24320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4965a
callq 0x24320
addq $0x8, %r12
cmpq %rbx, %r12
jne 0x495d0
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x331a4
leaq -0xe0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x7393(%rip), %rsi      # 0x50a1c
leaq 0x738e(%rip), %rdx      # 0x50a1e
leaq -0xf0(%rbp), %rdi
callq 0x29178
movq -0x88(%rbp), %r12
leaq -0x80(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x4a1fc
leaq 0x5e9a(%rip), %rsi      # 0x4f55b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2b4b3
leaq 0x734d(%rip), %rsi      # 0x50a22
leaq -0x48(%rbp), %rdi
callq 0x24650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x49925
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4992b
movq 0x50(%rax), %rax
leaq -0x48(%rbp), %rsi
movq $0x0, (%rsi)
movq %rax, 0x8(%rsi)
movq %r12, %rdi
callq 0x49af6
jmp 0x4954b
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 0x4979a
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 0x49af6
movq %r12, %rdi
movq %r14, %rsi
callq 0x43c06
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x49791
callq 0x24320
addq $0x8, %rbx
cmpq %r13, %rbx
jne 0x4975a
leaq -0xd0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x331a4
leaq -0x120(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x7260(%rip), %rsi      # 0x50a1c
leaq 0x725b(%rip), %rdx      # 0x50a1e
leaq -0x130(%rbp), %rdi
callq 0x29178
leaq -0x80(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x4a1fc
movq -0x88(%rbp), %r12
leaq 0x5d67(%rip), %rsi      # 0x4f55b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2b4b3
leaq 0x721a(%rip), %rsi      # 0x50a22
leaq -0x48(%rbp), %rdi
callq 0x24650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x498c6
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x498cc
movq 0x8(%rax), %rdx
addq $0x8, %rdx
leaq 0x71d2(%rip), %r14      # 0x50a1f
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2b4b3
movq %r15, %rdi
movq %r14, %rsi
callq 0x24650
leaq 0x10(%r12), %rdx
movq %rdx, (%r12)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x4988d
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x49893
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 0x4954b
callq 0x24320
jmp 0x4954b
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 0x498f6
callq 0x24320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49908
callq 0x24320
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x49919
callq 0x24320
leaq -0xd0(%rbp), %rdi
jmp 0x4953d
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 0x49955
callq 0x24320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49967
callq 0x24320
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x49978
callq 0x24320
leaq -0xa0(%rbp), %rdi
jmp 0x4953d
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4999e
callq 0x24320
jmp 0x4999e
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x499b5
callq 0x24320
jmp 0x499b5
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x499cb
callq 0x24320
jmp 0x499cb
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0x49a9d
jmp 0x49ae1
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x499f6
callq 0x24320
jmp 0x499f6
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49a0d
callq 0x24320
jmp 0x49a0d
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x49a23
callq 0x24320
jmp 0x49a23
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x49a9d
jmp 0x49ae1
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49aed
callq 0x24320
jmp 0x49aed
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49a69
callq 0x24320
jmp 0x49a69
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49a80
callq 0x24320
jmp 0x49a80
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x49a96
callq 0x24320
jmp 0x49a96
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x28e24
jmp 0x49ae4
jmp 0x49ae1
jmp 0x49ae1
movq %rax, %rbx
jmp 0x49abe
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x49abe
callq 0x24320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
jmp 0x49ad5
jmp 0x49ae1
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x49ae4
callq 0x24320
jmp 0x49ae4
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x28e24
movq %rbx, %rdi
callq 0x245f0
nop