// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/src/sentinel.c
// Function: sentinelRefreshInstanceInfo
void sentinelRefreshInstanceInfo(sentinelRedisInstance *ri, const char *info) {
    sds *lines;
    int numlines, j;
    int role = 0;

    /* cache full INFO output for instance */
    sdsfree(ri->info);
    ri->info = sdsnew(info);

    /* The following fields must be reset to a given value in the case they
     * are not found at all in the INFO output. */
    ri->master_link_down_time = 0;

    /* Process line by line. */
    lines = sdssplitlen(info,strlen(info),"\r\n",2,&numlines);
    for (j = 0; j < numlines; j++) {
        sentinelRedisInstance *slave;
        sds l = lines[j];

        /* run_id:<40 hex chars>*/
        if (sdslen(l) >= 47 && !memcmp(l,"run_id:",7)) {
            if (ri->runid == NULL) {
                ri->runid = sdsnewlen(l+7,40);
            } else {
                if (strncmp(ri->runid,l+7,40) != 0) {
                    sentinelEvent(LL_NOTICE,"+reboot",ri,"%@");
                    sdsfree(ri->runid);
                    ri->runid = sdsnewlen(l+7,40);
                }
            }
        }

        /* old versions: slave0:<ip>,<port>,<state>
         * new versions: slave0:ip=127.0.0.1,port=9999,... */
        if ((ri->flags & SRI_MASTER) &&
            sdslen(l) >= 7 &&
            !memcmp(l,"slave",5) && isdigit(l[5]))
        {
            char *ip, *port, *end;

            if (strstr(l,"ip=") == NULL) {
                /* Old format. */
                ip = strchr(l,':'); if (!ip) continue;
                ip++; /* Now ip points to start of ip address. */
                port = strchr(ip,','); if (!port) continue;
                *port = '\0'; /* nul term for easy access. */
                port++; /* Now port points to start of port number. */
                end = strchr(port,','); if (!end) continue;
                *end = '\0'; /* nul term for easy access. */
            } else {
                /* New format. */
                ip = strstr(l,"ip="); if (!ip) continue;
                ip += 3; /* Now ip points to start of ip address. */
                port = strstr(l,"port="); if (!port) continue;
                port += 5; /* Now port points to start of port number. */
                /* Nul term both fields for easy access. */
                end = strchr(ip,','); if (end) *end = '\0';
                end = strchr(port,','); if (end) *end = '\0';
            }

            /* Check if we already have this slave into our table,
             * otherwise add it. */
            if (sentinelRedisInstanceLookupSlave(ri,ip,atoi(port)) == NULL) {
                if ((slave = createSentinelRedisInstance(NULL,SRI_SLAVE,ip,
                            atoi(port), ri->quorum, ri)) != NULL)
                {
                    sentinelEvent(LL_NOTICE,"+slave",slave,"%@");
                    sentinelFlushConfig();
                }
            }
        }

        /* master_link_down_since_seconds:<seconds> */
        if (sdslen(l) >= 32 &&
            !memcmp(l,"master_link_down_since_seconds",30))
        {
            ri->master_link_down_time = strtoll(l+31,NULL,10)*1000;
        }

        /* role:<role> */
        if (!memcmp(l,"role:master",11)) role = SRI_MASTER;
        else if (!memcmp(l,"role:slave",10)) role = SRI_SLAVE;

        if (role == SRI_SLAVE) {
            /* master_host:<host> */
            if (sdslen(l) >= 12 && !memcmp(l,"master_host:",12)) {
                if (ri->slave_master_host == NULL ||
                    strcasecmp(l+12,ri->slave_master_host))
                {
                    sdsfree(ri->slave_master_host);
                    ri->slave_master_host = sdsnew(l+12);
                    ri->slave_conf_change_time = mstime();
                }
            }

            /* master_port:<port> */
            if (sdslen(l) >= 12 && !memcmp(l,"master_port:",12)) {
                int slave_master_port = atoi(l+12);

                if (ri->slave_master_port != slave_master_port) {
                    ri->slave_master_port = slave_master_port;
                    ri->slave_conf_change_time = mstime();
                }
            }

            /* master_link_status:<status> */
            if (sdslen(l) >= 19 && !memcmp(l,"master_link_status:",19)) {
                ri->slave_master_link_status =
                    (strcasecmp(l+19,"up") == 0) ?
                    SENTINEL_MASTER_LINK_STATUS_UP :
                    SENTINEL_MASTER_LINK_STATUS_DOWN;
            }

            /* slave_priority:<priority> */
            if (sdslen(l) >= 15 && !memcmp(l,"slave_priority:",15))
                ri->slave_priority = atoi(l+15);

            /* slave_repl_offset:<offset> */
            if (sdslen(l) >= 18 && !memcmp(l,"slave_repl_offset:",18))
                ri->slave_repl_offset = strtoull(l+18,NULL,10);
        }
    }
    ri->info_refresh = mstime();
    sdsfreesplitres(lines,numlines);

    /* ---------------------------- Acting half -----------------------------
     * Some things will not happen if sentinel.tilt is true, but some will
     * still be processed. */

    /* Remember when the role changed. */
    if (role != ri->role_reported) {
        ri->role_reported_time = mstime();
        ri->role_reported = role;
        if (role == SRI_SLAVE) ri->slave_conf_change_time = mstime();
        /* Log the event with +role-change if the new role is coherent or
         * with -role-change if there is a mismatch with the current config. */
        sentinelEvent(LL_VERBOSE,
            ((ri->flags & (SRI_MASTER|SRI_SLAVE)) == role) ?
            "+role-change" : "-role-change",
            ri, "%@ new reported role is %s",
            role == SRI_MASTER ? "master" : "slave",
            ri->flags & SRI_MASTER ? "master" : "slave");
    }

    /* None of the following conditions are processed when in tilt mode, so
     * return asap. */
    if (sentinel.tilt) return;

    /* Handle master -> slave role switch. */
    if ((ri->flags & SRI_MASTER) && role == SRI_SLAVE) {
        /* Nothing to do, but masters claiming to be slaves are
         * considered to be unreachable by Sentinel, so eventually
         * a failover will be triggered. */
    }

    /* Handle slave -> master role switch. */
    if ((ri->flags & SRI_SLAVE) && role == SRI_MASTER) {
        /* If this is a promoted slave we can change state to the
         * failover state machine. */
        if ((ri->flags & SRI_PROMOTED) &&
            (ri->master->flags & SRI_FAILOVER_IN_PROGRESS) &&
            (ri->master->failover_state ==
                SENTINEL_FAILOVER_STATE_WAIT_PROMOTION))
        {
            /* Now that we are sure the slave was reconfigured as a master
             * set the master configuration epoch to the epoch we won the
             * election to perform this failover. This will force the other
             * Sentinels to update their config (assuming there is not
             * a newer one already available). */
            ri->master->config_epoch = ri->master->failover_epoch;
            ri->master->failover_state = SENTINEL_FAILOVER_STATE_RECONF_SLAVES;
            ri->master->failover_state_change_time = mstime();
            sentinelFlushConfig();
            sentinelEvent(LL_WARNING,"+promoted-slave",ri,"%@");
            if (sentinel.simfailure_flags &
                SENTINEL_SIMFAILURE_CRASH_AFTER_PROMOTION)
                sentinelSimFailureCrash();
            sentinelEvent(LL_WARNING,"+failover-state-reconf-slaves",
                ri->master,"%@");
            sentinelCallClientReconfScript(ri->master,SENTINEL_LEADER,
                "start",ri->master->addr,ri->addr);
            sentinelForceHelloUpdateForMaster(ri->master);
        } else {
            /* A slave turned into a master. We want to force our view and
             * reconfigure as slave. Wait some time after the change before
             * going forward, to receive new configs if any. */
            mstime_t wait_time = SENTINEL_PUBLISH_PERIOD*4;

            if (!(ri->flags & SRI_PROMOTED) &&
                 sentinelMasterLooksSane(ri->master) &&
                 sentinelRedisInstanceNoDownFor(ri,wait_time) &&
                 mstime() - ri->role_reported_time > wait_time)
            {
                int retval = sentinelSendSlaveOf(ri,
                        ri->master->addr->ip,
                        ri->master->addr->port);
                if (retval == C_OK)
                    sentinelEvent(LL_NOTICE,"+convert-to-slave",ri,"%@");
            }
        }
    }

    /* Handle slaves replicating to a different master address. */
    if ((ri->flags & SRI_SLAVE) &&
        role == SRI_SLAVE &&
        (ri->slave_master_port != ri->master->addr->port ||
         strcasecmp(ri->slave_master_host,ri->master->addr->ip)))
    {
        mstime_t wait_time = ri->master->failover_timeout;

        /* Make sure the master is sane before reconfiguring this instance
         * into a slave. */
        if (sentinelMasterLooksSane(ri->master) &&
            sentinelRedisInstanceNoDownFor(ri,wait_time) &&
            mstime() - ri->slave_conf_change_time > wait_time)
        {
            int retval = sentinelSendSlaveOf(ri,
                    ri->master->addr->ip,
                    ri->master->addr->port);
            if (retval == C_OK)
                sentinelEvent(LL_NOTICE,"+fix-slave-config",ri,"%@");
        }
    }

    /* Detect if the slave that is in the process of being reconfigured
     * changed state. */
    if ((ri->flags & SRI_SLAVE) && role == SRI_SLAVE &&
        (ri->flags & (SRI_RECONF_SENT|SRI_RECONF_INPROG)))
    {
        /* SRI_RECONF_SENT -> SRI_RECONF_INPROG. */
        if ((ri->flags & SRI_RECONF_SENT) &&
            ri->slave_master_host &&
            strcmp(ri->slave_master_host,
                    ri->master->promoted_slave->addr->ip) == 0 &&
            ri->slave_master_port == ri->master->promoted_slave->addr->port)
        {
            ri->flags &= ~SRI_RECONF_SENT;
            ri->flags |= SRI_RECONF_INPROG;
            sentinelEvent(LL_NOTICE,"+slave-reconf-inprog",ri,"%@");
        }

        /* SRI_RECONF_INPROG -> SRI_RECONF_DONE */
        if ((ri->flags & SRI_RECONF_INPROG) &&
            ri->slave_master_link_status == SENTINEL_MASTER_LINK_STATUS_UP)
        {
            ri->flags &= ~SRI_RECONF_INPROG;
            ri->flags |= SRI_RECONF_DONE;
            sentinelEvent(LL_NOTICE,"+slave-reconf-done",ri,"%@");
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rdi
callq 0x38620
movq -0x10(%rbp), %rdi
callq 0x38510
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x130(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0xa0(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
callq 0x264f0
movq -0x80(%rbp), %rdi
movl %eax, %esi
leaq 0xa5e9a(%rip), %rdx     # 0x13e288
movl $0x2, %ecx
leaq -0x1c(%rbp), %r8
callq 0x3a040
movq %rax, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x989c3
movq -0x18(%rbp), %rax
movslq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0x2f, %rax
jb 0x984e9
movq -0x38(%rbp), %rdi
leaq 0xae2cf(%rip), %rsi     # 0x146710
movl $0x7, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x984e9
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x9847e
movq -0x38(%rbp), %rdi
addq $0x7, %rdi
movl $0x28, %esi
callq 0x38230
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x984e7
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x38(%rbp), %rsi
addq $0x7, %rsi
movl $0x28, %edx
callq 0x26350
cmpl $0x0, %eax
je 0x984e5
movq -0x8(%rbp), %rdx
movl $0x2, %edi
leaq 0xae26b(%rip), %rsi     # 0x146718
leaq 0xadd58(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x38620
movq -0x38(%rbp), %rdi
addq $0x7, %rdi
movl $0x28, %esi
callq 0x38230
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x984e7
jmp 0x984e9
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x9872f
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0x7, %rax
jb 0x9872f
movq -0x38(%rbp), %rdi
leaq 0xaa85d(%rip), %rsi     # 0x142d76
movl $0x5, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x9872f
callq 0x26550
movq (%rax), %rax
movq -0x38(%rbp), %rcx
movsbl 0x5(%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x9872f
movq -0x38(%rbp), %rdi
leaq 0xae1c4(%rip), %rsi     # 0x146720
callq 0x266c0
cmpq $0x0, %rax
jne 0x985f0
movq -0x38(%rbp), %rdi
movl $0x3a, %esi
callq 0x267f0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x98589
jmp 0x989b5
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
movl $0x2c, %esi
callq 0x267f0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x985b3
jmp 0x989b5
movq -0x48(%rbp), %rax
movb $0x0, (%rax)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
movl $0x2c, %esi
callq 0x267f0
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x985e4
jmp 0x989b5
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
jmp 0x9868a
movq -0x38(%rbp), %rdi
leaq 0xae125(%rip), %rsi     # 0x146720
callq 0x266c0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x98610
jmp 0x989b5
movq -0x40(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
leaq 0xae0fd(%rip), %rsi     # 0x146724
callq 0x266c0
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x9863c
jmp 0x989b5
movq -0x48(%rbp), %rax
addq $0x5, %rax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
movl $0x2c, %esi
callq 0x267f0
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x98668
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
movq -0x48(%rbp), %rdi
movl $0x2c, %esi
callq 0x267f0
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x98688
movq -0x50(%rbp), %rax
movb $0x0, (%rax)
jmp 0x9868a
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x48(%rbp), %rdi
callq 0x26760
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
movl %eax, %edx
callq 0x963e0
cmpq $0x0, %rax
jne 0x9872d
movq -0x40(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x48(%rbp), %rdi
callq 0x26760
movq -0x98(%rbp), %rdx
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl 0x90(%rax), %r8d
movq -0x8(%rbp), %r9
xorl %eax, %eax
movl %eax, %edi
movl $0x2, %esi
callq 0x95f90
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x9872b
movq -0x30(%rbp), %rdx
movl $0x2, %edi
leaq 0xadaf7(%rip), %rsi     # 0x14620f
leaq 0xadaed(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
callq 0x946c0
jmp 0x9872d
jmp 0x9872f
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0x20, %rax
jb 0x98780
movq -0x38(%rbp), %rdi
leaq 0xadfe1(%rip), %rsi     # 0x14672a
movl $0x1e, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x98780
movq -0x38(%rbp), %rdi
addq $0x1f, %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xa, %edx
callq 0x26af0
imulq $0x3e8, %rax, %rcx      # imm = 0x3E8
movq -0x8(%rbp), %rax
movq %rcx, 0xa0(%rax)
movq -0x38(%rbp), %rdi
leaq 0xadfbe(%rip), %rsi     # 0x146749
movl $0xb, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x987a3
movl $0x1, -0x24(%rbp)
jmp 0x987c6
movq -0x38(%rbp), %rdi
leaq 0xadfa7(%rip), %rsi     # 0x146755
movl $0xa, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x987c4
movl $0x2, -0x24(%rbp)
jmp 0x987c6
cmpl $0x2, -0x24(%rbp)
jne 0x989b3
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0xc, %rax
jb 0x98865
movq -0x38(%rbp), %rdi
leaq 0xadf72(%rip), %rsi     # 0x146760
movl $0xc, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x98865
movq -0x8(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x98828
movq -0x38(%rbp), %rdi
addq $0xc, %rdi
movq -0x8(%rbp), %rax
movq 0xc0(%rax), %rsi
callq 0x26300
cmpl $0x0, %eax
je 0x98863
movq -0x8(%rbp), %rax
movq 0xc0(%rax), %rdi
callq 0x38620
movq -0x38(%rbp), %rdi
addq $0xc, %rdi
callq 0x38510
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xc0(%rax)
callq 0x2ff70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
jmp 0x98865
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0xc, %rax
jb 0x988cc
movq -0x38(%rbp), %rdi
leaq 0xadeee(%rip), %rsi     # 0x14676d
movl $0xc, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x988cc
movq -0x38(%rbp), %rdi
addq $0xc, %rdi
callq 0x26760
movl %eax, -0x54(%rbp)
movq -0x8(%rbp), %rax
movl 0xc8(%rax), %eax
cmpl -0x54(%rbp), %eax
je 0x988ca
movl -0x54(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xc8(%rax)
callq 0x2ff70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
jmp 0x988cc
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0x13, %rax
jb 0x98922
movq -0x38(%rbp), %rdi
leaq 0xade94(%rip), %rsi     # 0x14677a
movl $0x13, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x98922
movq -0x38(%rbp), %rdi
addq $0x13, %rdi
leaq 0xa9902(%rip), %rsi     # 0x142206
callq 0x26300
movl %eax, %edx
movl $0x1, %ecx
xorl %eax, %eax
cmpl $0x0, %edx
cmovel %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xcc(%rax)
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0xf, %rax
jb 0x98964
movq -0x38(%rbp), %rdi
leaq 0xade52(%rip), %rsi     # 0x14678e
movl $0xf, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x98964
movq -0x38(%rbp), %rdi
addq $0xf, %rdi
callq 0x26760
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0xa8(%rax)
movq -0x38(%rbp), %rdi
callq 0x97af0
cmpq $0x12, %rax
jb 0x989b1
movq -0x38(%rbp), %rdi
leaq 0xade20(%rip), %rsi     # 0x14679e
movl $0x12, %edx
callq 0x269b0
cmpl $0x0, %eax
jne 0x989b1
movq -0x38(%rbp), %rdi
addq $0x12, %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xa, %edx
callq 0x26a70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0xd0(%rax)
jmp 0x989b3
jmp 0x989b5
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x98407
callq 0x2ff70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x3a270
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x68(%rcx), %eax
je 0x98a8c
callq 0x2ff70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x70(%rax)
movl -0x24(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x68(%rax)
cmpl $0x2, -0x24(%rbp)
jne 0x98a1f
callq 0x2ff70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x78(%rax)
movq -0x8(%rbp), %rax
movl (%rax), %ecx
andl $0x3, %ecx
movl -0x24(%rbp), %edx
leaq 0xadd8c(%rip), %rsi     # 0x1467be
leaq 0xadd78(%rip), %rax     # 0x1467b1
cmpl %edx, %ecx
cmoveq %rax, %rsi
movq -0x8(%rbp), %rdx
movl -0x24(%rbp), %ecx
leaq 0xaa329(%rip), %r8      # 0x142d76
leaq 0xaa2d0(%rip), %rax     # 0x142d24
cmpl $0x1, %ecx
cmoveq %rax, %r8
movq -0x8(%rbp), %rax
movl (%rax), %ecx
andl $0x1, %ecx
leaq 0xaa30b(%rip), %r9      # 0x142d76
leaq 0xaa2b2(%rip), %rax     # 0x142d24
cmpl $0x0, %ecx
cmovneq %rax, %r9
movl $0x1, %edi
leaq 0xadd46(%rip), %rcx     # 0x1467cb
movb $0x0, %al
callq 0x94990
cmpl $0x0, 0xf45b5(%rip)     # 0x18d048
je 0x98a9a
jmp 0x98f00
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x98ab0
cmpl $0x2, -0x24(%rbp)
jne 0x98ab0
jmp 0x98ab0
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x98cb7
cmpl $0x1, -0x24(%rbp)
jne 0x98cb7
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x98c07
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movl (%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x98c07
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
cmpl $0x4, 0xf0(%rax)
jne 0x98c07
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0xe8(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movl $0x5, 0xf0(%rax)
callq 0x2ff70
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq %rcx, 0xf8(%rax)
callq 0x946c0
movq -0x8(%rbp), %rdx
movl $0x3, %edi
leaq 0xadc70(%rip), %rsi     # 0x1467e6
leaq 0xad68f(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
movq 0xf44ed(%rip), %rax     # 0x18d078
andq $0x2, %rax
cmpq $0x0, %rax
je 0x98b9a
callq 0x98f10
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rdx
movl $0x3, %edi
leaq 0xadc45(%rip), %rsi     # 0x1467f6
leaq 0xad654(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x20(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x20(%rax), %r8
movl $0x20000, %esi          # imm = 0x20000
leaq 0xadd5f(%rip), %rdx     # 0x14694c
callq 0x957a0
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rdi
callq 0x98f40
jmp 0x98cb5
movq $0x1f40, -0x60(%rbp)    # imm = 0x1F40
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
jne 0x98cb3
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rdi
callq 0x98310
cmpl $0x0, %eax
je 0x98cb3
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x96b50
cmpl $0x0, %eax
je 0x98cb3
callq 0x2ff70
movq -0x8(%rbp), %rcx
subq 0x70(%rcx), %rax
cmpq -0x60(%rbp), %rax
jle 0x98cb3
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x20(%rax), %rax
movq (%rax), %rsi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax), %edx
callq 0x98fc0
movl %eax, -0x64(%rbp)
cmpl $0x0, -0x64(%rbp)
jne 0x98cb1
movq -0x8(%rbp), %rdx
movl $0x2, %edi
leaq 0xadb71(%rip), %rsi     # 0x146814
leaq 0xad562(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
jmp 0x98cb3
jmp 0x98cb5
jmp 0x98cb7
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x98dc4
cmpl $0x2, -0x24(%rbp)
jne 0x98dc4
movq -0x8(%rbp), %rax
movl 0xc8(%rax), %eax
movq -0x8(%rbp), %rcx
movq 0xb8(%rcx), %rcx
movq 0x20(%rcx), %rcx
cmpl 0x8(%rcx), %eax
jne 0x98d1c
movq -0x8(%rbp), %rax
movq 0xc0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x20(%rax), %rax
movq (%rax), %rsi
callq 0x26300
cmpl $0x0, %eax
je 0x98dc4
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x108(%rax), %rax
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rdi
callq 0x98310
cmpl $0x0, %eax
je 0x98dc2
movq -0x8(%rbp), %rdi
movq -0x70(%rbp), %rsi
callq 0x96b50
cmpl $0x0, %eax
je 0x98dc2
callq 0x2ff70
movq -0x8(%rbp), %rcx
subq 0x78(%rcx), %rax
cmpq -0x70(%rbp), %rax
jle 0x98dc2
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x20(%rax), %rax
movq (%rax), %rsi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x20(%rax), %rax
movl 0x8(%rax), %edx
callq 0x98fc0
movl %eax, -0x74(%rbp)
cmpl $0x0, -0x74(%rbp)
jne 0x98dc0
movq -0x8(%rbp), %rdx
movl $0x2, %edi
leaq 0xada74(%rip), %rsi     # 0x146826
leaq 0xad453(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
jmp 0x98dc2
jmp 0x98dc4
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x98f00
cmpl $0x2, -0x24(%rbp)
jne 0x98f00
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x300, %eax            # imm = 0x300
cmpl $0x0, %eax
je 0x98f00
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x98ea7
movq -0x8(%rbp), %rax
cmpq $0x0, 0xc0(%rax)
je 0x98ea7
movq -0x8(%rbp), %rax
movq 0xc0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0xb8(%rax), %rax
movq 0x118(%rax), %rax
movq 0x20(%rax), %rax
movq (%rax), %rsi
callq 0x268f0
cmpl $0x0, %eax
jne 0x98ea7
movq -0x8(%rbp), %rax
movl 0xc8(%rax), %eax
movq -0x8(%rbp), %rcx
movq 0xb8(%rcx), %rcx
movq 0x118(%rcx), %rcx
movq 0x20(%rcx), %rcx
cmpl 0x8(%rcx), %eax
jne 0x98ea7
movq -0x8(%rbp), %rax
movl (%rax), %ecx
andl $0xfffffeff, %ecx       # imm = 0xFFFFFEFF
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movl (%rax), %ecx
orl $0x200, %ecx            # imm = 0x200
movl %ecx, (%rax)
movq -0x8(%rbp), %rdx
movl $0x2, %edi
leaq 0xad99f(%rip), %rsi     # 0x146838
leaq 0xad36c(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
movq -0x8(%rbp), %rax
movl (%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x98efe
movq -0x8(%rbp), %rax
cmpl $0x0, 0xcc(%rax)
jne 0x98efe
movq -0x8(%rbp), %rax
movl (%rax), %ecx
andl $0xfffffdff, %ecx       # imm = 0xFFFFFDFF
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movl (%rax), %ecx
orl $0x400, %ecx            # imm = 0x400
movl %ecx, (%rax)
movq -0x8(%rbp), %rdx
movl $0x2, %edi
leaq 0xad95d(%rip), %rsi     # 0x14684d
leaq 0xad315(%rip), %rcx     # 0x14620c
movb $0x0, %al
callq 0x94990
jmp 0x98f00
addq $0xa0, %rsp
popq %rbp
retq
nopl (%rax)