// File: /workspace/github_cpp_makefile_star2_O3/Jiro-iwai[P]yuv2psnr/yuv2psnr.cpp
// Function: parse_option(int, char**, Option&)
void parse_option
( int argc
, char* argv[]
, Option& opt
)
{
  for( int i = 1; i < argc; i++ ) {

    string op = argv[i];
    
    if( op == "-w" ) {
      i++;
      opt.width = boost::lexical_cast<int>(argv[i]);
    } else if( op == "-h" ) {
      i++;
      opt.height = boost::lexical_cast<int>(argv[i]);
    } else if( op == "-i0" ) {
      i++;
      opt.file0 = argv[i];
    } else if( op == "-i1" ) {
      i++;
      opt.file1 = argv[i];
    } else if( op == "-v" ) {
      opt.showFrame = true;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, 0x8(%rsp)
cmpl $0x2, %edi
jl 0x4806
movq %rsi, %r14
movl %edi, %ebp
movq 0x8(%rsp), %rax
leaq 0x28(%rax), %rcx
movq %rcx, 0x58(%rsp)
addq $0x8, %rax
movq %rax, 0x60(%rsp)
movl $0x1, %ebx
leaq 0x48(%rsp), %r12
leaq 0x38(%rsp), %r13
movslq %ebx, %r15
movq (%r14,%r15,8), %rsi
movq %r13, %rdi
leaq 0x10(%rsp), %rdx
callq 0x4110
movq %r13, %rdi
leaq 0x6aeb(%rip), %rsi      # 0xb144
callq 0x40b0
testl %eax, %eax
je 0x46cd
movq %r13, %rdi
leaq 0x6adb(%rip), %rsi      # 0xb147
callq 0x40b0
testl %eax, %eax
je 0x472c
movq %r13, %rdi
leaq 0x6ac7(%rip), %rsi      # 0xb14a
callq 0x40b0
testl %eax, %eax
je 0x4789
movq %r13, %rdi
leaq 0x6ab4(%rip), %rsi      # 0xb14e
callq 0x40b0
testl %eax, %eax
je 0x47bb
movq %r13, %rdi
leaq 0x6aa1(%rip), %rsi      # 0xb152
callq 0x40b0
testl %eax, %eax
jne 0x46c3
movq 0x8(%rsp), %rax
movb $0x1, 0x48(%rax)
leaq 0x48(%rsp), %r12
jmp 0x47ed
movl $0x0, 0x4(%rsp)
leaq 0x14(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r14,%r15,8), %r15
movq %r15, 0x18(%rsp)
movq %r15, %rdi
callq 0x4140
addq %r15, %rax
movq %rax, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5bbc
testb %al, %al
je 0x4815
incl %ebx
movl 0x4(%rsp), %eax
movq 0x8(%rsp), %rcx
movl %eax, (%rcx)
jmp 0x47ed
movl $0x0, 0x4(%rsp)
leaq 0x14(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r14,%r15,8), %r15
movq %r15, 0x18(%rsp)
movq %r15, %rdi
callq 0x4140
addq %r15, %rax
movq %rax, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %rax, 0x30(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5bbc
testb %al, %al
je 0x483f
incl %ebx
movl 0x4(%rsp), %eax
movq 0x8(%rsp), %rcx
movl %eax, 0x4(%rcx)
jmp 0x47ed
movq 0x8(%r14,%r15,8), %r15
movq 0x8(%rsp), %rax
movq 0x10(%rax), %r12
movq %r15, %rdi
callq 0x4140
movq 0x60(%rsp), %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
leaq 0x48(%rsp), %r12
callq 0x4340
jmp 0x47eb
movq 0x8(%r14,%r15,8), %r15
movq 0x8(%rsp), %rax
movq 0x30(%rax), %r12
movq %r15, %rdi
callq 0x4140
movq 0x58(%rsp), %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r15, %rcx
movq %rax, %r8
leaq 0x48(%rsp), %r12
callq 0x4340
incl %ebx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x47fc
callq 0x4230
incl %ebx
cmpl %ebp, %ebx
jl 0x463b
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb0d4(%rip), %rax      # 0xf8f0
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movq 0xb7bd(%rip), %rax      # 0xffe8
movq %rax, 0x8(%rdi)
movq 0xb772(%rip), %rax      # 0xffa8
movq %rax, 0x10(%rdi)
callq 0x5eb2
leaq 0xb0aa(%rip), %rax      # 0xf8f0
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movq 0xb793(%rip), %rax      # 0xffe8
movq %rax, 0x8(%rdi)
movq 0xb748(%rip), %rax      # 0xffa8
movq %rax, 0x10(%rdi)
callq 0x5eb2
jmp 0x486b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4360
jmp 0x487d
movq %rax, %rbx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x4891
callq 0x4230
movq %rbx, %rdi
callq 0x43d0