// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/utils/filter/hipass.c
// Function: main
int
main(int argc,char **argv)
    {
    int argIndex = 1;

    FILE *in,*out;
    RRA *h;

    argIndex = processOptions(argc,argv);

    if (argc-argIndex == 0)
        {
        in = stdin;
        out = stdout;
        }
    else if (argc-argIndex == 1)
        {
        in = OpenFile(argv[argIndex],"r");
        out = stdout;
        }
    else if (argc-argIndex == 2)
        {
        in = OpenFile(argv[argIndex],"r");
        out = OpenFile(argv[argIndex+1],"w");
        }
    else
        {
        fprintf(stderr,"usage: hipass -h -a<N.M> -w<N.M> -d<N.M> -l<N.M> "
            "[<input rra file> [<output rra file>]]\n");
        exit(-1);
        }

    h = newRRAHeader();
    
    readRRAHeader(in,h,0);

    if (h->channels != 1)
        Fatal("hipass requires a mono RRA file\n");

    writeRRAHeader(out,h,"modifiedBy: hipass",0);

    filterloop(in,out,h);

    fclose(in);
    fclose(out);

    return 0;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
movl $0x1, %r12d
cmpl $0x2, %edi
jl 0x167a
movl $0x1, %r12d
movslq %r12d, %rax
movq (%r14,%rax,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x167a
movb 0x2(%rsi), %r13b
testb %r13b, %r13b
je 0x1603
leaq 0x2(%rsi), %rdi
jmp 0x1608
movq 0x8(%r14,%rax,8), %rdi
movzbl 0x1(%rsi), %eax
cmpl $0x62, %eax
jle 0x1625
cmpl $0x63, %eax
jne 0x163c
callq 0x1080
movsd %xmm0, 0x5b2d(%rip)     # 0x7150
jmp 0x1637
cmpl $0x61, %eax
jne 0x164e
callq 0x1080
movsd %xmm0, 0x5b11(%rip)     # 0x7148
movb $0x1, %r15b
jmp 0x165f
cmpl $0x68, %eax
je 0x18e1
cmpl $0x76, %eax
je 0x18c3
xorl %r15d, %r15d
leaq 0x2a97(%rip), %rdi      # 0x40ef
xorl %eax, %eax
callq 0x1914
testb %r13b, %r13b
sete %al
andb %r15b, %al
movzbl %al, %eax
addl %eax, %r12d
incl %r12d
cmpl %ebx, %r12d
jl 0x15e4
subl %r12d, %ebx
jne 0x168b
movq 0x5952(%rip), %rax      # 0x6fd8
movq (%rax), %rbx
jmp 0x16af
cmpl $0x2, %ebx
je 0x16bb
cmpl $0x1, %ebx
jne 0x190c
movslq %r12d, %rax
movq (%r14,%rax,8), %rdi
leaq 0x2f36(%rip), %rsi      # 0x45dd
callq 0x19ae
movq %rax, %rbx
movq 0x591a(%rip), %rax      # 0x6fd0
movq (%rax), %r14
jmp 0x16e5
movslq %r12d, %r15
movq (%r14,%r15,8), %rdi
leaq 0x2f14(%rip), %rsi      # 0x45dd
callq 0x19ae
movq %rax, %rbx
movq 0x8(%r14,%r15,8), %rdi
leaq 0x2974(%rip), %rsi      # 0x4051
callq 0x19ae
movq %rax, %r14
callq 0x1c2b
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x2038
cmpl $0x1, (%r15)
je 0x170e
leaq 0x29a5(%rip), %rdi      # 0x40ac
xorl %eax, %eax
callq 0x1914
leaq 0x29b8(%rip), %rdx      # 0x40cd
movq %r14, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x2a89
cmpl $0x0, 0xc(%r15)
jle 0x18a2
leaq 0x2b49(%rip), %r13      # 0x427d
xorl %r12d, %r12d
movss 0x5a51(%rip), %xmm0     # 0x7190
movss %xmm0, 0x5a39(%rip)     # 0x7180
movss 0x5a49(%rip), %xmm0     # 0x7198
movss %xmm0, 0x5a39(%rip)     # 0x7190
movss 0x5a41(%rip), %xmm0     # 0x71a0
movss %xmm0, 0x5a31(%rip)     # 0x7198
movss 0x5a41(%rip), %xmm0     # 0x71b0
movss %xmm0, 0x5a29(%rip)     # 0x71a0
movl 0x8(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x15cd(%rip), %rcx      # 0x2d55
callq 0x2524
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x286c(%rip), %xmm0     # 0x4008
divsd 0x286c(%rip), %xmm0     # 0x4010
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x5a00(%rip)     # 0x71b0
movss 0x5a10(%rip), %xmm1     # 0x71c8
xorps %xmm2, %xmm2
cvtss2sd 0x59fd(%rip), %xmm2     # 0x71c0
movss %xmm1, 0x59f5(%rip)     # 0x71c0
movss 0x59fd(%rip), %xmm3     # 0x71d0
movss %xmm3, 0x59ed(%rip)     # 0x71c8
movss 0x59fd(%rip), %xmm4     # 0x71e0
addss 0x5995(%rip), %xmm0     # 0x7180
movss %xmm4, 0x59dd(%rip)     # 0x71d0
movss 0x5995(%rip), %xmm5     # 0x7190
addss 0x599d(%rip), %xmm5     # 0x71a0
mulss 0x2835(%rip), %xmm5     # 0x4040
addss %xmm0, %xmm5
movss 0x5981(%rip), %xmm0     # 0x7198
mulss 0x2825(%rip), %xmm0     # 0x4044
addss %xmm5, %xmm0
cvtss2sd %xmm0, %xmm0
mulsd 0x27e9(%rip), %xmm2     # 0x4018
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
mulsd 0x27de(%rip), %xmm0     # 0x4020
addsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtss2sd %xmm3, %xmm1
mulsd 0x27d3(%rip), %xmm1     # 0x4028
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm4, %xmm0
mulsd 0x27c8(%rip), %xmm0     # 0x4030
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x5968(%rip)     # 0x71e0
cvtss2sd %xmm0, %xmm0
mulsd 0x27b4(%rip), %xmm0     # 0x4038
cvttsd2si %xmm0, %edx
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1140
incl %r12d
cmpl 0xc(%r15), %r12d
jl 0x1737
movq %rbx, %rdi
callq 0x1090
movq %r14, %rdi
callq 0x1090
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x586e(%rip), %rsi      # 0x7138
movq 0x586f(%rip), %rdx      # 0x7140
leaq 0x2808(%rip), %rdi      # 0x40e0
xorl %eax, %eax
callq 0x10b0
jmp 0x1905
leaq 0x2821(%rip), %rdi      # 0x4109
callq 0x1070
leaq 0x2825(%rip), %rdi      # 0x4119
callq 0x1070
leaq 0x2833(%rip), %rdi      # 0x4133
callq 0x1070
xorl %edi, %edi
callq 0x1200
callq 0x1260
nopl (%rax)