// File: /workspace/github_c_makefile_star2_O3/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 0x169a
movl $0x1, %r12d
movslq %r12d, %rax
movq (%r14,%rax,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x169a
movb 0x2(%rsi), %r13b
testb %r13b, %r13b
je 0x1623
leaq 0x2(%rsi), %rdi
jmp 0x1628
movq 0x8(%r14,%rax,8), %rdi
movzbl 0x1(%rsi), %eax
cmpl $0x62, %eax
jle 0x1645
cmpl $0x63, %eax
jne 0x165c
callq 0x1080
movsd %xmm0, 0x5b0d(%rip)     # 0x7150
jmp 0x1657
cmpl $0x61, %eax
jne 0x166e
callq 0x1080
movsd %xmm0, 0x5af1(%rip)     # 0x7148
movb $0x1, %r15b
jmp 0x167f
cmpl $0x68, %eax
je 0x1901
cmpl $0x76, %eax
je 0x18e3
xorl %r15d, %r15d
leaq 0x2a77(%rip), %rdi      # 0x40ef
xorl %eax, %eax
callq 0x1934
testb %r13b, %r13b
sete %al
andb %r15b, %al
movzbl %al, %eax
addl %eax, %r12d
incl %r12d
cmpl %ebx, %r12d
jl 0x1604
subl %r12d, %ebx
jne 0x16ab
movq 0x5932(%rip), %rax      # 0x6fd8
movq (%rax), %rbx
jmp 0x16cf
cmpl $0x2, %ebx
je 0x16db
cmpl $0x1, %ebx
jne 0x192c
movslq %r12d, %rax
movq (%r14,%rax,8), %rdi
leaq 0x2f13(%rip), %rsi      # 0x45da
callq 0x19ce
movq %rax, %rbx
movq 0x58fa(%rip), %rax      # 0x6fd0
movq (%rax), %r14
jmp 0x1705
movslq %r12d, %r15
movq (%r14,%r15,8), %rdi
leaq 0x2ef1(%rip), %rsi      # 0x45da
callq 0x19ce
movq %rax, %rbx
movq 0x8(%r14,%r15,8), %rdi
leaq 0x2954(%rip), %rsi      # 0x4051
callq 0x19ce
movq %rax, %r14
callq 0x1c3f
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x2065
cmpl $0x1, (%r15)
je 0x172e
leaq 0x2985(%rip), %rdi      # 0x40ac
xorl %eax, %eax
callq 0x1934
leaq 0x2998(%rip), %rdx      # 0x40cd
movq %r14, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x2b00
cmpl $0x0, 0xc(%r15)
jle 0x18c2
leaq 0x2b29(%rip), %r13      # 0x427d
xorl %r12d, %r12d
movss 0x5a31(%rip), %xmm0     # 0x7190
movss %xmm0, 0x5a19(%rip)     # 0x7180
movss 0x5a29(%rip), %xmm0     # 0x7198
movss %xmm0, 0x5a19(%rip)     # 0x7190
movss 0x5a21(%rip), %xmm0     # 0x71a0
movss %xmm0, 0x5a11(%rip)     # 0x7198
movss 0x5a21(%rip), %xmm0     # 0x71b0
movss %xmm0, 0x5a09(%rip)     # 0x71a0
movl 0x8(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x1623(%rip), %rcx      # 0x2dcb
callq 0x2568
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x284c(%rip), %xmm0     # 0x4008
divsd 0x284c(%rip), %xmm0     # 0x4010
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x59e0(%rip)     # 0x71b0
movss 0x59f0(%rip), %xmm1     # 0x71c8
xorps %xmm2, %xmm2
cvtss2sd 0x59dd(%rip), %xmm2     # 0x71c0
movss %xmm1, 0x59d5(%rip)     # 0x71c0
movss 0x59dd(%rip), %xmm3     # 0x71d0
movss %xmm3, 0x59cd(%rip)     # 0x71c8
movss 0x59dd(%rip), %xmm4     # 0x71e0
addss 0x5975(%rip), %xmm0     # 0x7180
movss %xmm4, 0x59bd(%rip)     # 0x71d0
movss 0x5975(%rip), %xmm5     # 0x7190
addss 0x597d(%rip), %xmm5     # 0x71a0
mulss 0x2815(%rip), %xmm5     # 0x4040
addss %xmm0, %xmm5
movss 0x5961(%rip), %xmm0     # 0x7198
mulss 0x2805(%rip), %xmm0     # 0x4044
addss %xmm5, %xmm0
cvtss2sd %xmm0, %xmm0
mulsd 0x27c9(%rip), %xmm2     # 0x4018
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
mulsd 0x27be(%rip), %xmm0     # 0x4020
addsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtss2sd %xmm3, %xmm1
mulsd 0x27b3(%rip), %xmm1     # 0x4028
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm4, %xmm0
mulsd 0x27a8(%rip), %xmm0     # 0x4030
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x5948(%rip)     # 0x71e0
cvtss2sd %xmm0, %xmm0
mulsd 0x2794(%rip), %xmm0     # 0x4038
cvttsd2si %xmm0, %edx
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1140
incl %r12d
cmpl 0xc(%r15), %r12d
jl 0x1757
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 0x584e(%rip), %rsi      # 0x7138
movq 0x584f(%rip), %rdx      # 0x7140
leaq 0x27e8(%rip), %rdi      # 0x40e0
xorl %eax, %eax
callq 0x10b0
jmp 0x1925
leaq 0x2801(%rip), %rdi      # 0x4109
callq 0x1070
leaq 0x2805(%rip), %rdi      # 0x4119
callq 0x1070
leaq 0x2813(%rip), %rdi      # 0x4133
callq 0x1070
xorl %edi, %edi
callq 0x1200
callq 0x1260
nopl (%rax)