// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %r12
movslq %r12d, %r15
cmpl %r12d, %ebx
jle 0x13f5
movq (%r14,%r15,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x13f5
movb 0x2(%rsi), %r13b
testb %r13b, %r13b
je 0x1387
leaq 0x2(%rsi), %rdi
jmp 0x138c
movq 0x8(%r14,%r15,8), %rdi
movzbl 0x1(%rsi), %eax
cmpl $0x61, %eax
je 0x13bf
cmpl $0x63, %eax
je 0x13ce
cmpl $0x68, %eax
je 0x1623
cmpl $0x76, %eax
je 0x1649
xorl %r15d, %r15d
leaq 0x2d39(%rip), %rdi      # 0x40ef
xorl %eax, %eax
callq 0x1690
jmp 0x13de
callq 0x1080
movsd %xmm0, 0x5d7c(%rip)     # 0x7148
jmp 0x13db
callq 0x1080
movsd %xmm0, 0x5d75(%rip)     # 0x7150
movb $0x1, %r15b
testb %r13b, %r13b
sete %al
andb %r15b, %al
movzbl %al, %eax
addl %eax, %r12d
incl %r12d
jmp 0x1363
subl %r12d, %ebx
jne 0x1406
movq 0x5bd7(%rip), %rax      # 0x6fd8
movq (%rax), %rbx
jmp 0x1427
cmpl $0x2, %ebx
je 0x1433
cmpl $0x1, %ebx
jne 0x166c
movq (%r14,%r15,8), %rdi
leaq 0x31bb(%rip), %rsi      # 0x45da
callq 0x17c0
movq %rax, %rbx
movq 0x5ba2(%rip), %rax      # 0x6fd0
movq (%rax), %r14
jmp 0x145a
movq (%r14,%r15,8), %rdi
leaq 0x319c(%rip), %rsi      # 0x45da
callq 0x17c0
movq %rax, %rbx
movq 0x8(%r14,%r15,8), %rdi
leaq 0x2bff(%rip), %rsi      # 0x4051
callq 0x17c0
movq %rax, %r14
callq 0x1a1c
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x1d81
cmpl $0x1, (%r15)
je 0x1483
leaq 0x2c30(%rip), %rdi      # 0x40ac
xorl %eax, %eax
callq 0x1690
leaq 0x2c43(%rip), %rdx      # 0x40cd
movq %r14, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x2790
leaq 0x2ddf(%rip), %r13      # 0x427d
xorl %r12d, %r12d
cmpl 0xc(%r15), %r12d
jge 0x1602
movss 0x5cdd(%rip), %xmm0     # 0x7190
movss %xmm0, 0x5cc5(%rip)     # 0x7180
movss 0x5cd5(%rip), %xmm0     # 0x7198
movss %xmm0, 0x5cc5(%rip)     # 0x7190
movss 0x5ccd(%rip), %xmm0     # 0x71a0
movss %xmm0, 0x5cbd(%rip)     # 0x7198
movss 0x5ccd(%rip), %xmm0     # 0x71b0
movss %xmm0, 0x5cb5(%rip)     # 0x71a0
movl 0x8(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x1521(%rip), %rcx      # 0x2a1d
callq 0x2256
cvtsi2sd %eax, %xmm0
mulsd 0x2afb(%rip), %xmm0     # 0x4008
divsd 0x2afb(%rip), %xmm0     # 0x4010
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x5c8f(%rip)     # 0x71b0
movss 0x5c9f(%rip), %xmm1     # 0x71c8
cvtss2sd 0x5c8f(%rip), %xmm2     # 0x71c0
movss %xmm1, 0x5c87(%rip)     # 0x71c0
movss 0x5c8f(%rip), %xmm3     # 0x71d0
movss %xmm3, 0x5c7f(%rip)     # 0x71c8
movss 0x5c8f(%rip), %xmm4     # 0x71e0
addss 0x5c27(%rip), %xmm0     # 0x7180
movss %xmm4, 0x5c6f(%rip)     # 0x71d0
movss 0x5c27(%rip), %xmm5     # 0x7190
addss 0x5c2f(%rip), %xmm5     # 0x71a0
mulss 0x2ac7(%rip), %xmm5     # 0x4040
addss %xmm0, %xmm5
movss 0x5c13(%rip), %xmm0     # 0x7198
mulss 0x2ab7(%rip), %xmm0     # 0x4044
addss %xmm5, %xmm0
cvtss2sd %xmm0, %xmm0
mulsd 0x2a7b(%rip), %xmm2     # 0x4018
addsd %xmm0, %xmm2
cvtss2sd %xmm1, %xmm0
mulsd 0x2a73(%rip), %xmm0     # 0x4020
addsd %xmm2, %xmm0
cvtss2sd %xmm3, %xmm1
mulsd 0x2a6b(%rip), %xmm1     # 0x4028
addsd %xmm0, %xmm1
cvtss2sd %xmm4, %xmm0
mulsd 0x2a63(%rip), %xmm0     # 0x4030
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x5c03(%rip)     # 0x71e0
cvtss2sd %xmm0, %xmm0
mulsd 0x2a4f(%rip), %xmm0     # 0x4038
cvttsd2si %xmm0, %edx
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1140
incl %r12d
jmp 0x14a1
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
leaq 0x2adf(%rip), %rdi      # 0x4109
callq 0x1070
leaq 0x2ae3(%rip), %rdi      # 0x4119
callq 0x1070
leaq 0x2af1(%rip), %rdi      # 0x4133
callq 0x1070
jmp 0x1665
movq 0x5ae8(%rip), %rsi      # 0x7138
movq 0x5ae9(%rip), %rdx      # 0x7140
leaq 0x2a82(%rip), %rdi      # 0x40e0
xorl %eax, %eax
callq 0x10b0
xorl %edi, %edi
callq 0x1200
movq 0x5985(%rip), %rax      # 0x6ff8
movq (%rax), %rcx
leaq 0x29d6(%rip), %rdi      # 0x4053
pushq $0x58
popq %rsi
pushq $0x1
popq %rdx
callq 0x1210
pushq $-0x1
popq %rdi
callq 0x1200