// File: /workspace/github_cpp_makefile_star2_O1/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 0x442dc
cmpl $0xa, %edx
ja 0x443b1
leaq 0xd7eb(%rip), %rdx      # 0x519f0
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 0x44246
leaq -0x60(%rbp), %r14
movq (%rbx), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0x2a126
addq $0x8, %rbx
cmpq %r15, %rbx
jne 0x4422e
leaq -0xb8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34434
leaq -0x100(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xd7b4(%rip), %rsi      # 0x51a1c
leaq 0xd7af(%rip), %rdx      # 0x51a1e
leaq -0x110(%rbp), %rdi
callq 0x2a2fe
leaq -0x80(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x44d72
leaq 0xc2c2(%rip), %rsi      # 0x5055b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2c6b4
leaq 0xd775(%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 0x44317
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4431d
cmpl $0xa, %edx
ja 0x443b1
leaq 0xd6d8(%rip), %rdx      # 0x519c4
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 0x4437f
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 0x44347
callq 0x25320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44359
callq 0x25320
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x4436a
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 0x44a06
jmp 0x4437f
leaq 0x10(%r12), %rax
movq %rax, (%r12)
leaq 0xd793(%rip), %rdx      # 0x51b54
movq %r12, %rdi
movq %rdx, %rsi
callq 0x2a2fe
jmp 0x4437f
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 0x4449b
leaq -0x38(%rbp), %r13
leaq 0xd61f(%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 0x44442
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x4444a
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 0x4447c
callq 0x25320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x4448e
callq 0x25320
addq $0x8, %r12
cmpq %rbx, %r12
jne 0x44404
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34434
leaq -0xe0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xd55f(%rip), %rsi      # 0x51a1c
leaq 0xd55a(%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 0x44d72
leaq 0xc066(%rip), %rsi      # 0x5055b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2c6b4
leaq 0xd519(%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 0x44759
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x4475f
movq 0x50(%rax), %rax
leaq -0x48(%rbp), %rsi
movq $0x0, (%rsi)
movq %rax, 0x8(%rsi)
movq %r12, %rdi
callq 0x4492a
jmp 0x4437f
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 0x445ce
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 0x4492a
movq %r12, %rdi
movq %r14, %rsi
callq 0x44dfe
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x445c5
callq 0x25320
addq $0x8, %rbx
cmpq %r13, %rbx
jne 0x4458e
leaq -0xd0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x34434
leaq -0x120(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xd42c(%rip), %rsi      # 0x51a1c
leaq 0xd427(%rip), %rdx      # 0x51a1e
leaq -0x130(%rbp), %rdi
callq 0x2a2fe
leaq -0x80(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0x130(%rbp), %rdx
callq 0x44d72
movq -0x88(%rbp), %r12
leaq 0xbf33(%rip), %rsi      # 0x5055b
leaq -0x48(%rbp), %rdi
leaq -0x80(%rbp), %rdx
callq 0x2c6b4
leaq 0xd3e6(%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 0x446fa
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x44700
movq 0x8(%rax), %rdx
addq $0x8, %rdx
leaq 0xd39e(%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 0x446c1
movq %rsi, (%r12)
movq (%rcx), %rdx
movq %rdx, 0x10(%r12)
jmp 0x446c7
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 0x4437f
callq 0x25320
jmp 0x4437f
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 0x4472a
callq 0x25320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4473c
callq 0x25320
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x4474d
callq 0x25320
leaq -0xd0(%rbp), %rdi
jmp 0x44371
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 0x44789
callq 0x25320
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4479b
callq 0x25320
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x447ac
callq 0x25320
leaq -0xa0(%rbp), %rdi
jmp 0x44371
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x447d2
callq 0x25320
jmp 0x447d2
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x447e9
callq 0x25320
jmp 0x447e9
movq %rax, %rbx
movq -0xf0(%rbp), %rdi
cmpq %r14, %rdi
je 0x447ff
callq 0x25320
jmp 0x447ff
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0x448d1
jmp 0x44915
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4482a
callq 0x25320
jmp 0x4482a
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44841
callq 0x25320
jmp 0x44841
movq %rax, %rbx
movq -0x130(%rbp), %rdi
cmpq %r14, %rdi
je 0x44857
callq 0x25320
jmp 0x44857
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x448d1
jmp 0x44915
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44921
callq 0x25320
jmp 0x44921
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4489d
callq 0x25320
jmp 0x4489d
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x448b4
callq 0x25320
jmp 0x448b4
movq %rax, %rbx
movq -0x110(%rbp), %rdi
cmpq %r14, %rdi
je 0x448ca
callq 0x25320
jmp 0x448ca
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x29fb8
jmp 0x44918
jmp 0x44915
jmp 0x44915
movq %rax, %rbx
jmp 0x448f2
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x448f2
callq 0x25320
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
jmp 0x44909
jmp 0x44915
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x44918
callq 0x25320
jmp 0x44918
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x29fb8
movq %rbx, %rdi
callq 0x255f0
nop