// File: jp-myk[P]WAVUtil/src/SimpleWAV/WAV.cpp
// Function: WAV::dumpHeader()
void WAV::dumpHeader(){
  printf("riffID\t%c%c%c%c\n",_riffID[0],_riffID[1],_riffID[2],_riffID[3]);
  std::cout << "size\t" << _size   << std::endl;
  printf("wavID\t%c%c%c%c\n",_wavID[0],_wavID[1],_wavID[2],_wavID[3]);
  printf("fmtID\t%c%c%c%c\n",_fmtID[0],_fmtID[1],_fmtID[2],_fmtID[3]);
  std::cout << "fmtSize\t" << _fmtSize << std::endl;
  std::cout << "format\t" << _format << std::endl;
  std::cout << "channels\t" << _channels << std::endl;
  std::cout << "sampleRate\t" << _sampleRate << std::endl;
  std::cout << "bytePerSec\t" << _bytePerSec << std::endl;
  std::cout << "blockSize\t" << _blockSize << std::endl;
  std::cout << "bitID\t" << _bit << std::endl;
  printf("dataID\t%c%c%c%c\n",_dataID[0],_dataID[1],_dataID[2],_dataID[3]);
  std::cout << "dataSize\t" << _dataSize << std::endl;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movsbl (%rax), %esi
movsbl 0x1(%rax), %edx
movsbl 0x2(%rax), %ecx
movsbl 0x3(%rax), %r8d
leaq 0x2aa7(%rip), %rdi      # 0x6112
movb $0x0, %al
callq 0x2030
movq 0x5957(%rip), %rdi      # 0x8fd0
leaq 0x2aa3(%rip), %rsi      # 0x6123
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %esi
callq 0x2190
movq %rax, %rdi
movq 0x5922(%rip), %rsi      # 0x8fc0
callq 0x2130
movq -0x10(%rbp), %rax
movsbl 0x8(%rax), %esi
movsbl 0x9(%rax), %edx
movsbl 0xa(%rax), %ecx
movsbl 0xb(%rax), %r8d
leaq 0x2a6a(%rip), %rdi      # 0x6129
movb $0x0, %al
callq 0x2030
movq -0x10(%rbp), %rax
movsbl 0xc(%rax), %esi
movsbl 0xd(%rax), %edx
movsbl 0xe(%rax), %ecx
movsbl 0xf(%rax), %r8d
leaq 0x2a57(%rip), %rdi      # 0x6139
movb $0x0, %al
callq 0x2030
movq 0x58e0(%rip), %rdi      # 0x8fd0
leaq 0x2a52(%rip), %rsi      # 0x6149
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x2190
movq %rax, %rdi
movq 0x58ab(%rip), %rsi      # 0x8fc0
callq 0x2130
movq 0x58af(%rip), %rdi      # 0x8fd0
leaq 0x2a2a(%rip), %rsi      # 0x6152
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movzwl 0x14(%rax), %esi
callq 0x21f0
movq %rax, %rdi
movq 0x5879(%rip), %rsi      # 0x8fc0
callq 0x2130
movq 0x587d(%rip), %rdi      # 0x8fd0
leaq 0x2a00(%rip), %rsi      # 0x615a
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movzwl 0x16(%rax), %esi
callq 0x21f0
movq %rax, %rdi
movq 0x5847(%rip), %rsi      # 0x8fc0
callq 0x2130
movq 0x584b(%rip), %rdi      # 0x8fd0
leaq 0x29d8(%rip), %rsi      # 0x6164
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x18(%rax), %esi
callq 0x2190
movq %rax, %rdi
movq 0x5816(%rip), %rsi      # 0x8fc0
callq 0x2130
movq 0x581a(%rip), %rdi      # 0x8fd0
leaq 0x29b3(%rip), %rsi      # 0x6170
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0x2190
movq %rax, %rdi
movq 0x57e5(%rip), %rsi      # 0x8fc0
callq 0x2130
movq 0x57e9(%rip), %rdi      # 0x8fd0
leaq 0x298e(%rip), %rsi      # 0x617c
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movzwl 0x20(%rax), %esi
callq 0x21f0
movq %rax, %rdi
movq 0x57b3(%rip), %rsi      # 0x8fc0
callq 0x2130
movq 0x57b7(%rip), %rdi      # 0x8fd0
leaq 0x2967(%rip), %rsi      # 0x6187
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movzwl 0x22(%rax), %esi
callq 0x21f0
movq %rax, %rdi
movq 0x5781(%rip), %rsi      # 0x8fc0
callq 0x2130
movq -0x10(%rbp), %rax
movsbl 0x24(%rax), %esi
movsbl 0x25(%rax), %edx
movsbl 0x26(%rax), %ecx
movsbl 0x27(%rax), %r8d
leaq 0x292e(%rip), %rdi      # 0x618e
movb $0x0, %al
callq 0x2030
movq 0x5762(%rip), %rdi      # 0x8fd0
leaq 0x292a(%rip), %rsi      # 0x619f
callq 0x2100
movq %rax, %rdi
movq -0x10(%rbp), %rax
movl 0x28(%rax), %esi
callq 0x2190
movq %rax, %rdi
movq 0x572d(%rip), %rsi      # 0x8fc0
callq 0x2130
addq $0x10, %rsp
popq %rbp
retq
nop