// File: /workspace/github_c_makefile_star2_O2/waywardgeek[P]sonic/main_lite.c
// Function: main
int main(int argc, char** argv) {
  char* inFileName;
  char* outFileName;
  float speed = 1.0f;
  float volume = 1.0f;
  int xArg = 1;

  while (xArg < argc && *(argv[xArg]) == '-') {
    if (!strcmp(argv[xArg], "-s")) {
      xArg++;
      if (xArg < argc) {
        speed = atof(argv[xArg]);
        printf("Setting speed to %0.2fX\n", speed);
      }
    } else if (!strcmp(argv[xArg], "-v")) {
      xArg++;
      if (xArg < argc) {
        volume = atof(argv[xArg]);
        printf("Setting volume to %0.2f\n", volume);
      }
    }
    xArg++;
  }
  if (argc - xArg != 2) {
    usage();
  }
  inFileName = argv[xArg];
  outFileName = argv[xArg + 1];
  runSonic(inFileName, outFileName, speed, volume);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, %rbx
movl %edi, %ebp
pushq $0x1
popq %r14
movss 0x111e(%rip), %xmm0     # 0x302c
leaq 0x1302(%rip), %r15      # 0x3217
leaq 0x1314(%rip), %r12      # 0x3230
movss %xmm0, 0x4(%rsp)
movss %xmm0, (%rsp)
movl %ebp, %edx
movslq %r14d, %rcx
subl %r14d, %edx
jle 0x1fa5
movq (%rbx,%rcx,8), %rax
cmpb $0x2d, (%rax)
jne 0x1fa5
cmpb $0x73, 0x1(%rax)
jne 0x1f46
cmpb $0x0, 0x2(%rax)
je 0x1f74
cmpb $0x76, 0x1(%rax)
jne 0x1fa0
cmpb $0x0, 0x2(%rax)
jne 0x1fa0
incl %r14d
cmpl %ebp, %r14d
jge 0x1fa0
movslq %r14d, %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
cvtsd2ss %xmm0, %xmm0
movq %r12, %rdi
movss %xmm0, (%rsp)
jmp 0x1f95
incl %r14d
cmpl %ebp, %r14d
jge 0x1fa0
movslq %r14d, %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
cvtsd2ss %xmm0, %xmm0
movq %r15, %rdi
movss %xmm0, 0x4(%rsp)
cvtss2sd %xmm0, %xmm0
movb $0x1, %al
callq 0x1080
incl %r14d
jmp 0x1f27
cmpl $0x2, %edx
jne 0x20a7
movq (%rbx,%rcx,8), %r14
movq 0x8(%rbx,%rcx,8), %r15
leaq 0x8(%rsp), %rsi
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x17c4
movl (%r12), %edx
cmpl $0x1, %edx
jne 0x20c7
movl 0x8(%rsp), %ecx
cmpl $0x1f40, %ecx           # imm = 0x1F40
jne 0x20e1
movq %rax, %rbx
testq %rax, %rax
je 0x2100
pushq $0x1
popq %rdx
movq %r15, %rdi
movl $0x1f40, %esi           # imm = 0x1F40
callq 0x19d7
testq %rax, %rax
je 0x2116
movq %rax, %r14
callq 0x124e
movss 0x4(%rsp), %xmm0
callq 0x123c
movss (%rsp), %xmm0
callq 0x1245
leaq 0xb0(%rsp), %r15
pushq $0x50
popq %rbp
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x1c04
movl %eax, %r13d
testl %eax, %eax
je 0x205c
movq %r15, %rdi
movl %r13d, %esi
callq 0x1351
jmp 0x2070
callq 0x12dd
jmp 0x2070
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x1c8c
movq %r12, %rdi
movl %ebp, %esi
callq 0x1270
testl %eax, %eax
jg 0x2063
testl %r13d, %r13d
jg 0x203b
movq %rbx, %rdi
callq 0x1af5
movq %r14, %rdi
callq 0x1af5
xorl %eax, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2f4a(%rip), %rax      # 0x4ff8
movq (%rax), %rcx
leaq 0x1191(%rip), %rdi      # 0x3249
pushq $0x1
popq %rdx
movl $0x9f, %esi
callq 0x1130
jmp 0x2139
movq 0x2f2a(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1211(%rip), %rsi      # 0x32e9
xorl %eax, %eax
callq 0x10c0
jmp 0x2139
movq 0x2f10(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x123f(%rip), %rsi      # 0x3331
movl $0x1f40, %edx           # imm = 0x1F40
xorl %eax, %eax
callq 0x10c0
jmp 0x2139
movq 0x2ef1(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1276(%rip), %rsi      # 0x3387
movq %r14, %rdx
jmp 0x2132
movq %rbx, %rdi
callq 0x1af5
movq 0x2ed3(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0xf40(%rip), %rsi       # 0x306f
movq %r15, %rdx
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x1120