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

    FILE *in,*out,*nfp;
    RRA *h;

    argIndex = processOptions(argc,argv);

    if (argc-argIndex == 1)
        {
        nfp = OpenFile(argv[argIndex],"r");
        in = stdin;
        out = stdout;
        }
    else if (argc-argIndex == 2)
        {
        nfp = OpenFile(argv[argIndex],"r");
        in = OpenFile(argv[argIndex+1],"r");
        out = stdout;
        }
    else if (argc-argIndex == 3)
        {
        nfp = OpenFile(argv[argIndex],"r");
        in = OpenFile(argv[argIndex+1],"r");
        out = OpenFile(argv[argIndex+2],"w");
        }
    else
        {
        printf("usage: %s\n [-h] NOTES_FILE [INPUT_RRA [OUTPUT_RRA]\n",argv[0]);
        exit(-1);
        }

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

    SampleRate = h->sampleRate;

    if (h->channels != 1)
        Fatal("%s requires a mono audio file\n",argv[0]);

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

    if (Report) ReportFP = OpenFile("changes.rpt","w");

    readLegalNotes(nfp);

    LongestCycle = SampleRate / 100 * OctavesAllowed;
    ShortestCycle = SampleRate / 1000;

    MinFactor = 1 / (1 + (ST - 1) * Reach * Bias);
    MaxFactor = 1 + (ST - 1) * Reach * Bias;

    WindowSize = (CycleCount + 1) * LongestCycle;

    if (AbsoluteThreshold == 0)
        AbsoluteThreshold = (int) (pow(2,h->bitsPerSample - 1) / 200);
    if (RelativeThreshold == 0.0)
        RelativeThreshold = 0.20;

    //printf("MinFactor is %f\n",MinFactor);
    //printf("MaxFactor is %f\n",MaxFactor);
    //printf("AbsoluteThreshold is %d\n",AbsoluteThreshold);
    //getchar();

    if ((Window = malloc(sizeof(int) * WindowSize)) == 0)
        Fatal("correct: out of memory\n");

    processData(in,out,h);

    fclose(out);
    fclose(in);
    fclose(nfp);

    if (Report)
        {
        fprintf(ReportFP,"%d samples read\n",SamplesRead);
        fprintf(ReportFP,"%d samples written\n",SamplesWritten);
        fprintf(ReportFP,"%.2f%% samples repitched\n",
            100.0 * SamplesRepitched / (double) SamplesRead);
        fprintf(ReportFP,"%d samples (%.3f seconds) %s\n",
            SampleDelta,SampleDelta / (double) SampleRate,
            SampleDelta < 0? "long" : "short");
        fclose(ReportFP);
        assert(SamplesStored == 0);
        }

    return 0;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movl %edi, %r14d
