// File: 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:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x7013e
leaq -0x28(%rbp), %rdi
callq 0x70cb0
movq -0x38(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x6f9a0
andb $0x1, %al
movb %al, -0x29(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x700d4
movq -0x20(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x28(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x70c60
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0xa4f0
movq %rax, %rdi
leaq 0x53036(%rip), %rsi     # 0xc2ff8
callq 0xa5a0
movq -0x48(%rbp), %rdi
callq 0x70c60
movl 0x28(%rax), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x40(%rbp)
subl $0x3, %eax
ja 0x700b5
movq -0x40(%rbp), %rax
leaq 0x52f91(%rip), %rcx     # 0xc2f80
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x70c60
movq -0x58(%rbp), %rdi
movq 0x20(%rax), %rax
movl (%rax), %esi
callq 0xaa40
jmp 0x700be
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x70c60
movq -0x60(%rbp), %rdi
movq 0x20(%rax), %rax
movsd (%rax), %xmm0
callq 0xab60
jmp 0x700be
movq -0x20(%rbp), %rdi
movl $0x22, %esi
callq 0xa6e0
movq %rax, -0x68(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x70c60
movq -0x68(%rbp), %rdi
movq 0x20(%rax), %rsi
callq 0xa4f0
movq %rax, %rdi
movl $0x22, %esi
callq 0xa6e0
jmp 0x700be
leaq -0x28(%rbp), %rdi
callq 0x70c60
movq 0x20(%rax), %rax
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x700a3
movq -0x20(%rbp), %rdi
leaq 0x552db(%rip), %rsi     # 0xc5377
callq 0xa5a0
jmp 0x700b3
movq -0x20(%rbp), %rdi
leaq 0x552b6(%rip), %rsi     # 0xc5364
callq 0xa5a0
jmp 0x700be
movb $0x0, -0x1(%rbp)
jmp 0x70142
movq -0x20(%rbp), %rdi
movq 0x8dee7(%rip), %rsi     # 0xfdfb0
callq 0xa630
movb $0x1, -0x1(%rbp)
jmp 0x70142
movq 0x8df15(%rip), %rdi     # 0xfdff0
leaq 0x52eb2(%rip), %rsi     # 0xc2f94
callq 0xa5a0
movq %rax, %rdi
leaq 0x55160(%rip), %rsi     # 0xc5251
callq 0xa5a0
movq %rax, %rdi
movl $0x8e, %esi
callq 0xaa40
movq %rax, %rdi
leaq 0x52eef(%rip), %rsi     # 0xc2ffc
callq 0xa5a0
movq %rax, %rdi
movq -0x18(%rbp), %rsi
callq 0xa5a0
movq %rax, %rdi
leaq 0x52f0d(%rip), %rsi     # 0xc3035
callq 0xa5a0
movq %rax, %rdi
movq 0x8de79(%rip), %rsi     # 0xfdfb0
callq 0xa630
jmp 0x7013e
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)