// File: /workspace/github_c_makefile_star2_O1/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
cmpl $0x2, %edi
jl 0x22b6
movss 0xe0d(%rip), %xmm0      # 0x3010
movl $0x1, %r13d
leaq 0xfef(%rip), %r14       # 0x31ff
leaq 0x1004(%rip), %r15      # 0x321b
movss %xmm0, (%rsp)
movss %xmm0, 0x4(%rsp)
movslq %r13d, %rax
movq (%rbx,%rax,8), %r12
cmpb $0x2d, (%r12)
jne 0x22cf
movq %r12, %rdi
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
je 0x2278
movq %r12, %rdi
movq %r15, %rsi
callq 0x10b0
testl %eax, %eax
jne 0x22a8
incl %r13d
cmpl %ebp, %r13d
jge 0x22a8
movslq %r13d, %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
cvtsd2ss %xmm0, %xmm0
leaq 0xfad(%rip), %rdi       # 0x321e
movss %xmm0, (%rsp)
jmp 0x229d
incl %r13d
cmpl %ebp, %r13d
jge 0x22a8
movslq %r13d, %rax
movq (%rbx,%rax,8), %rdi
callq 0x1050
cvtsd2ss %xmm0, %xmm0
leaq 0xf6b(%rip), %rdi       # 0x3202
movss %xmm0, 0x4(%rsp)
cvtss2sd %xmm0, %xmm0
movb $0x1, %al
callq 0x1080
incl %r13d
cmpl %ebp, %r13d
jl 0x2222
jmp 0x22cf
movl $0x1, %r13d
movss 0xd4c(%rip), %xmm0      # 0x3010
movss %xmm0, 0x4(%rsp)
movss %xmm0, (%rsp)
subl %r13d, %ebp
cmpl $0x2, %ebp
jne 0x23d9
movslq %r13d, %rax
movq (%rbx,%rax,8), %r14
movq 0x8(%rbx,%rax,8), %r15
leaq 0x8(%rsp), %rsi
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x19dc
movl (%r12), %edi
cmpl $0x1, %edi
jne 0x23de
movl 0x8(%rsp), %edi
cmpl $0x1f40, %edi           # imm = 0x1F40
jne 0x23e3
movq %rax, %rbx
testq %rax, %rax
je 0x23e8
movq %r15, %rdi
movl $0x1f40, %esi           # imm = 0x1F40
movl $0x1, %edx
callq 0x1cc2
testq %rax, %rax
je 0x23f0
movq %rax, %r14
callq 0x143e
movss 0x4(%rsp), %xmm0
callq 0x142c
movss (%rsp), %xmm0
callq 0x1435
leaq 0xb0(%rsp), %r15
leaq 0x10(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movl $0x50, %edx
callq 0x1fc7
movl %eax, %ebp
testl %eax, %eax
je 0x238c
movq %r15, %rdi
movl %ebp, %esi
callq 0x1551
jmp 0x23a0
callq 0x14d1
jmp 0x23a0
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x2045
movq %r12, %rdi
movl $0x50, %esi
callq 0x1464
testl %eax, %eax
jg 0x2393
testl %ebp, %ebp
jg 0x236a
movq %rbx, %rdi
callq 0x1ee5
movq %r14, %rdi
callq 0x1ee5
xorl %eax, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1270
callq 0x1297
callq 0x12ba
movq %r14, %rdi
callq 0x130e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x12e2