// File: /workspace/github_c_makefile_star2_O2/skeeto[P]hash-prospector/prospector.c
// Function: main
int
main(int argc, char **argv)
{
    int nops = 0;
    int min = 3;
    int max = 6;
    int flags = 0;
    int use_exact = 0;
    double best = 100.0;
    char *dynamic = 0;
    char *template = 0;
    struct hf_op ops[32];
    void *buf = execbuf_alloc();
    uint64_t rng[2] = {0x2a2bc037b59ff989, 0x6d7db86fa2f632ca};

    enum {MODE_SEARCH, MODE_EVAL, MODE_LIST} mode = MODE_SEARCH;

    int option;
    while ((option = getopt(argc, argv, "48EehLl:q:r:st:p:")) != -1) {
        switch (option) {
            case '4':
                flags &= ~F_U64;
                break;
            case '8':
                flags |= F_U64;
                break;
            case 'E':
                mode = MODE_EVAL;
                break;
            case 'e':
                use_exact = 1;
                break;
            case 'h': usage(stdout);
                exit(EXIT_SUCCESS);
                break;
            case 'L':
                mode = MODE_LIST;
                break;
            case 'l':
                dynamic = optarg;
                break;
            case 'p':
                template = optarg;
                break;
            case 'r':
                if (sscanf(optarg, "%d:%d", &min, &max) != 2 ||
                    min < 1 || max > countof(ops) || min > max) {
                    fprintf(stderr, "prospector: invalid range (-r): %s\n",
                            optarg);
                    exit(EXIT_FAILURE);
                }
                break;
            case 'q':
                score_quality = atoi(optarg);
                if (score_quality < 12 || score_quality > 30) {
                    fprintf(stderr, "prospector: invalid quality: %s\n",
                            optarg);
                    exit(EXIT_FAILURE);
                }
                break;
            case 'S':
                mode = MODE_SEARCH;
                break;
            case 's':
                flags |= F_TINY;
                break;
            case 't':
                best = strtod(optarg, 0);
                break;
            default:
                usage(stderr);
                exit(EXIT_FAILURE);
        }
    }

    /* Get a unique seed */
    FILE *urandom = fopen("/dev/urandom", "rb");
    if (urandom) {
        if (!fread(rng, sizeof(rng), 1, urandom)) {
            fputs("prospector: failed to read /dev/urandom\n", stderr);
            exit(EXIT_FAILURE);
        }
        fclose(urandom);
    }

    if (template) {
        nops = parse_template(ops, countof(ops), template, flags);
        if (!nops) {
            fprintf(stderr, "prospector: invalid template\n");
            exit(EXIT_FAILURE);
        }
    }

    if (mode == MODE_EVAL) {
        double bias;
        void *hashptr = 0;
        if (template) {
            hf_randfunc(ops, nops, rng);
            hf_compile(ops, nops, buf);
            execbuf_lock(buf);
            hashptr = buf;
        } else if (dynamic) {
            hashptr = load_function(dynamic);
        } else {
            fprintf(stderr, "prospector: must supply -p or -l\n");
            exit(EXIT_FAILURE);
        }

        uint64_t nhash;
        uint64_t beg = uepoch();
        if (flags & F_U64) {
            uint64_t ABI (*hash)(uint64_t) = hashptr;
            if (use_exact)
                fputs("warning: no exact bias for 64-bit\n", stderr);
            bias = estimate_bias64(hash, rng);
            nhash = (1L << score_quality) * 33;
        } else {
            uint32_t ABI (*hash)(uint32_t) = hashptr;
            if (use_exact) {
                bias = exact_bias32(hash);
                nhash = (1LL << 32) * 33;
            } else {
                bias = estimate_bias32(hash, rng);
                nhash = (1L << score_quality) * 65;
            }
        }
        uint64_t end = uepoch();
        printf("bias      = %.17g\n", bias);
        printf("speed     = %.3f nsec / hash\n", (end - beg) * 1000.0 / nhash);
        return 0;
    }

    if (mode == MODE_LIST) {
        void *hashptr = 0;
        if (template) {
            hf_randfunc(ops, nops, rng);
            hf_compile(ops, nops, buf);
            execbuf_lock(buf);
            hashptr = buf;
        } else if (dynamic) {
            hashptr = load_function(dynamic);
        } else {
            fprintf(stderr, "prospector: must supply -p or -l\n");
            exit(EXIT_FAILURE);
        }

        if (flags & F_U64) {
            uint64_t ABI (*hash)(uint64_t) = hashptr;
            uint64_t i = 0;
            do
                printf("%016llx %016llx\n",
                        (unsigned long long)i,
                        (unsigned long long)hash(i));
            while (++i);
        } else {
            uint32_t ABI (*hash)(uint32_t) = hashptr;
            uint32_t i = 0;
            do
                printf("%08lx %08lx\n",
                        (unsigned long)i,
                        (unsigned long)hash(i));
            while (++i);
        }
        return 0;
    }

    for (;;) {
        /* Generate */
        if (template) {
            hf_randfunc(ops, nops, rng);
        } else {
            nops = min + xoroshiro128plus(rng) % (max - min + 1);
            hf_genfunc(ops, nops, flags, rng);
        }

        /* Evaluate */
        double score;
        hf_compile(ops, nops, buf);
        execbuf_lock(buf);
        if (flags & F_U64) {
            uint64_t ABI (*hash)(uint64_t) = (void *)buf;
            score = estimate_bias64(hash, rng);
        } else {
            uint32_t ABI (*hash)(uint32_t) = (void *)buf;
            score = estimate_bias32(hash, rng);
        }
        execbuf_unlock(buf);

        /* Compare */
        if (score < best) {
            printf("// score = %.17g\n", score);
            hf_printfunc(ops, nops, stdout);
            fflush(stdout);
            best = score;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4368, %rsp           # imm = 0x4368
movq %rsi, %r14
movl %edi, %r13d
movl $0x3, 0x1c(%rsp)
movl $0x6, 0x18(%rsp)
pushq $0x3
popq %rdx
pushq $0x22
popq %rcx
pushq $-0x1
popq %r8
movl $0x1000, %esi           # imm = 0x1000
xorl %edi, %edi
xorl %r9d, %r9d
callq 0x1080
movq %rax, 0x48(%rsp)
cmpq $-0x1, %rax
je 0x1e0c
movaps 0x1d1e(%rip), %xmm0     # 0x3060
movaps %xmm0, 0x30(%rsp)
movsd 0x1cb9(%rip), %xmm0     # 0x3008
movsd %xmm0, 0x28(%rsp)
leaq 0x1d14(%rip), %rbx      # 0x3070
xorl %ecx, %ecx
movq $0x0, 0x20(%rsp)
movq $0x0, 0x40(%rsp)
movl $0x0, 0x14(%rsp)
xorl %ebp, %ebp
movl %ecx, %r12d
movl %r13d, %edi
movq %r14, %rsi
leaq 0x1eb6(%rip), %rdx      # 0x3240
callq 0x1170
leal -0x65(%rax), %ecx
cmpl $0xf, %ecx
ja 0x13ac
movslq (%rbx,%rcx,4), %rax
addq %rbx, %rax
jmpq *%rax
movl %r12d, %ecx
pushq $0x1
popq %rax
movl %eax, 0x14(%rsp)
jmp 0x137a
cmpl $0x34, %eax
je 0x14b1
cmpl $0x38, %eax
je 0x14bc
pushq $0x1
popq %rcx
cmpl $0x45, %eax
je 0x137a
cmpl $0x4c, %eax
je 0x14c7
cmpl $0x53, %eax
jne 0x14cf
xorl %ecx, %ecx
jmp 0x137a
movq 0x3bf5(%rip), %rax      # 0x4fd8
movq (%rax), %rax
movq %rax, 0x40(%rsp)
movl %r12d, %ecx
jmp 0x137a
movq 0x3be1(%rip), %rax      # 0x4fd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x1190
movl %eax, 0x3d00(%rip)      # 0x5108
addl $-0x1f, %eax
movl %r12d, %ecx
cmpl $-0x14, %eax
ja 0x137a
jmp 0x1db9
movq 0x3bb5(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
leaq 0x1e25(%rip), %rsi      # 0x3252
leaq 0x1c(%rsp), %rdx
leaq 0x18(%rsp), %rcx
xorl %eax, %eax
callq 0x1130
cmpl $0x2, %eax
jne 0x1dcf
movl 0x1c(%rsp), %eax
testl %eax, %eax
jle 0x1dcf
movl 0x18(%rsp), %edx
cmpl $0x20, %edx
jg 0x1dcf
movl %r12d, %ecx
cmpl %edx, %eax
jle 0x137a
jmp 0x1dcf
orl $0x2, %ebp
movl %r12d, %ecx
jmp 0x137a
movq 0x3b56(%rip), %rax      # 0x4fd8
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movl %r12d, %ecx
jmp 0x137a
movq 0x3b3f(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
xorl %esi, %esi
callq 0x1060
movsd %xmm0, 0x28(%rsp)
movl %r12d, %ecx
jmp 0x137a
andl $-0x2, %ebp
movl %r12d, %ecx
jmp 0x137a
orl $0x1, %ebp
movl %r12d, %ecx
jmp 0x137a
pushq $0x2
popq %rcx
jmp 0x137a
cmpl $-0x1, %eax
jne 0x1da5
leaq 0x1dbe(%rip), %rdi      # 0x329d
leaq 0x1dc4(%rip), %rsi      # 0x32aa
callq 0x1150
testq %rax, %rax
movq 0x20(%rsp), %rbx
je 0x151c
movq %rax, %r14
leaq 0x30(%rsp), %rdi
pushq $0x10
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x1050
testq %rax, %rax
je 0x1e31
movq %r14, %rdi
callq 0x1070
testq %rbx, %rbx
je 0x1659
movl %ebp, %eax
andl $0x1, %eax
negl %eax
andl $0xa, %eax
movq %rax, 0x50(%rsp)
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0x212f(%rip), %rsi      # 0x3670
callq 0x1160
testq %rax, %rax
je 0x162c
cmpq $0x20, %r14
je 0x1635
movq %rax, %r13
movq %r14, %rbx
movq %rax, %rdi
leaq 0x1ce7(%rip), %rsi      # 0x3250
callq 0x10d0
movb (%r13,%rax), %cl
movb %cl, 0x8(%rsp)
movb $0x0, (%r13,%rax)
imulq $0x18, %r14, %rcx
addq %rsp, %rcx
addq $0x60, %rcx
movq %rcx, (%rsp)
andl $0x0, 0x10(%rcx)
movq %r13, %rcx
addq %rax, %rcx
movq %rcx, 0x58(%rsp)
leaq 0x1c00(%rip), %r15      # 0x31a2
xorl %r14d, %r14d
cmpq $-0x14, %r14
je 0x1635
movq %r15, %rdi
movq %r13, %rsi
callq 0x10f0
testl %eax, %eax
je 0x15c7
decq %r14
addq $0x8, %r15
jmp 0x15a5
movq 0x50(%rsp), %rax
subq %r14, %rax
movq (%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x3a, 0x8(%rsp)
jne 0x161f
movl $0x1, 0x10(%rcx)
cmpl $0x13, %eax
ja 0x1635
movq 0x58(%rsp), %rdi
incq %rdi
movl $0xf23c8, %ecx          # imm = 0xF23C8
btl %eax, %ecx
jae 0x1603
callq 0x1190
cltq
jmp 0x1617
movl $0x1c07, %ecx           # imm = 0x1C07
btl %eax, %ecx
jae 0x1635
xorl %esi, %esi
pushq $0x10
popq %rdx
callq 0x10e0
movq (%rsp), %rcx
movq %rax, 0x8(%rcx)
movq %rbx, %r14
incq %r14
xorl %edi, %edi
jmp 0x153a
movq %r14, (%rsp)
testq %r14, %r14
jne 0x1661
movq 0x39bc(%rip), %rax      # 0x4ff8
movq (%rax), %rcx
leaq 0x1c90(%rip), %rdi      # 0x32d6
pushq $0x1d
popq %rsi
pushq $0x1
popq %rdx
callq 0x11c0
pushq $0x1
popq %rdi
callq 0x11b0
movq $0x0, (%rsp)
cmpl $0x1, %r12d
je 0x16b9
cmpl $0x2, %r12d
movq 0x48(%rsp), %r15
movq 0x20(%rsp), %rbx
jne 0x16fe
testq %rbx, %rbx
je 0x1a86
movq %r15, %r12
leaq 0x60(%rsp), %r15
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
movq (%rsp), %rbx
movl %ebx, %esi
callq 0x1f9f
movq %r15, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x1fd7
movq %r12, %rdi
callq 0x22e7
jmp 0x1a9c
cmpq $0x0, 0x20(%rsp)
movq 0x48(%rsp), %rbx
je 0x1b04
leaq 0x60(%rsp), %r15
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
movq (%rsp), %r14
movl %r14d, %esi
callq 0x1f9f
movq %r15, %rdi
movl %r14d, %esi
movq %rbx, %rdx
callq 0x1fd7
movq %rbx, %rdi
callq 0x22e7
jmp 0x1b1a
leaq 0x60(%rsp), %r14
leaq 0x30(%rsp), %r13
movl $0xfc3f, %r12d          # imm = 0xFC3F
testq %rbx, %rbx
je 0x172a
movq %r14, %rdi
movq (%rsp), %r15
movl %r15d, %esi
movq %r13, %rdx
callq 0x1f9f
jmp 0x17d4
movl 0x1c(%rsp), %ecx
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rsi
leaq (%rsi,%rdx), %rax
xorq %rdx, %rsi
rolq $0x18, %rdx
movq %rsi, %rdi
shlq $0x10, %rdi
xorq %rdx, %rdi
xorq %rsi, %rdi
movq %rdi, 0x30(%rsp)
rolq $0x25, %rsi
movq %rsi, 0x38(%rsp)
movl 0x18(%rsp), %edx
subl %ecx, %edx
incl %edx
movslq %edx, %rsi
xorl %edx, %edx
divq %rsi
movq %rdx, %rbx
addl %ecx, %ebx
movq %r14, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x26f3
movq %rbx, (%rsp)
movslq %ebx, %rbx
pushq $0x1
popq %r14
cmpq %rbx, %r14
jge 0x17c6
imulq $0x18, %r14, %rax
leaq (%rsp,%rax), %r15
addq $0x60, %r15
movq %r15, %rdi
movq %r13, %rsi
movl %ebp, %edx
callq 0x26f3
movl -0x18(%r15), %eax
cmpl $0x13, %eax
ja 0x1a81
btl %eax, %r12d
jae 0x17c1
cmpl (%r15), %eax
je 0x179c
incq %r14
jmp 0x178b
movq 0x20(%rsp), %rbx
movq (%rsp), %r15
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movq %r15, (%rsp)
movl %r15d, %esi
movq 0x48(%rsp), %r15
movq %r15, %rdx
callq 0x1fd7
movq %r15, %rdi
callq 0x22e7
movq %r15, %rdi
movq %r13, %rsi
testb $0x1, %bpl
jne 0x1806
callq 0x2534
jmp 0x180b
callq 0x23ec
movapd %xmm0, %xmm1
movl 0x38fb(%rip), %eax      # 0x5110
cmpl $0x1, %eax
leaq 0x60(%rsp), %r14
je 0x1828
testl %eax, %eax
jne 0x1844
jmp 0x1a81
movl $0x1000, %esi           # imm = 0x1000
movq %r15, %rdi
pushq $0x3
popq %rdx
movsd %xmm1, 0x8(%rsp)
callq 0x1140
movsd 0x8(%rsp), %xmm1
movsd 0x28(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x170e
leaq 0x1b2d(%rip), %rdi      # 0x3388
movsd %xmm1, 0x8(%rsp)
movapd %xmm1, %xmm0
movb $0x1, %al
callq 0x1090
cmpl $0xa, 0x60(%rsp)
movq 0x3758(%rip), %rax      # 0x4fd0
movq (%rax), %rcx
leaq 0x1e86(%rip), %rdi      # 0x3708
leaq 0x1e62(%rip), %rax      # 0x36eb
cmovbq %rax, %rdi
pushq $0x1c
popq %rsi
pushq $0x1
popq %rdx
movq %rcx, 0x28(%rsp)
callq 0x11c0
movq (%rsp), %rcx
testl %ecx, %ecx
movl $0x0, %eax
cmovgl %ecx, %eax
imulq $0x18, %rax, %rbx
xorl %r15d, %r15d
leaq 0x1e6c(%rip), %r14      # 0x3725
cmpq %r15, %rbx
je 0x1a40
movl 0x60(%rsp,%r15), %eax
cmpq $0x13, %rax
ja 0x1a02
movq 0x68(%rsp,%r15), %rdx
leaq 0x17d3(%rip), %rcx      # 0x30b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movabsq $0x3b787e203d202078, %rax # imm = 0x3B787E203D202078
movq %rax, 0x360(%rsp)
movb $0x0, 0x368(%rsp)
jmp 0x1a02
leaq 0x360(%rsp), %rdi
leaq 0x1ee6(%rip), %rsi      # 0x37fa
jmp 0x19fb
leaq 0x360(%rsp), %rdi
leaq 0x1ea2(%rip), %rsi      # 0x37ca
jmp 0x19fb
leaq 0x360(%rsp), %rdi
leaq 0x1e9e(%rip), %rsi      # 0x37da
jmp 0x19fb
leaq 0x360(%rsp), %rdi
leaq 0x1e9a(%rip), %rsi      # 0x37ea
jmp 0x19fb
movups 0x1df6(%rip), %xmm0     # 0x3752
movups %xmm0, 0x36b(%rsp)
movupd 0x1ddb(%rip), %xmm0     # 0x3747
jmp 0x19e1
leaq 0x360(%rsp), %rdi
leaq 0x1e1e(%rip), %rsi      # 0x379b
jmp 0x19fb
leaq 0x360(%rsp), %rdi
leaq 0x1e9c(%rip), %rsi      # 0x382a
jmp 0x19fb
pushq $0x20
jmp 0x1a24
leaq 0x360(%rsp), %rdi
leaq 0x1dd7(%rip), %rsi      # 0x377d
jmp 0x19fb
leaq 0x360(%rsp), %rdi
leaq 0x1dd5(%rip), %rsi      # 0x378c
jmp 0x19fb
leaq 0x360(%rsp), %rdi
leaq 0x1e42(%rip), %rsi      # 0x380a
jmp 0x19fb
movups 0x1d9c(%rip), %xmm0     # 0x376d
movups %xmm0, 0x36b(%rsp)
movupd 0x1d81(%rip), %xmm0     # 0x3762
movapd %xmm0, 0x360(%rsp)
jmp 0x1a02
leaq 0x360(%rsp), %rdi
leaq 0x1e1f(%rip), %rsi      # 0x381a
xorl %eax, %eax
callq 0x11a0
movq 0x28(%rsp), %rdi
movq %r14, %rsi
leaq 0x360(%rsp), %rdx
xorl %eax, %eax
callq 0x1110
addq $0x18, %r15
jmp 0x18b9
pushq $0x40
popq %rcx
subq %rdx, %rcx
leaq 0x360(%rsp), %rdi
leaq 0x1d73(%rip), %rsi      # 0x37aa
xorl %eax, %eax
callq 0x11a0
jmp 0x1a02
leaq 0x1ce6(%rip), %rdi      # 0x372d
pushq $0x10
popq %rsi
pushq $0x1
popq %rdx
movq 0x28(%rsp), %rcx
callq 0x11c0
movq 0x3572(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
callq 0x1120
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x20(%rsp), %rbx
leaq 0x60(%rsp), %r14
jmp 0x170e
callq 0x1030
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1e4c
callq 0x236c
movq %rax, %r12
testb $0x1, %bpl
jne 0x1ad8
leaq 0x18d2(%rip), %r14      # 0x337b
movabsq $0x100000000, %rbx      # imm = 0x100000000
xorl %r15d, %r15d
movl %r15d, %edi
callq *%r12
movl %eax, %edx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1090
incq %r15
cmpq %rbx, %r15
jne 0x1ab6
jmp 0x1d76
leaq 0x188b(%rip), %r14      # 0x336a
xorl %r15d, %r15d
movq %r12, %rbx
movq %r15, %rdi
callq *%rbx
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1090
incq %r15
jne 0x1ae5
jmp 0x1d76
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1e4c
callq 0x236c
movq %rax, %rbx
callq 0x23c9
movq %rax, %r15
testb $0x1, %bpl
jne 0x1c21
cmpl $0x0, 0x14(%rsp)
je 0x1cbf
movq %r15, 0x8(%rsp)
movq %rbx, %r15
leaq 0x360(%rsp), %rdi
xorl %r13d, %r13d
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x10c0
movl $0x8000000, %r14d       # imm = 0x8000000
cmpq $0x20, %r13
je 0x1c4b
movl $0x2000, %edx           # imm = 0x2000
leaq 0x2360(%rsp), %rdi
xorl %esi, %esi
callq 0x10c0
movq %r13, (%rsp)
shlq $0x1b, %r13
cmpq %r14, %r13
je 0x1bd0
movl %r13d, %edi
callq *%r15
movl %eax, %ebp
leaq 0x2360(%rsp), %r12
xorl %ebx, %ebx
cmpq $0x20, %rbx
je 0x1bcb
movl %r13d, %edi
btcl %ebx, %edi
callq *%r15
xorl %ebp, %eax
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x1bbf
btl %ecx, %eax
adcq $0x0, (%r12,%rcx,8)
incq %rcx
jmp 0x1bac
incq %rbx
addq $0x100, %r12            # imm = 0x100
jmp 0x1b99
incq %r13
jmp 0x1b82
leaq 0x2360(%rsp), %rax
leaq 0x360(%rsp), %rcx
xorl %edx, %edx
movq (%rsp), %r13
movl $0x100, %r8d            # imm = 0x100
cmpq $0x20, %rdx
je 0x1c12
xorl %esi, %esi
cmpq $0x20, %rsi
je 0x1c07
movq (%rax,%rsi,8), %rdi
addq %rdi, (%rcx,%rsi,8)
incq %rsi
jmp 0x1bf4
incq %rdx
addq %r8, %rcx
addq %r8, %rax
jmp 0x1bec
incq %r13
addq $0x8000000, %r14        # imm = 0x8000000
jmp 0x1b5c
cmpl $0x0, 0x14(%rsp)
jne 0x1d8a
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x23ec
movsd %xmm0, (%rsp)
movb 0x34c4(%rip), %cl       # 0x5108
pushq $0x21
jmp 0x1cd9
xorpd %xmm0, %xmm0
leaq 0x360(%rsp), %rax
xorl %ecx, %ecx
movq $-0x80000000, %rdx      # imm = 0x80000000
movsd 0x13a8(%rip), %xmm1     # 0x3010
movsd 0x13a8(%rip), %xmm2     # 0x3018
movq 0x8(%rsp), %r15
cmpq $0x20, %rcx
je 0x1caf
xorl %esi, %esi
cmpq $0x20, %rsi
je 0x1ca4
movq (%rax,%rsi,8), %rdi
addq %rdx, %rdi
cvtsi2sd %rdi, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm3, %xmm3
mulsd %xmm2, %xmm3
addsd %xmm3, %xmm0
incq %rsi
jmp 0x1c7d
incq %rcx
addq $0x100, %rax            # imm = 0x100
jmp 0x1c75
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x1ce0
sqrtsd %xmm0, %xmm0
jmp 0x1ce5
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x2534
movsd %xmm0, (%rsp)
movb 0x3431(%rip), %cl       # 0x5108
pushq $0x41
popq %r14
shlq %cl, %r14
jmp 0x1cfc
callq 0x11d0
mulsd 0x1333(%rip), %xmm0     # 0x3020
movsd %xmm0, (%rsp)
movabsq $0x2100000000, %r14     # imm = 0x2100000000
callq 0x23c9
movq %rax, %rbx
leaq 0x162e(%rip), %rdi      # 0x3339
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1090
subq %r15, %rbx
movq %rbx, %xmm1
movq 0x1319(%rip), %xmm2     # 0x3040
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x131d(%rip), %xmm3     # 0x3050
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x12d5(%rip), %xmm0     # 0x3020
movq %r14, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x15dd(%rip), %rdi      # 0x334c
movb $0x1, %al
callq 0x1090
xorl %eax, %eax
addq $0x4368, %rsp           # imm = 0x4368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3267(%rip), %rax      # 0x4ff8
movq (%rax), %rsi
leaq 0x157b(%rip), %rdi      # 0x3316
callq 0x10b0
jmp 0x1c2c
movq 0x324c(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
callq 0x1e64
jmp 0x1651
movq 0x3238(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x14b2(%rip), %rsi      # 0x327c
movq %r15, %rdx
jmp 0x1dea
movq 0x3222(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq 0x31f8(%rip), %rax      # 0x4fd8
movq (%rax), %rdx
leaq 0x146e(%rip), %rsi      # 0x3258
xorl %eax, %eax
callq 0x1110
jmp 0x1651
movq 0x31d3(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
callq 0x1e64
xorl %edi, %edi
callq 0x11b0
movq 0x31e5(%rip), %rax      # 0x4ff8
movq (%rax), %rbx
callq 0x1040
movl (%rax), %edi
callq 0x11e0
leaq 0x1571(%rip), %rsi      # 0x339a
movq %rbx, %rdi
movq %rax, %rdx
jmp 0x1dea
movq 0x31c0(%rip), %rax      # 0x4ff8
movq (%rax), %rsi
leaq 0x146b(%rip), %rdi      # 0x32ad
callq 0x10b0
jmp 0x1651
movq 0x31a5(%rip), %rax      # 0x4ff8
movq (%rax), %rcx
leaq 0x1497(%rip), %rdi      # 0x32f4
pushq $0x21
jmp 0x1648