// File: /workspace/github_cpp_makefile_star2_O3/CoinXu[P]reviser-compiler/src/compiler/javascript/javascript_expr.cpp
// Function: reviser::javascript::JavaScriptRightValue::Generate[abi:cxx11]()
string JavaScriptRightValue::Generate() {
    if (node->array_type) {
      switch (node->type) {
        case TYPE_ENUM: {
          vector<string> values;
          for (EnumValue* v : node->evs) {
            values.push_back(JavaScriptEnumValue(v).Generate());
          }
          return "[" + JavaScriptCommon::JoinVector(values, ", ") + "]";
        }

        case TYPE_STRUCT:
          return JavaScriptStructValue(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 "[" + JavaScriptCommon::JoinVector(values, ", ") + "]";
        }

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

        default:
          return "";
      }
    }

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

      case TYPE_STRUCT:
        return JavaScriptStructValue(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 0x430e4
cmpl $0xa, %edx
ja 0x431b9
leaq 0xd9e3(%rip), %rdx      # 0x509f0
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 0x4304e
leaq -0x60(%rbp), %r14
movq (%rbx), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0x28f9c
addq $0x8, %rbx
cmpq %r15, %rbx
jne 0x43036
leaq -0xb8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x331a4
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xd9ac(%rip), %rsi      # 0x50a1c
leaq 0xd9a7(%rip), %rdx      # 0x50a1e
leaq -0x110(%rbp), %rdi
callq 0x29178
leaq -0x80(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x43b7a
leaq 0xc4ba(%rip), %rsi      # 0x4f55b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2b4b3
leaq 0xd96d(%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 0x4311f
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x43125
cmpl $0xa, %edx
ja 0x431b9
leaq 0xd8d0(%rip), %rdx      # 0x509c4
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 0x43187
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 0x4314f
callq 0x24320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43161
callq 0x24320
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x43172
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 0x4380e
jmp 0x43187
leaq 0x10(%r12), %rax
movq %rax, (%r12)
leaq 0xd98b(%rip), %rdx      # 0x50b54
movq %r12, %rdi
movq %rdx, %rsi
callq 0x29178
jmp 0x43187
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 0x432a3
leaq -0x38(%rbp), %r13
leaq 0xd817(%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 0x4324a
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x43252
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 0x43284
callq 0x24320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x43296
callq 0x24320
addq $0x8, %r12
cmpq %rbx, %r12
jne 0x4320c
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x331a4
leaq -0xe0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xd757(%rip), %rsi      # 0x50a1c
leaq 0xd752(%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 0x43b7a
leaq 0xc25e(%rip), %rsi      # 0x4f55b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2b4b3
leaq 0xd711(%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 0x43561
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x43567
movq 0x50(%rax), %rax
leaq -0x48(%rbp), %rsi
movq $0x0, (%rsi)
movq %rax, 0x8(%rsi)
movq %r12, %rdi
callq 0x43732
jmp 0x43187
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 0x433d6
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 0x43732
movq %r12, %rdi
movq %r14, %rsi
callq 0x43c06
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x433cd
callq 0x24320
addq $0x8, %rbx
cmpq %r13, %rbx
jne 0x43396
leaq -0xd0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x331a4
leaq -0x120(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xd624(%rip), %rsi      # 0x50a1c
leaq 0xd61f(%rip), %rdx      # 0x50a1e
leaq -0x130(%rbp), %rdi
callq 0x29178
leaq -0x80(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x43b7a
movq -0x88(%rbp), %r12
leaq 0xc12b(%rip), %rsi      # 0x4f55b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2b4b3
leaq 0xd5de(%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 0x43502
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x43508
movq 0x8(%rax), %rdx
addq $0x8, %rdx
leaq 0xd596(%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 0x434c9
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x434cf
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 0x43187
callq 0x24320
jmp 0x43187
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 0x43532
callq 0x24320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43544
callq 0x24320
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x43555
callq 0x24320
leaq -0xd0(%rbp), %rdi
jmp 0x43179
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 0x43591
callq 0x24320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x435a3
callq 0x24320
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x435b4
callq 0x24320
leaq -0xa0(%rbp), %rdi
jmp 0x43179
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x435da
callq 0x24320
jmp 0x435da
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x435f1
callq 0x24320
jmp 0x435f1
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x43607
callq 0x24320
jmp 0x43607
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0x436d9
jmp 0x4371d
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43632
callq 0x24320
jmp 0x43632
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43649
callq 0x24320
jmp 0x43649
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x4365f
callq 0x24320
jmp 0x4365f
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x436d9
jmp 0x4371d
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x43729
callq 0x24320
jmp 0x43729
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x436a5
callq 0x24320
jmp 0x436a5
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x436bc
callq 0x24320
jmp 0x436bc
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x436d2
callq 0x24320
jmp 0x436d2
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x28e24
jmp 0x43720
jmp 0x4371d
jmp 0x4371d
movq %rax, %rbx
jmp 0x436fa
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x436fa
callq 0x24320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
jmp 0x43711
jmp 0x4371d
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x43720
callq 0x24320
jmp 0x43720
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x28e24
movq %rbx, %rdi
callq 0x245f0
nop