// File: lagoproject[P]arti/analysis/analysis.cc
// Function: Usage(char*, int)
void Usage(char *prog, int verbose=0) {
  cout << endl << "analysis.cc, from ARTI     version " << VERSION << endl<< endl;
  cout << "  Read ascii files containing Corsika Outputs and produce different files" << endl; 
  cout << "  containing secondaries, injection spectra, etc, acoording to options" << endl; 
  cout << "  selected by user." << endl; 
  cout << "  Usage: " << prog << " [flags] raw_file" << endl;
  cout << "    If 'raw_file' does not exits, switch to STDIN and use raw_file as" << endl;
  cout << "    basename for output file." << endl;
  cout << "    flags:"<<endl;
  cout << "      -p: create a separate file with information from all primaries"<<endl; 
  cout << "      -i: include headers and footers as comments in secondaries file"<<endl;
  cout << "      -c <obs_lev in m>  : Enable curved mode: x'y' will be converted to local coordinates xys\n                        WARNING! Should not be used if showers will be used after analysis, as it could introduce errors."<<endl;
  cout << "      -d: debug mode: print headers and footers in stdout. Handle with care. *"<<endl;
  cout << "      -v: enable verbose outputs"<<endl; 
  cout << "      -f: force analysis (overide file sanity checks and continue. Handle with care)"<<endl; 
  cout << "      -?: prints help and exits"<<endl << endl;
  cout << "    * STILL NOT IMPLEMENTED"<<endl;
  if (verbose) {
    // verbose help
  }
  exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq 0x3522(%rip), %rdi      # 0x4fc8
movq 0x3503(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq %rax, %rdi
leaq 0x17fe(%rip), %rsi      # 0x32ba
callq 0x10b0
movq %rax, %rdi
leaq 0x1813(%rip), %rsi      # 0x32de
callq 0x10b0
movq %rax, %rdi
movq 0x34d6(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq %rax, %rdi
movq 0x34c7(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x34d3(%rip), %rdi      # 0x4fc8
leaq 0x17e7(%rip), %rsi      # 0x32e3
callq 0x10b0
movq %rax, %rdi
movq 0x34a5(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x34b1(%rip), %rdi      # 0x4fc8
leaq 0x180f(%rip), %rsi      # 0x332d
callq 0x10b0
movq %rax, %rdi
movq 0x3483(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x348f(%rip), %rdi      # 0x4fc8
leaq 0x1834(%rip), %rsi      # 0x3374
callq 0x10b0
movq %rax, %rdi
movq 0x3461(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x346d(%rip), %rdi      # 0x4fc8
leaq 0x1826(%rip), %rsi      # 0x3388
callq 0x10b0
movq %rax, %rdi
movq -0x8(%rbp), %rsi
callq 0x10b0
movq %rax, %rdi
leaq 0x1815(%rip), %rsi      # 0x3392
callq 0x10b0
movq %rax, %rdi
movq 0x3424(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x3430(%rip), %rdi      # 0x4fc8
leaq 0x1805(%rip), %rsi      # 0x33a4
callq 0x10b0
movq %rax, %rdi
movq 0x3402(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x340e(%rip), %rdi      # 0x4fc8
leaq 0x1829(%rip), %rsi      # 0x33ea
callq 0x10b0
movq %rax, %rdi
movq 0x33e0(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x33ec(%rip), %rdi      # 0x4fc8
leaq 0x1825(%rip), %rsi      # 0x3408
callq 0x10b0
movq %rax, %rdi
movq 0x33be(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x33ca(%rip), %rdi      # 0x4fc8
leaq 0x180e(%rip), %rsi      # 0x3413
callq 0x10b0
movq %rax, %rdi
movq 0x339c(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x33a8(%rip), %rdi      # 0x4fc8
leaq 0x1831(%rip), %rsi      # 0x3458
callq 0x10b0
movq %rax, %rdi
movq 0x337a(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x3386(%rip), %rdi      # 0x4fc8
leaq 0x1855(%rip), %rsi      # 0x349e
callq 0x10b0
movq %rax, %rdi
movq 0x3358(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x3364(%rip), %rdi      # 0x4fc8
leaq 0x190c(%rip), %rsi      # 0x3577
callq 0x10b0
movq %rax, %rdi
movq 0x3336(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x3342(%rip), %rdi      # 0x4fc8
leaq 0x1939(%rip), %rsi      # 0x35c6
callq 0x10b0
movq %rax, %rdi
movq 0x3314(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x3320(%rip), %rdi      # 0x4fc8
leaq 0x1938(%rip), %rsi      # 0x35e7
callq 0x10b0
movq %rax, %rdi
movq 0x32f2(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x32fe(%rip), %rdi      # 0x4fc8
leaq 0x196b(%rip), %rsi      # 0x363c
callq 0x10b0
movq %rax, %rdi
movq 0x32d0(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq %rax, %rdi
movq 0x32c1(%rip), %rsi      # 0x4fb0
callq 0x10c0
movq 0x32cd(%rip), %rdi      # 0x4fc8
leaq 0x195a(%rip), %rsi      # 0x365c
callq 0x10b0
movq %rax, %rdi
movq 0x329f(%rip), %rsi      # 0x4fb0
callq 0x10c0
cmpl $0x0, -0xc(%rbp)
je 0x1d1e
jmp 0x1d1e
movl $0x1, %edi
callq 0x1100
nopl (%rax,%rax)