pushq $0x1
popq %r12
movl %r14d, %eax
movslq %r12d, %r15
subl %r12d, %eax
jle 0x2465
movq (%rbx,%r15,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x2465
movb 0x2(%rsi), %r13b
testb %r13b, %r13b
je 0x23c2
leaq 0x2(%rsi), %rdi
jmp 0x23c7
movq 0x8(%rbx,%r15,8), %rdi
movzbl 0x1(%rsi), %eax
cmpl $0x52, %eax
je 0x2425
cmpl $0x62, %eax
je 0x243e
cmpl $0x6c, %eax
je 0x2418
cmpl $0x6f, %eax
je 0x2431
cmpl $0x72, %eax
je 0x2409
cmpl $0x68, %eax
je 0x31df
cmpl $0x76, %eax
je 0x332f
xorl %r15d, %r15d
leaq 0x328d(%rip), %rdi      # 0x568d
xorl %eax, %eax
callq 0x3560
jmp 0x244e
callq 0x2090
movsd %xmm0, 0x64d2(%rip)     # 0x88e8
jmp 0x244b
callq 0x2220
movl %eax, 0x64d9(%rip)      # 0x88fc
jmp 0x244b
movb $0x1, 0x64f8(%rip)      # 0x8924
xorl %r15d, %r15d
jmp 0x244e
callq 0x2220
movl %eax, 0x64a4(%rip)      # 0x88e0
jmp 0x244b
callq 0x2090
movsd %xmm0, 0x64a5(%rip)     # 0x88f0
movb $0x1, %r15b
testb %r13b, %r13b
sete %al
andb %r15b, %al
movzbl %al, %eax
addl %eax, %r12d
incl %r12d
jmp 0x2397
cmpl $0x3, %eax
je 0x24cb
cmpl $0x2, %eax
je 0x2498
cmpl $0x1, %eax
jne 0x3390
movq (%rbx,%r15,8), %rdi
leaq 0x35fb(%rip), %rsi      # 0x5a7e
callq 0x3690
movq %rax, -0x80(%rbp)
movq 0x5b45(%rip), %rax      # 0x7fd8
movq (%rax), %r14
jmp 0x24bf
movq (%rbx,%r15,8), %rdi
leaq 0x35db(%rip), %r14      # 0x5a7e
movq %r14, %rsi
callq 0x3690
movq %rax, -0x80(%rbp)
movq 0x8(%rbx,%r15,8), %rdi
movq %r14, %rsi
callq 0x3690
movq %rax, %r14
movq 0x5b0a(%rip), %rax      # 0x7fd0
movq (%rax), %rax
jmp 0x2503
movq (%rbx,%r15,8), %rdi
leaq 0x35a8(%rip), %r14      # 0x5a7e
movq %r14, %rsi
callq 0x3690
movq %rax, -0x80(%rbp)
movq 0x8(%rbx,%r15,8), %rdi
movq %r14, %rsi
callq 0x3690
movq %rax, %r14
movq 0x10(%rbx,%r15,8), %rdi
leaq 0x2d3f(%rip), %rsi      # 0x523d
callq 0x3690
movq %rax, -0x38(%rbp)
callq 0x38ec
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3c51
movl 0x4(%r15), %eax
movl %eax, 0x63fa(%rip)      # 0x8920
movq %r15, -0x68(%rbp)
cmpl $0x1, (%r15)
je 0x2541
movq (%rbx), %rsi
leaq 0x2d39(%rip), %rdi      # 0x5273
xorl %eax, %eax
callq 0x3560
movq %r14, -0x70(%rbp)
leaq 0x2d46(%rip), %rdx      # 0x5292
movq -0x38(%rbp), %rdi
movq -0x68(%rbp), %rsi
xorl %ecx, %ecx
callq 0x4660
cmpb $0x1, 0x63c2(%rip)      # 0x8924
movq -0x80(%rbp), %r15
jne 0x2582
leaq 0x2d37(%rip), %rdi      # 0x52a6
leaq 0x2cc7(%rip), %rsi      # 0x523d
callq 0x3690
movq %rax, 0x63a6(%rip)      # 0x8928
leaq 0x30a4(%rip), %rbx      # 0x562d
leaq -0x90(%rbp), %r13
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2070
andl $0x0, 0x63d5(%rip)      # 0x897c
leaq 0x6be2(%rip), %r14      # 0x9190
movq %r15, %rdi
callq 0x2190
testl %eax, %eax
jne 0x25e7
movq -0x90(%rbp), %rax
movslq 0x63b4(%rip), %rcx      # 0x897c
leal 0x1(%rcx), %edx
movl %edx, 0x63ab(%rip)      # 0x897c
movq %rax, (%r14,%rcx,8)
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2070
jmp 0x25ae
movl 0x638f(%rip), %eax      # 0x897c
movl %eax, -0x60(%rbp)
pushq $0x1
popq %r12
xorl %r13d, %r13d
movslq -0x60(%rbp), %rax
cmpq %rax, %r13
jge 0x2667
xorl %r15d, %r15d
leaq 0x5eb6(%rip), %rbx      # 0x84c0
xorl %ecx, %ecx
testl %ecx, %ecx
jne 0x263f
cmpq $0x6b, %r15
ja 0x263f
movq (%r14,%r13,8), %rdi
movq (%rbx), %rsi
callq 0x2150
xorl %ecx, %ecx
testl %eax, %eax
jne 0x2636
leaq 0x6351(%rip), %rax      # 0x8980
movl %r15d, (%rax,%r13,4)
movl %r12d, %ecx
incq %r15
addq $0x8, %rbx
jmp 0x260c
testl %ecx, %ecx
jne 0x265e
movq (%r14,%r13,8), %rsi
leaq 0x2fe3(%rip), %rdi      # 0x5631
xorl %eax, %eax
callq 0x3560
movl 0x6321(%rip), %eax      # 0x897c
movl %eax, -0x60(%rbp)
incq %r13
movq -0x80(%rbp), %r15
jmp 0x25f7
movl 0x62b3(%rip), %ecx      # 0x8920
pushq $0x64
popq %rsi
movl %ecx, %eax
cltd
idivl %esi
movl %eax, %esi
imull 0x6262(%rip), %esi      # 0x88e0
movl %esi, 0x62ac(%rip)      # 0x8930
movl $0x3e8, %edi            # imm = 0x3E8
movl %ecx, %eax
cltd
idivl %edi
movl %eax, 0x62a0(%rip)      # 0x8934
movsd 0x624c(%rip), %xmm0     # 0x88e8
mulsd 0x2964(%rip), %xmm0     # 0x5008
mulsd 0x6244(%rip), %xmm0     # 0x88f0
movsd 0x295c(%rip), %xmm1     # 0x5010
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x6274(%rip)     # 0x8938
movsd %xmm0, 0x6274(%rip)     # 0x8940
imull $0xb, %esi, %eax
movl %eax, 0x6273(%rip)      # 0x8948
cmpl $0x0, 0x6270(%rip)      # 0x894c
jne 0x2706
movq -0x68(%rbp), %rax
movl 0x8(%rax), %edi
decl %edi
movsd 0x2921(%rip), %xmm0     # 0x5010
callq 0x2050
divsd 0x291c(%rip), %xmm0     # 0x5018
cvttsd2si %xmm0, %eax
movl %eax, 0x6246(%rip)      # 0x894c
movsd 0x6242(%rip), %xmm0     # 0x8950
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x272b
jp 0x272b
movabsq $0x3fc999999999999a, %rax # imm = 0x3FC999999999999A
movq %rax, 0x6225(%rip)      # 0x8950
movslq 0x6216(%rip), %rdi      # 0x8948
shlq $0x2, %rdi
callq 0x21b0
movq %rax, 0x6216(%rip)      # 0x8958
testq %rax, %rax
jne 0x2755
leaq 0x2b64(%rip), %rdi      # 0x52b2
xorl %eax, %eax
callq 0x3560
xorl %r14d, %r14d
leaq 0x218e(%rip), %rbx      # 0x48ed
movq -0x70(%rbp), %r12
cmpl 0x61de(%rip), %r14d     # 0x8948
jge 0x27c5
movq -0x68(%rbp), %rax
movl 0x8(%rax), %edx
movq %r12, %rdi
movq -0x38(%rbp), %rsi
movq %rbx, %rcx
callq 0x4126
movq 0x61cf(%rip), %rcx      # 0x8958
movslq 0x61e4(%rip), %rdx      # 0x8974
movl %eax, (%rcx,%rdx,4)
movq %r12, %rdi
callq 0x2190
testl %eax, %eax
jne 0x27c0
incl 0x61bb(%rip)            # 0x8960
incl 0x61c5(%rip)            # 0x8970
movl 0x61c3(%rip), %eax      # 0x8974
incl %eax
cltd
idivl 0x618e(%rip)            # 0x8948
movl %edx, 0x61b4(%rip)      # 0x8974
incl %r14d
jmp 0x2763
movl 0x61a5(%rip), %eax      # 0x8970
addl 0x6193(%rip), %eax      # 0x8964
addl 0x6195(%rip), %eax      # 0x896c
cmpl 0x6183(%rip), %eax      # 0x8960
jne 0x3352
movq -0x70(%rbp), %rbx
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x33a9
movq %rbx, %rdi
callq 0x2190
testl %eax, %eax
je 0x28fe
movq -0x38(%rbp), %rdi
callq 0x20b0
movq -0x70(%rbp), %rdi
callq 0x20b0
movq %r15, %rdi
callq 0x20b0
cmpb $0x1, 0x60fc(%rip)      # 0x8924
jne 0x28ed
movq 0x60f3(%rip), %rdi      # 0x8928
movl 0x6125(%rip), %edx      # 0x8960
leaq 0x2a88(%rip), %rsi      # 0x52ca
xorl %eax, %eax
callq 0x2170
movq 0x60d8(%rip), %rdi      # 0x8928
movl 0x610e(%rip), %edx      # 0x8964
leaq 0x2a7e(%rip), %rsi      # 0x52db
xorl %eax, %eax
callq 0x2170
cvtsi2sdl 0x60fc(%rip), %xmm0 # 0x8968
mulsd 0x27cc(%rip), %xmm0     # 0x5040
movq 0x60ad(%rip), %rdi      # 0x8928
cvtsi2sdl 0x60dd(%rip), %xmm1 # 0x8960
divsd %xmm1, %xmm0
leaq 0x2a61(%rip), %rsi      # 0x52ef
movb $0x1, %al
callq 0x2170
movq 0x608c(%rip), %rdi      # 0x8928
movl 0x60ca(%rip), %edx      # 0x896c
cvtsi2sd %edx, %xmm0
cvtsi2sdl 0x6072(%rip), %xmm1 # 0x8920
divsd %xmm1, %xmm0
testl %edx, %edx
leaq 0x2a6c(%rip), %rax      # 0x5327
leaq 0x2a6a(%rip), %rcx      # 0x532c
cmovsq %rax, %rcx
leaq 0x2a3c(%rip), %rsi      # 0x5309
movb $0x1, %al
callq 0x2170
movq 0x604d(%rip), %rdi      # 0x8928
callq 0x20b0
cmpl $0x0, 0x6089(%rip)      # 0x8970
jne 0x3371
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x585b(%rip), %r14      # 0x8160
xorpd %xmm6, %xmm6
movapd 0x273f(%rip), %xmm7     # 0x5050
movl 0x6055(%rip), %eax      # 0x896c
addl 0x6047(%rip), %eax      # 0x8964
movl 0x603d(%rip), %ecx      # 0x8960
cmpl %ecx, %eax
je 0x2807
addl 0x603f(%rip), %eax      # 0x8970
cmpl %ecx, %eax
jne 0x31a1
movq 0x6018(%rip), %rsi      # 0x8958
movl 0x6032(%rip), %ecx      # 0x8978
movl 0x5ffc(%rip), %edi      # 0x8948
movl %ecx, %eax
cltd
idivl %edi
movslq %edx, %rax
cmpl $0x0, (%rsi,%rax,4)
jne 0x3182
incl %ecx
movl %ecx, %eax
cltd
idivl %edi
movslq %edx, %rax
cmpl $0x0, (%rsi,%rax,4)
jle 0x3182
cmpb $0x1, 0x5fab(%rip)      # 0x8924
jne 0x29a2
movl 0x5fb3(%rip), %edx      # 0x8934
movq 0x5fa0(%rip), %rdi      # 0x8928
leaq 0x2acd(%rip), %rsi      # 0x545c
xorl %eax, %eax
callq 0x2170
movapd 0x26b2(%rip), %xmm7     # 0x5050
xorpd %xmm6, %xmm6
xorpd %xmm0, %xmm0
movsd %xmm0, -0x78(%rbp)
xorl %r15d, %r15d
movl -0x3c(%rbp), %eax
movl %eax, -0x30(%rbp)
xorl %eax, %eax
movl $0x0, -0x3c(%rbp)
movsd 0x265b(%rip), %xmm1     # 0x5020
movsd %xmm1, -0x88(%rbp)
movl %eax, %ebx
movl %eax, -0x4c(%rbp)
movl 0x5f70(%rip), %esi      # 0x8948
leal -0x1(%rsi), %edi
movq 0x5f76(%rip), %r8       # 0x8958
movl 0x5f8f(%rip), %r9d      # 0x8978
leal 0x1(%r9), %r10d
addl $0x2, %r9d
movl %ebx, %ecx
movl %r15d, %r11d
leal 0x1(%rcx), %ebx
cmpl %edi, %ebx
jge 0x2a3f
leal (%r9,%rcx), %eax
cltd
idivl %esi
movslq %edx, %rax
movl (%r8,%rax,4), %r12d
movl %r12d, %r15d
negl %r15d
cmovsl %r12d, %r15d
cmpl %r11d, %r15d
cmovlel %r11d, %r15d
addl %r10d, %ecx
movl %ecx, %eax
cltd
idivl %esi
movslq %edx, %rax
cmpl $0x0, (%r8,%rax,4)
movl %ebx, %ecx
movl %r15d, %r11d
jne 0x29f6
movl %ebx, %ecx
movl %r15d, %r11d
testl %r12d, %r12d
jle 0x29f6
jmp 0x2a44
xorl %ebx, %ebx
movl %r11d, %r15d
movb 0x5eda(%rip), %al       # 0x8924
testl %ebx, %ebx
je 0x2e3e
cmpl 0x5ef3(%rip), %r15d     # 0x894c
jl 0x2e3e
cmpl 0x5ecb(%rip), %ebx      # 0x8930
jge 0x2e3e
testb $0x1, %al
je 0x2a92
movq 0x5eb2(%rip), %rdi      # 0x8928
leaq 0x29fd(%rip), %rsi      # 0x547a
movl %ebx, %edx
xorl %eax, %eax
callq 0x2170
movapd 0x25c2(%rip), %xmm7     # 0x5050
xorpd %xmm6, %xmm6
movslq 0x5ee3(%rip), %rax      # 0x897c
cvtsi2sdl 0x5e7f(%rip), %xmm0 # 0x8920
cvtsi2sd %ebx, %xmm8
divsd %xmm8, %xmm0
testq %rax, %rax
jle 0x2b9e
movl 0x5e26(%rip), %ecx      # 0x88e0
movsd 0x5e76(%rip), %xmm1     # 0x8938
movsd 0x5e76(%rip), %xmm2     # 0x8940
testl %ecx, %ecx
movl $0x0, %edx
cmovlel %edx, %ecx
negl %ecx
xorl %esi, %esi
cmpq %rax, %rsi
je 0x2cf3
leaq 0x5e98(%rip), %rdx      # 0x8980
movl (%rdx,%rsi,4), %r12d
movslq %r12d, %r13
pushq $0x1
popq %rdx
leal (%rcx,%rdx), %edi
cmpl $0x1, %edi
je 0x2b1c
movsd (%r14,%r13,8), %xmm4
cvtsi2sd %edx, %xmm3
mulsd %xmm0, %xmm3
divsd %xmm3, %xmm4
ucomisd %xmm1, %xmm4
jbe 0x2b18
ucomisd %xmm4, %xmm2
ja 0x2b21
incl %edx
jmp 0x2af2
incq %rsi
jmp 0x2ad8
cmpb $0x1, 0x5dfc(%rip)      # 0x8924
jne 0x2c68
movsd %xmm8, -0x48(%rbp)
cmpl $0x2, %edx
movsd %xmm4, -0x60(%rbp)
jb 0x2b58
movq 0x5de3(%rip), %rdi      # 0x8928
leaq 0x29ad(%rip), %rsi      # 0x54f9
xorl %eax, %eax
callq 0x2170
movsd -0x60(%rbp), %xmm4
movq 0x5dc9(%rip), %rdi      # 0x8928
leaq 0x595a(%rip), %rax      # 0x84c0
movq (%rax,%r13,8), %rcx
leaq 0x29a8(%rip), %rsi      # 0x5519
movl %ebx, %edx
movapd %xmm4, %xmm0
movb $0x1, %al
callq 0x2170
movsd -0x60(%rbp), %xmm4
movl %r12d, -0x30(%rbp)
xorpd %xmm6, %xmm6
movapd 0x24bd(%rip), %xmm7     # 0x5050
movsd -0x48(%rbp), %xmm8
jmp 0x2c72
movsd 0x5d92(%rip), %xmm1     # 0x8938
movsd 0x5d92(%rip), %xmm2     # 0x8940
movq %r14, %rax
xorl %ecx, %ecx
pushq $-0x1
popq %r12
movsd 0x2461(%rip), %xmm3     # 0x5020
cmpq $0x6c, %rcx
je 0x2c01
movsd (%rax), %xmm4
movapd %xmm4, %xmm5
divsd %xmm0, %xmm5
ucomisd %xmm1, %xmm5
jbe 0x2bf8
ucomisd %xmm5, %xmm2
jbe 0x2bf8
subsd %xmm0, %xmm4
andpd %xmm7, %xmm4
ucomisd %xmm3, %xmm6
ja 0x2bf1
ucomisd %xmm4, %xmm3
jbe 0x2bf8
movl %ecx, %r12d
movapd %xmm4, %xmm3
incq %rcx
addq $0x8, %rax
jmp 0x2bbf
testl %r12d, %r12d
js 0x2c6e
movl %r12d, %eax
movsd (%r14,%rax,8), %xmm1
movapd %xmm1, %xmm4
divsd %xmm0, %xmm4
cmpb $0x1, 0x5d06(%rip)      # 0x8924
jne 0x2c68
movq 0x5d01(%rip), %rdi      # 0x8928
leaq 0x5892(%rip), %rcx      # 0x84c0
movq (%rcx,%rax,8), %rcx
leaq 0x292f(%rip), %rsi      # 0x5568
movl %ebx, %edx
movapd %xmm4, %xmm2
movb $0x3, %al
movsd %xmm8, -0x48(%rbp)
movsd %xmm4, -0x60(%rbp)
callq 0x2170
movsd -0x60(%rbp), %xmm4
movsd -0x48(%rbp), %xmm8
movapd 0x23ec(%rip), %xmm7     # 0x5050
xorpd %xmm6, %xmm6
movl %r12d, -0x30(%rbp)
jmp 0x2c72
xorpd %xmm4, %xmm4
ucomisd %xmm6, %xmm4
jne 0x2c7e
jnp 0x29d2
movq 0x5cd3(%rip), %rsi      # 0x8958
movl 0x5ced(%rip), %edi      # 0x8978
testl %ebx, %ebx
movl $0x0, %r8d
cmovgl %ebx, %r8d
movl 0x5caa(%rip), %r9d      # 0x8948
xorpd %xmm0, %xmm0
movl %ebx, %r10d
pushq $0x1
popq %r11
cmpl $0xb, %r11d
je 0x2d3e
movl %r8d, %r12d
movl %edi, %ecx
subl $0x1, %r12d
jb 0x2ceb
leal (%r10,%rcx), %eax
cltd
idivl %r9d
movslq %edx, %rax
movl (%rsi,%rax,4), %r13d
movl %ecx, %eax
cltd
idivl %r9d
movslq %edx, %rax
subl (%rsi,%rax,4), %r13d
cvtsi2sd %r13d, %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incl %ecx
jmp 0x2cb8
incl %r11d
addl %ebx, %r10d
jmp 0x2ca9
xorpd %xmm4, %xmm4
cmpb $0x1, 0x5c26(%rip)      # 0x8924
jne 0x2c72
movq 0x5c1d(%rip), %rcx      # 0x8928
leaq 0x283d(%rip), %rdi      # 0x554f
pushq $0x18
popq %rsi
pushq $0x1
popq %rdx
movsd %xmm8, -0x48(%rbp)
callq 0x2240
xorpd %xmm4, %xmm4
movsd -0x48(%rbp), %xmm8
movapd 0x231b(%rip), %xmm7     # 0x5050
xorpd %xmm6, %xmm6
jmp 0x2c72
movsd %xmm4, -0x60(%rbp)
mulsd 0x22e4(%rip), %xmm8     # 0x5030
divsd %xmm8, %xmm0
movsd 0x22cf(%rip), %xmm1     # 0x5028
callq 0x20a0
movapd %xmm0, %xmm1
divsd 0x22ce(%rip), %xmm1     # 0x5038
movl -0x30(%rbp), %eax
cmpl 0x5b85(%rip), %eax      # 0x88f8
je 0x2d79
movapd %xmm0, %xmm1
cmpb $0x1, 0x5ba4(%rip)      # 0x8924
jne 0x2da7
movq 0x5b9f(%rip), %rdi      # 0x8928
leaq 0x2705(%rip), %rsi      # 0x5495
movl %ebx, %edx
movapd %xmm1, %xmm0
movb $0x1, %al
movsd %xmm1, -0x48(%rbp)
callq 0x2170
movsd -0x48(%rbp), %xmm1
xorpd %xmm6, %xmm6
ucomisd -0x88(%rbp), %xmm6
movapd 0x2295(%rip), %xmm7     # 0x5050
movsd -0x60(%rbp), %xmm2
ja 0x2dd4
movsd -0x88(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x29d2
cmpb $0x1, 0x5b49(%rip)      # 0x8924
movl %ebx, %eax
movl -0x30(%rbp), %ecx
movl %ecx, -0x3c(%rbp)
movsd %xmm2, -0x78(%rbp)
jne 0x29c5
movq 0x5b33(%rip), %rdi      # 0x8928
leaq 0x26bf(%rip), %rsi      # 0x54bb
movl %ebx, %edx
movapd %xmm1, %xmm0
movsd %xmm1, -0x48(%rbp)
movsd -0x88(%rbp), %xmm1
movb $0x2, %al
callq 0x2170
movsd -0x48(%rbp), %xmm1
movapd 0x222d(%rip), %xmm7     # 0x5050
xorpd %xmm6, %xmm6
movl %ebx, %eax
movl -0x30(%rbp), %ecx
movl %ecx, -0x3c(%rbp)
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x78(%rbp)
jmp 0x29c5
testb $0x1, %al
je 0x2e5e
movq 0x5adf(%rip), %rdi      # 0x8928
leaq 0x2697(%rip), %rsi      # 0x54e7
movl -0x4c(%rbp), %edx
xorl %eax, %eax
callq 0x2170
xorpd %xmm6, %xmm6
movl -0x4c(%rbp), %edi
testl %edi, %edi
movq -0x80(%rbp), %r15
je 0x2e91
movsd -0x78(%rbp), %xmm0
ucomisd %xmm6, %xmm0
jne 0x2ed5
jp 0x2ed5
cmpb $0x1, 0x5aa7(%rip)      # 0x8924
jne 0x2eb3
movq 0x5aa2(%rip), %rcx      # 0x8928
leaq 0x257a(%rip), %rdi      # 0x5407
pushq $0x20
jmp 0x2eaa
cmpb $0x1, 0x5a8c(%rip)      # 0x8924
jne 0x2eb3
movq 0x5a87(%rip), %rcx      # 0x8928
leaq 0x253f(%rip), %rdi      # 0x53e7
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
callq 0x2240
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x33a9
xorpd %xmm6, %xmm6
movapd 0x2180(%rip), %xmm7     # 0x5050
jmp 0x2911
movl 0x5a1d(%rip), %ecx      # 0x88f8
testl %ecx, %ecx
je 0x2f02
movl -0x3c(%rbp), %r8d
cmpl %r8d, %ecx
sete %dl
movl 0x6291(%rip), %eax      # 0x9180
testl %eax, %eax
setg %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x2f15
decl %eax
jmp 0x2f27
movl -0x3c(%rbp), %r8d
movl %r8d, 0x59eb(%rip)      # 0x88f8
movl 0x59e9(%rip), %eax      # 0x88fc
jmp 0x2f2f
cmpl %r8d, %ecx
je 0x2f35
movl %r8d, 0x59d7(%rip)      # 0x88f8
movl 0x59d5(%rip), %eax      # 0x88fc
movsd 0x20e1(%rip), %xmm0     # 0x5010
movl %eax, 0x624b(%rip)      # 0x9180
cvtsi2sd %edi, %xmm1
movsd %xmm1, -0x30(%rbp)
movsd %xmm0, -0x78(%rbp)
divsd %xmm0, %xmm1
addsd 0x20d9(%rip), %xmm1     # 0x5028
cvttsd2si %xmm1, %ebx
cmpb $0x1, 0x59ca(%rip)      # 0x8924
jne 0x2f94
movq 0x59c5(%rip), %rdi      # 0x8928
movslq %r8d, %rax
leaq 0x5553(%rip), %rcx      # 0x84c0
movq (%rcx,%rax,8), %rdx
leaq 0x2635(%rip), %rsi      # 0x55ad
movl -0x4c(%rbp), %ecx
movl %ebx, %r8d
movsd -0x78(%rbp), %xmm0
movb $0x1, %al
movapd %xmm1, -0x60(%rbp)
callq 0x2170
movapd -0x60(%rbp), %xmm1
cvttpd2dq %xmm1, %xmm0
cvtdq2pd %xmm0, %xmm0
movsd -0x30(%rbp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, -0x30(%rbp)
movq -0x38(%rbp), %rdi
leaq 0x2bf0(%rip), %rsi      # 0x5ba5
xorl %edx, %edx
xorl %eax, %eax
callq 0x2170
incl 0x59a0(%rip)            # 0x8964
pushq $0x1
popq %r15
movsd -0x30(%rbp), %xmm2
cmpl %ebx, %r15d
jge 0x3063
cvttsd2si %xmm2, %ecx
movq 0x5977(%rip), %rsi      # 0x8958
movl 0x5991(%rip), %edi      # 0x8978
leal (%rdi,%rcx), %eax
movl 0x5957(%rip), %r8d      # 0x8948
cltd
idivl %r8d
movslq %edx, %rax
movl (%rsi,%rax,4), %r9d
leal (%rdi,%rcx), %eax
incl %eax
cltd
idivl %r8d
movslq %edx, %rax
cvtsi2sd %r9d, %xmm0
cvttpd2dq %xmm2, %xmm1
movl (%rsi,%rax,4), %eax
cvtdq2pd %xmm1, %xmm1
movapd %xmm2, -0x60(%rbp)
movapd -0x60(%rbp), %xmm2
subsd %xmm1, %xmm2
subl %r9d, %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %edx
movq -0x38(%rbp), %rdi
leaq 0x2b61(%rip), %rsi      # 0x5ba5
xorl %eax, %eax
callq 0x2170
movapd -0x60(%rbp), %xmm2
incl 0x590e(%rip)            # 0x8964
addsd -0x30(%rbp), %xmm2
incl %r15d
jmp 0x2fcd
movsd -0x78(%rbp), %xmm0
ucomisd 0x1fa0(%rip), %xmm0     # 0x5010
movl -0x4c(%rbp), %esi
jne 0x3077
jnp 0x307d
addl %esi, 0x58eb(%rip)      # 0x8968
movl %esi, %eax
subl %ebx, %eax
addl %eax, 0x58e5(%rip)      # 0x896c
addsd 0x1f99(%rip), %xmm2     # 0x5028
cvttsd2si %xmm2, %eax
cmpl %eax, %esi
movq -0x80(%rbp), %r15
jne 0x31c0
testl %esi, %esi
movl $0x0, %eax
cmovlel %eax, %esi
subl $0x1, %esi
jb 0x312d
movl 0x58c4(%rip), %eax      # 0x8978
incl %eax
cltd
idivl 0x588b(%rip)            # 0x8948
movl %edx, 0x58b5(%rip)      # 0x8978
decl 0x58a7(%rip)            # 0x8970
movq -0x68(%rbp), %rax
movl 0x8(%rax), %edx
movq -0x70(%rbp), %r12
movl %esi, %r13d
movq %r12, %rdi
movq -0x38(%rbp), %rsi
leaq 0x1808(%rip), %rcx      # 0x48ed
callq 0x4126
movl %eax, %ebx
movq %r12, %rdi
callq 0x2190
movl %r13d, %esi
testl %eax, %eax
jne 0x30a9
incl 0x585f(%rip)            # 0x8960
incl 0x5869(%rip)            # 0x8970
movq 0x584a(%rip), %rax      # 0x8958
movslq 0x585f(%rip), %rcx      # 0x8974
movl %ebx, (%rax,%rcx,4)
leal 0x1(%rcx), %eax
cltd
idivl 0x5826(%rip)            # 0x8948
movl %edx, 0x584c(%rip)      # 0x8974
jmp 0x30a9
movq -0x70(%rbp), %rdi
callq 0x2190
testl %eax, %eax
xorpd %xmm6, %xmm6
movapd 0x1f0c(%rip), %xmm7     # 0x5050
je 0x2911
movl 0x5820(%rip), %ebx      # 0x8970
testl %ebx, %ebx
movl $0x0, %eax
cmovlel %eax, %ebx
subl $0x1, %ebx
jb 0x2911
movq -0x70(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x34a2
movapd 0x1ed4(%rip), %xmm7     # 0x5050
xorpd %xmm6, %xmm6
jmp 0x315a
leaq 0x2242(%rip), %rdi      # 0x53cb
leaq 0x21b5(%rip), %rsi      # 0x5345
leaq 0x220c(%rip), %rcx      # 0x53a3
movl $0x14c, %edx            # imm = 0x14C
callq 0x20f0
leaq 0x21bf(%rip), %rdi      # 0x5367
leaq 0x2196(%rip), %rsi      # 0x5345
leaq 0x21ed(%rip), %rcx      # 0x53a3
movl $0x14b, %edx            # imm = 0x14B
callq 0x20f0
leaq 0x2426(%rip), %rdi      # 0x55ed
leaq 0x2177(%rip), %rsi      # 0x5345
leaq 0x2431(%rip), %rcx      # 0x5606
movl $0x2aa, %edx            # imm = 0x2AA
callq 0x20f0
leaq 0x24c1(%rip), %rdi      # 0x56a7
callq 0x2080
leaq 0x24c8(%rip), %rdi      # 0x56ba
callq 0x2080
leaq 0x24e8(%rip), %rdi      # 0x56e6
callq 0x2080
leaq 0x24f1(%rip), %rdi      # 0x56fb
callq 0x2080
leaq 0x2502(%rip), %rdi      # 0x5718
callq 0x2080
leaq 0x2538(%rip), %rdi      # 0x575a
callq 0x2080
movsd 0x56c1(%rip), %xmm0     # 0x88f0
leaq 0x2427(%rip), %rbx      # 0x565d
movq %rbx, %rdi
movb $0x1, %al
callq 0x20d0
leaq 0x2554(%rip), %rdi      # 0x579b
callq 0x2080
leaq 0x2562(%rip), %rdi      # 0x57b5
callq 0x2080
leaq 0x259a(%rip), %rdi      # 0x57f9
callq 0x2080
leaq 0x25c1(%rip), %rdi      # 0x582c
callq 0x2080
movl 0x5686(%rip), %esi      # 0x88fc
leaq 0x23f8(%rip), %r14      # 0x5675
movq %r14, %rdi
xorl %eax, %eax
callq 0x20d0
leaq 0x25db(%rip), %rdi      # 0x5869
callq 0x2080
leaq 0x25ff(%rip), %rdi      # 0x5899
callq 0x2080
leaq 0x2630(%rip), %rdi      # 0x58d6
callq 0x2080
leaq 0x2664(%rip), %rdi      # 0x5916
callq 0x2080
movl 0x5623(%rip), %esi      # 0x88e0
movq %r14, %rdi
xorl %eax, %eax
callq 0x20d0
leaq 0x2685(%rip), %rdi      # 0x5953
callq 0x2080
leaq 0x26a6(%rip), %rdi      # 0x5980
callq 0x2080
leaq 0x26d3(%rip), %rdi      # 0x59b9
callq 0x2080
leaq 0x26fa(%rip), %rdi      # 0x59ec
callq 0x2080
leaq 0x2721(%rip), %rdi      # 0x5a1f
callq 0x2080
movsd 0x55dd(%rip), %xmm0     # 0x88e8
movq %rbx, %rdi
movb $0x1, %al
callq 0x20d0
leaq 0x2740(%rip), %rdi      # 0x5a5c
callq 0x2080
leaq 0x2758(%rip), %rdi      # 0x5a80
callq 0x2080
jmp 0x334b
movq 0x4e1a(%rip), %rsi      # 0x8150
movq 0x4e1b(%rip), %rdx      # 0x8158
leaq 0x230a(%rip), %rdi      # 0x564e
xorl %eax, %eax
callq 0x20d0
xorl %edi, %edi
callq 0x2230
leaq 0x200e(%rip), %rdi      # 0x5367
leaq 0x1fe5(%rip), %rsi      # 0x5345
leaq 0x203c(%rip), %rcx      # 0x53a3
movl $0x13c, %edx            # imm = 0x13C
callq 0x20f0
leaq 0x1fba(%rip), %rdi      # 0x5332
leaq 0x1fc6(%rip), %rsi      # 0x5345
leaq 0x1fca(%rip), %rcx      # 0x5350
movl $0x11a, %edx            # imm = 0x11A
callq 0x20f0
movq (%rbx), %rsi
leaq 0x1ea5(%rip), %rdi      # 0x523f
xorl %eax, %eax
callq 0x20d0
pushq $-0x1
popq %rdi
callq 0x2230