// File: /workspace/github_cpp_makefile_star2_O3/wrighteagle2d[P]wrighteaglebase/Debug/../src/ParamEngine.cpp
// Function: ParamEngine::PrintParam(char const*, std::ostream&)
bool ParamEngine::PrintParam(const char *name, std::ostream &os) {
  if (name != 0) {
    ParamPtr it;
    bool found = GetParam(name, it);
    if (found == true) {
      os << it->name << " = ";
      switch (it->type) {
      case V_INT:
        os << *static_cast<int *>(it->ptr);
        break;
      case V_DOUBLE:
        os << *static_cast<double *>(it->ptr);
        break;
      case V_STRING:
        os << '\"' << *static_cast<std::string *>(it->ptr) << '\"';
        break;
      case V_ONOFF:
        if (*static_cast<bool *>(it->ptr) == true) {
          os << "on";
        } else {
          os << "off";
        }
        break;
      default:
        return false;
      }
      os << std::endl;
      return true;
    } else {
      std::cerr << __FILE__ << ":" << __LINE__ << ": unknown argument \'"
                << name << "\'" << std::endl;
    }
  }
  return false;
}

// Assembly:
testq %rsi, %rsi
je 0x3cda4
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq -0x28(%rbp), %rdx
movq $0x0, (%rdx)
callq 0x3c8d4
testb %al, %al
je 0x3cda7
movq -0x28(%rbp), %r14
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
callq 0x9560
leaq 0x2e357(%rip), %rsi     # 0x6b0bc
movl $0x3, %edx
movq %rax, %rdi
callq 0x9560
movl 0x38(%r14), %eax
decl %eax
cmpl $0x3, %eax
ja 0x3ce4b
leaq 0x2e2c0(%rip), %rcx     # 0x6b048
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x30(%r14), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x9880
jmp 0x3ceca
xorl %eax, %eax
retq
movq 0x47242(%rip), %rbx     # 0x83ff0
leaq 0x2e2a3(%rip), %rsi     # 0x6b058
movl $0x16, %edx
movq %rbx, %rdi
callq 0x9560
leaq 0x303c9(%rip), %rsi     # 0x6d192
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9560
movq %rbx, %rdi
movl $0x8e, %esi
callq 0x9880
movq %rax, %rbx
leaq 0x2e2d3(%rip), %rsi     # 0x6b0c0
movl $0x14, %edx
movq %rax, %rdi
callq 0x9560
movq %r14, %rdi
callq 0x9200
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x9560
leaq 0x2e2e2(%rip), %rsi     # 0x6b0f9
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9560
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
xorl %eax, %eax
jmp 0x3cef3
movb $0x22, %r15b
leaq -0x19(%rbp), %rsi
movb %r15b, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x9560
movq 0x30(%r14), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
movq %rax, %rdi
callq 0x9560
leaq -0x1a(%rbp), %rsi
movb %r15b, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
jmp 0x3cec5
movq 0x30(%r14), %rax
cmpb $0x1, (%rax)
jne 0x3ceb6
leaq 0x3041a(%rip), %rsi     # 0x6d2b7
movl $0x2, %edx
jmp 0x3cec2
movq 0x30(%r14), %rax
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x97d0
jmp 0x3ceca
leaq 0x303e7(%rip), %rsi     # 0x6d2a4
movl $0x3, %edx
movq %rbx, %rdi
callq 0x9560
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x9480
movsbl %al, %esi
movq %rbx, %rdi
callq 0x9070
movq %rax, %rdi
callq 0x9330
movb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq