// File: /workspace/github_c_makefile_star2_O1/erikdubbelboer[P]discnt/src/server.c
// Function: genDiscntInfoString
sds genDiscntInfoString(char *section) {
    sds info = sdsempty();
    time_t uptime = server.unixtime-server.stat_starttime;
    int j, numcommands;
    struct rusage self_ru, c_ru;
    unsigned long lol, bib;
    int allsections = 0, defsections = 0;
    int sections = 0;

    if (section == NULL) section = "default";
    allsections = strcasecmp(section,"all") == 0;
    defsections = strcasecmp(section,"default") == 0;

    getrusage(RUSAGE_SELF, &self_ru);
    getrusage(RUSAGE_CHILDREN, &c_ru);
    getClientsMaxBuffers(&lol,&bib);

    /* Server */
    if (allsections || defsections || !strcasecmp(section,"server")) {
        static int call_uname = 1;
        static struct utsname name;

        if (sections++) info = sdscat(info,"\r\n");

        if (call_uname) {
            /* Uname can be slow and is always the same output. Cache it. */
            uname(&name);
            call_uname = 0;
        }

        info = sdscatprintf(info,
            "# Server\r\n"
            "discnt_version:%s\r\n"
            "discnt_git_sha1:%s\r\n"
            "discnt_git_dirty:%d\r\n"
            "discnt_build_id:%llx\r\n"
            "os:%s %s %s\r\n"
            "arch_bits:%d\r\n"
            "multiplexing_api:%s\r\n"
            "gcc_version:%d.%d.%d\r\n"
            "process_id:%ld\r\n"
            "run_id:%s\r\n"
            "tcp_port:%d\r\n"
            "uptime_in_seconds:%jd\r\n"
            "uptime_in_days:%jd\r\n"
            "hz:%d\r\n"
            "executable:%s\r\n"
            "config_file:%s\r\n",
            DISCNT_VERSION,
            discntGitSHA1(),
            strtol(discntGitDirty(),NULL,10) > 0,
            (unsigned long long) discntBuildId(),
            name.sysname, name.release, name.machine,
            server.arch_bits,
            aeGetApiName(),
#ifdef __GNUC__
            __GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__,
#else
            0,0,0,
#endif
            (long) getpid(),
            server.runid,
            server.port,
            (intmax_t)uptime,
            (intmax_t)(uptime/(3600*24)),
            server.hz,
            server.executable ? server.executable : "",
            server.configfile ? server.configfile : "");
    }

    /* Clients */
    if (allsections || defsections || !strcasecmp(section,"clients")) {
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info,
            "# Clients\r\n"
            "connected_clients:%lu\r\n"
            "client_longest_output_list:%lu\r\n"
            "client_biggest_input_buf:%lu\r\n"
            "blocked_clients:%d\r\n",
            listLength(server.clients),
            lol, bib,
            server.bpop_blocked_clients);
    }

    /* Memory */
    if (allsections || defsections || !strcasecmp(section,"memory")) {
        char hmem[64];
        char peak_hmem[64];
        size_t zmalloc_used = zmalloc_used_memory();

        /* Peak memory is updated from time to time by serverCron() so it
         * may happen that the instantaneous value is slightly bigger than
         * the peak value. This may confuse users, so we update the peak
         * if found smaller than the current memory usage. */
        if (zmalloc_used > server.stat_peak_memory)
            server.stat_peak_memory = zmalloc_used;

        bytesToHuman(hmem,zmalloc_used);
        bytesToHuman(peak_hmem,server.stat_peak_memory);
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info,
            "# Memory\r\n"
            "used_memory:%zu\r\n"
            "used_memory_human:%s\r\n"
            "used_memory_rss:%zu\r\n"
            "used_memory_peak:%zu\r\n"
            "used_memory_peak_human:%s\r\n"
            "mem_fragmentation_ratio:%.2f\r\n"
            "mem_allocator:%s\r\n",
            zmalloc_used,
            hmem,
            server.resident_set_size,
            server.stat_peak_memory,
            peak_hmem,
            zmalloc_get_fragmentation_ratio(server.resident_set_size),
            ZMALLOC_LIB
            );
    }

    /* Counters */
    if (allsections || defsections || !strcasecmp(section,"counters")) {
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info,
            "# Counters\r\n"
            "counters:%lu\r\n"
            "hits:%lld\r\n"
            "misses:%lld\r\n",
            dictSize(server.counters),
            server.stat_hits,
            server.stat_misses);
    }

    /* Persistence */
    if (allsections || defsections || !strcasecmp(section,"persistence")) {
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info,
            "# Persistence\r\n"
            "loading:%d\r\n"
            "ddb_changes_since_last_save:%lld\r\n"
            "ddb_bgsave_in_progress:%d\r\n"
            "ddb_last_save_time:%jd\r\n"
            "ddb_last_bgsave_status:%s\r\n"
            "ddb_last_bgsave_time_sec:%jd\r\n"
            "ddb_current_bgsave_time_sec:%jd\r\n",
            server.loading,
            server.dirty,
            server.ddb_child_pid != -1,
            (intmax_t)server.lastsave,
            (server.lastbgsave_status == C_OK) ? "ok" : "err",
            (intmax_t)server.ddb_save_time_last,
            (intmax_t)((server.ddb_child_pid == -1) ?
                -1 : time(NULL)-server.ddb_save_time_start));

        if (server.loading) {
            double perc;
            time_t eta, elapsed;
            off_t remaining_bytes = server.loading_total_bytes-
                                    server.loading_loaded_bytes;

            perc = ((double)server.loading_loaded_bytes /
                   server.loading_total_bytes) * 100;

            elapsed = server.unixtime-server.loading_start_time;
            if (elapsed == 0) {
                eta = 1; /* A fake 1 second figure if we don't have
                            enough info */
            } else {
                eta = (elapsed*remaining_bytes)/server.loading_loaded_bytes;
            }

            info = sdscatprintf(info,
                "loading_start_time:%jd\r\n"
                "loading_total_bytes:%llu\r\n"
                "loading_loaded_bytes:%llu\r\n"
                "loading_loaded_perc:%.2f\r\n"
                "loading_eta_seconds:%jd\r\n",
                (intmax_t) server.loading_start_time,
                (unsigned long long) server.loading_total_bytes,
                (unsigned long long) server.loading_loaded_bytes,
                perc,
                (intmax_t)eta
            );
        }
    }

    /* Stats */
    if (allsections || defsections || !strcasecmp(section,"stats")) {
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info,
            "# Stats\r\n"
            "total_connections_received:%lld\r\n"
            "total_commands_processed:%lld\r\n"
            "instantaneous_ops_per_sec:%lld\r\n"
            "total_net_input_bytes:%lld\r\n"
            "total_net_output_bytes:%lld\r\n"
            "instantaneous_input_kbps:%.2f\r\n"
            "instantaneous_output_kbps:%.2f\r\n"
            "rejected_connections:%lld\r\n"
            "latest_fork_usec:%lld\r\n",
            server.stat_numconnections,
            server.stat_numcommands,
            getInstantaneousMetric(STAT_METRIC_COMMAND),
            server.stat_net_input_bytes,
            server.stat_net_output_bytes,
            (float)getInstantaneousMetric(STAT_METRIC_NET_INPUT)/1024,
            (float)getInstantaneousMetric(STAT_METRIC_NET_OUTPUT)/1024,
            server.stat_rejected_conn,
            server.stat_fork_time);
    }

    /* CPU */
    if (allsections || defsections || !strcasecmp(section,"cpu")) {
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info,
        "# CPU\r\n"
        "used_cpu_sys:%.2f\r\n"
        "used_cpu_user:%.2f\r\n"
        "used_cpu_sys_children:%.2f\r\n"
        "used_cpu_user_children:%.2f\r\n",
        (float)self_ru.ru_stime.tv_sec+(float)self_ru.ru_stime.tv_usec/1000000,
        (float)self_ru.ru_utime.tv_sec+(float)self_ru.ru_utime.tv_usec/1000000,
        (float)c_ru.ru_stime.tv_sec+(float)c_ru.ru_stime.tv_usec/1000000,
        (float)c_ru.ru_utime.tv_sec+(float)c_ru.ru_utime.tv_usec/1000000);
    }

    /* cmdtime */
    if (allsections || !strcasecmp(section,"commandstats")) {
        if (sections++) info = sdscat(info,"\r\n");
        info = sdscatprintf(info, "# Commandstats\r\n");
        numcommands = sizeof(serverCommandTable)/sizeof(struct serverCommand);
        for (j = 0; j < numcommands; j++) {
            struct serverCommand *c = serverCommandTable+j;

            if (!c->calls) continue;
            info = sdscatprintf(info,
                "cmdstat_%s:calls=%lld,usec=%lld,usec_per_call=%.2f\r\n",
                c->name, c->calls, c->microseconds,
                (c->calls == 0) ? 0 : ((float)c->microseconds/c->calls));
        }
    }

    return info;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %r12
callq 0x1de3f
movq %rax, %r14
movq 0x52cdb(%rip), %r15     # 0x6f6d0
subq 0x529fc(%rip), %r15     # 0x6f3f8
testq %r12, %r12
leaq 0x36932(%rip), %rbx     # 0x53338
cmoveq %rbx, %r12
leaq 0x39ba4(%rip), %rsi     # 0x565b5
movq %r12, %rdi
callq 0x12090
movl %eax, 0x2c(%rsp)
testl %eax, %eax
sete %bpl
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12090
testl %eax, %eax
sete %bl
xorl %r13d, %r13d
leaq 0xf0(%rsp), %rsi
xorl %edi, %edi
callq 0x12790
leaq 0x60(%rsp), %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x12790
leaq 0x58(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x24092
orb %bpl, %bl
movq %r12, 0x18(%rsp)
movb %bl, 0xf(%rsp)
jne 0x1ca92
movl %ebx, %ebp
leaq 0x368c6(%rip), %rsi     # 0x53340
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
je 0x1ca92
movb $0x1, %al
movq %rax, 0x10(%rsp)
jmp 0x1cbe4
cmpb $0x0, 0x668e7(%rip)     # 0x83380
jne 0x1caae
leaq 0x668df(%rip), %rdi     # 0x83381
callq 0x12320
movb $0x1, 0x668d2(%rip)     # 0x83380
callq 0x215a0
movq %rax, 0x40(%rsp)
callq 0x215a8
movq $0x0, 0x10(%rsp)
movq %rax, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x12510
xorl %ebp, %ebp
testq %rax, %rax
setg %bpl
callq 0x215b0
movq %rax, 0x30(%rsp)
movl 0x525f2(%rip), %eax     # 0x6f0e0
movq %rax, 0x20(%rsp)
callq 0x177be
movq %rax, 0x48(%rsp)
callq 0x121f0
cltq
movq %rax, 0x38(%rsp)
movabsq $0x1845c8a0ce512957, %rcx # imm = 0x1845C8A0CE512957
movq %r15, %rax
imulq %rcx
movq %rdx, %r10
movl 0x52619(%rip), %r12d    # 0x6f13c
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xd, %r10
addq %rax, %r10
movl 0x52570(%rip), %r13d    # 0x6f0a8
movq 0x52559(%rip), %r11     # 0x6f098
testq %r11, %r11
leaq 0x386bc(%rip), %rax     # 0x55205
cmoveq %rax, %r11
movq 0x5253c(%rip), %rbx     # 0x6f090
testq %rbx, %rbx
cmoveq %rax, %rbx
leaq 0x367e5(%rip), %rsi     # 0x53347
leaq 0x37564(%rip), %rdx     # 0x540cd
movq %r14, %rdi
movq 0x40(%rsp), %rcx
movl %ebp, %r8d
movq 0x30(%rsp), %r9
movl $0x0, %eax
pushq %rbx
pushq %r11
pushq %r13
pushq %r10
pushq %r15
pushq %r12
leaq 0x52558(%rip), %r10     # 0x6f0e8
pushq %r10
pushq 0x70(%rsp)
pushq $0x1
pushq $0x2
pushq $0x4
pushq 0xa0(%rsp)
pushq 0x80(%rsp)
leaq 0x668d4(%rip), %r10     # 0x83485
pushq %r10
leaq 0x66849(%rip), %r10     # 0x83403
pushq %r10
leaq 0x667be(%rip), %r10     # 0x83381
pushq %r10
callq 0x1eace
addq $0x80, %rsp
movq %rax, %r14
movl $0x1, %r13d
movq 0x18(%rsp), %r12
movb 0xf(%rsp), %bpl
testb %bpl, %bpl
jne 0x1cbfc
leaq 0x39070(%rip), %rsi     # 0x55c60
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
jne 0x1cc48
cmpb $0x0, 0x10(%rsp)
jne 0x1cc15
leaq 0x389a1(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
incl %r13d
movq 0x52649(%rip), %rax     # 0x6f268
movq 0x28(%rax), %rdx
movq 0x58(%rsp), %rcx
movq 0x50(%rsp), %r8
movl 0x52a84(%rip), %r9d     # 0x6f6b8
leaq 0x36828(%rip), %rsi     # 0x53463
movq %r14, %rdi
xorl %eax, %eax
callq 0x1eace
movq %rax, %r14
testb %bpl, %bpl
jne 0x1cc68
leaq 0x3736f(%rip), %rsi     # 0x53fc3
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
je 0x1cc68
movl %r13d, %ebx
jmp 0x1cd1c
callq 0x2006e
movq %rax, %r15
cmpq 0x52799(%rip), %rax     # 0x6f410
jbe 0x1cc80
movq %r15, 0x52790(%rip)     # 0x6f410
leaq 0x1c0(%rsp), %rdi
movq %r15, %rsi
callq 0x1c914
movq 0x52779(%rip), %rsi     # 0x6f410
leaq 0x180(%rsp), %rdi
callq 0x1c914
testl %r13d, %r13d
je 0x1ccbb
leaq 0x388fb(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
incl %r13d
movl %r13d, %ebx
movq 0x52768(%rip), %r12     # 0x6f430
movq 0x52741(%rip), %r13     # 0x6f410
movq %r12, %rdi
callq 0x20170
cvtss2sd %xmm0, %xmm0
leaq 0x3689e(%rip), %r10     # 0x53580
leaq 0x367ef(%rip), %rsi     # 0x534d8
leaq 0x1c0(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %r8
movq %r13, %r9
movb $0x1, %al
pushq %r10
leaq 0x188(%rsp), %r10
pushq %r10
callq 0x1eace
addq $0x10, %rsp
movq %rax, %r14
movq 0x18(%rsp), %r12
testb %bpl, %bpl
jne 0x1cd34
leaq 0x36867(%rip), %rsi     # 0x5358f
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
jne 0x1cd7d
testl %ebx, %ebx
je 0x1cd4a
leaq 0x3886c(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
incl %ebx
movq 0x5294d(%rip), %rax     # 0x6f6a0
movq 0x48(%rax), %rdx
addq 0x28(%rax), %rdx
movq 0x526e6(%rip), %rcx     # 0x6f448
movq 0x526e7(%rip), %r8      # 0x6f450
leaq 0x36828(%rip), %rsi     # 0x53598
movq %r14, %rdi
xorl %eax, %eax
callq 0x1eace
movq %rax, %r14
testb %bpl, %bpl
jne 0x1cd99
leaq 0x36842(%rip), %rsi     # 0x535cb
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
jne 0x1ced0
testl %ebx, %ebx
movl %ebx, 0x10(%rsp)
je 0x1cdb3
leaq 0x38803(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
cmpl $0x0, 0x529ca(%rip)     # 0x6f784
leaq 0x368e1(%rip), %rax     # 0x536a2
leaq 0x368dd(%rip), %r13     # 0x536a5
cmoveq %rax, %r13
movl 0x525d6(%rip), %ebp     # 0x6f3a8
xorl %ebx, %ebx
cmpl $-0x1, 0x5295d(%rip)    # 0x6f738
movq 0x52946(%rip), %rcx     # 0x6f728
setne %bl
movq 0x52974(%rip), %r12     # 0x6f760
movq 0x5297d(%rip), %r15     # 0x6f770
je 0x1ce12
xorl %edi, %edi
movq %rcx, 0x20(%rsp)
callq 0x12550
movq 0x20(%rsp), %rcx
movq %rax, %r10
subq 0x52968(%rip), %r10     # 0x6f778
jmp 0x1ce19
movq $-0x1, %r10
incl 0x10(%rsp)
subq $0x8, %rsp
leaq 0x367af(%rip), %rsi     # 0x535d7
movq %r14, %rdi
movl %ebp, %edx
movl %ebx, %r8d
movq %r12, %r9
xorl %eax, %eax
pushq %r10
pushq %r15
pushq %r13
callq 0x1eace
addq $0x20, %rsp
movq %rax, %r14
cmpl $0x0, 0x5255a(%rip)     # 0x6f3a8
je 0x1cec2
movq 0x52559(%rip), %rcx     # 0x6f3b0
movq 0x5255a(%rip), %r8      # 0x6f3b8
cvtsi2sd %r8, %xmm0
cvtsi2sd %rcx, %xmm1
divsd %xmm1, %xmm0
mulsd 0x35604(%rip), %xmm0    # 0x52478
movq 0x52855(%rip), %rax     # 0x6f6d0
movq 0x5253e(%rip), %r10     # 0x6f3c0
movl $0x1, %r9d
subq %r10, %rax
movq 0x18(%rsp), %r12
movb 0xf(%rsp), %bpl
je 0x1cea9
movq %rcx, %rdx
subq %r8, %rdx
imulq %rdx, %rax
cqto
idivq %r8
movq %rax, %r9
leaq 0x367f9(%rip), %rsi     # 0x536a9
movq %r14, %rdi
movq %r10, %rdx
movb $0x1, %al
callq 0x1eace
movq %rax, %r14
jmp 0x1cecc
movq 0x18(%rsp), %r12
movb 0xf(%rsp), %bpl
movl 0x10(%rsp), %ebx
testb %bpl, %bpl
jne 0x1ceec
leaq 0x369d5(%rip), %rsi     # 0x538b1
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
jne 0x1cfe7
testl %ebx, %ebx
je 0x1cf02
leaq 0x386b4(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
incl %ebx
movq 0x524fd(%rip), %rdx     # 0x6f408
movq 0x524ee(%rip), %rcx     # 0x6f400
xorl %edi, %edi
leaq 0x5216d(%rip), %rsi     # 0x6f088
xorl %eax, %eax
addq 0x3e0(%rsi,%rdi,8), %rax
incq %rdi
cmpq $0x10, %rdi
jne 0x1cf1d
movq 0x52503(%rip), %r9      # 0x6f438
movq 0x52504(%rip), %r10     # 0x6f440
xorl %r8d, %r8d
xorl %edi, %edi
addq 0x478(%rsi,%r8,8), %rdi
incq %r8
cmpq $0x10, %r8
jne 0x1cf41
leaq 0xf(%rdi), %r8
testq %rdi, %rdi
cmovnsq %rdi, %r8
sarq $0x4, %r8
xorps %xmm0, %xmm0
cvtsi2ss %r8, %xmm0
mulss 0x3550f(%rip), %xmm0    # 0x52480
xorl %r8d, %r8d
xorl %edi, %edi
addq 0x510(%rsi,%r8,8), %rdi
incq %r8
cmpq $0x10, %r8
jne 0x1cf76
leaq 0xf(%rax), %r8
testq %rax, %rax
cmovnsq %rax, %r8
sarq $0x4, %r8
leaq 0xf(%rdi), %rax
testq %rdi, %rdi
cmovnsq %rdi, %rax
sarq $0x4, %rax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
cvtss2sd %xmm0, %xmm0
mulss 0x354c7(%rip), %xmm1    # 0x52480
cvtss2sd %xmm1, %xmm1
subq $0x8, %rsp
leaq 0x36762(%rip), %rsi     # 0x5372a
movq %r14, %rdi
movb $0x2, %al
pushq 0x52445(%rip)           # 0x6f418
pushq 0x5244f(%rip)           # 0x6f428
pushq %r10
callq 0x1eace
addq $0x20, %rsp
movq %rax, %r14
testb %bpl, %bpl
jne 0x1d003
leaq 0x3684b(%rip), %rsi     # 0x5383e
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
jne 0x1d0c3
testl %ebx, %ebx
je 0x1d019
leaq 0x3859d(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
xorps %xmm0, %xmm0
cvtsi2ssq 0x100(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2ssq 0x108(%rsp), %xmm1
incl %ebx
movss 0x35447(%rip), %xmm3    # 0x52484
divss %xmm3, %xmm1
addss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2ssq 0xf0(%rsp), %xmm1
cvtsi2ssq 0xf8(%rsp), %xmm2
divss %xmm3, %xmm2
addss %xmm1, %xmm2
cvtsi2ssq 0x70(%rsp), %xmm4
xorps %xmm1, %xmm1
cvtss2sd %xmm2, %xmm1
xorps %xmm2, %xmm2
cvtsi2ssq 0x78(%rsp), %xmm2
divss %xmm3, %xmm2
cvtsi2ssq 0x60(%rsp), %xmm5
addss %xmm4, %xmm2
xorps %xmm4, %xmm4
cvtsi2ssq 0x68(%rsp), %xmm4
cvtss2sd %xmm2, %xmm2
divss %xmm3, %xmm4
addss %xmm5, %xmm4
xorps %xmm3, %xmm3
cvtss2sd %xmm4, %xmm3
leaq 0x3678c(%rip), %rsi     # 0x53842
movq %r14, %rdi
movb $0x4, %al
callq 0x1eace
movq %rax, %r14
cmpl $0x0, 0x2c(%rsp)
je 0x1d0e1
leaq 0x367d9(%rip), %rsi     # 0x538aa
movq %r12, %rdi
callq 0x12090
testl %eax, %eax
jne 0x1d167
testl %ebx, %ebx
je 0x1d0f7
leaq 0x384bf(%rip), %rsi     # 0x555ab
movq %r14, %rdi
callq 0x1e73d
movq %rax, %r14
leaq 0x367b9(%rip), %rsi     # 0x538b7
movq %r14, %rdi
xorl %eax, %eax
callq 0x1eace
movq %rax, %r14
movl $0x38, %r15d
leaq 0x51408(%rip), %r12     # 0x6e520
leaq 0x367a9(%rip), %rbx     # 0x538c8
movq (%r15,%r12), %rcx
testq %rcx, %rcx
je 0x1d15a
movq -0x8(%r15,%r12), %r8
xorps %xmm0, %xmm0
cvtsi2ss %r8, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %rcx, %xmm1
movq -0x38(%r15,%r12), %rdx
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
movq %r14, %rdi
movq %rbx, %rsi
movb $0x1, %al
callq 0x1eace
movq %rax, %r14
addq $0x40, %r15
cmpq $0x7f8, %r15            # imm = 0x7F8
jne 0x1d11f
movq %r14, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq