// File: /workspace/github_cpp_makefile_star2_O1/Eba-M[P]E3DC-Control/RscpExampleMain.cpp
// Function: wolfstatus()
int wolfstatus()
{
    time_t now;
    time(&now);
    static time_t wolf_t;
    //           Test zur Abfrage des Tesmota Relais
    if (strcmp(e3dc_config.mqtt_ip,"0.0.0.0")!=0&&e3dc_config.WPWolf)
    {
        
        
        if (WP_status < 2)
        {
            if (wolf.size()==0)
            {
                wo.wert = 0;
                wo.t = 0;
                wo.status = "";
                wo.feld = "Vorlauftemperatur";
                wo.AK = "VL";
                wpvl = wolf.size();
                wolf.push_back(wo);
                /*                wo.feld = "Sammlertemperatur";
                 wo.AK = "ST";
                 wolf.push_back(wo);
                 */                wo.feld = "Kesseltemperatur";
                wo.AK = "KT";
                wpkt = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Kesseltemperatur 2";
                wo.AK = "KT2";
                wpkt2 = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Rücklauftemperatur";
                wo.AK = "RL";
                wprl = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Heizleistung";
                wo.AK = "HL";
                wphl = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Leistungsaufnahme (WP + EHZ)";
                wo.AK = "PW";
                wppw = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Aktuelle Leistungsvorgabe Verdichter";
                wo.AK = "ALV";
                wpalv = wolf.size();
                wolf.push_back(wo);
                wo.feld = "EEV K"; // Ventil auf Kühlen = Abtaubetrieb
                wo.AK = "EEV K";
                wo.wert = 0;
                wpeevk = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Heizkreisdurchfluss";
                wo.AK = "HD";
                wolf.push_back(wo);
                wo.feld = "Zulufttemperatur";
                wo.AK = "ZL";
                wo.wert = -99;
                wpzl = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Sauggastemperatur";
                wo.AK = "SGT";
                wolf.push_back(wo);
                wo.feld = "Ablufttemperatur";
                wpal = wolf.size();
                wo.AK = "AL";
                wo.wert = -99;
                wolf.push_back(wo);
                wo.feld = "Verdichterfrequenz";
                wo.AK = "VFQ";
                wo.wert = -5;
                wpswk = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Betriebsart Heizgerät";
                wo.AK = "BHG";
                wpbhg = wolf.size();
                wolf.push_back(wo);
                wo.feld = "Verdichterstatus";
                wo.AK = "VS";
                vdstatus = wolf.size();
                wolf.push_back(wo);
            }
            
            
            wolf_fp = NULL;
            sprintf(buf,"mosquitto_sub -h %s -t Wolf/+/#",e3dc_config.mqtt_ip);
//            if (e3dc_config.debug)
            printf("Wo0a");
            wolf_fp = popen(buf, "r");
            if (wolf_fp != NULL)
            {
                //            if (e3dc_config.debug)
                printf("Wo0b");
                int fd = fileno(wolf_fp);
                int flags = fcntl(fd, F_GETFL, 0);
                flags |= O_NONBLOCK;
                fcntl(fd, F_SETFL, flags);
                //            if (e3dc_config.debug)
            }
            printf("Wo0c");
            
            WP_status = 2;
            wolf_t = now;
        }
        if (now-wolf_t > 300)
        {
//            if (e3dc_config.debug)
                printf("Wo1b\n");
//            if (wolf_fp != NULL)
//                status = pclose(wolf_fp);
//            if (e3dc_config.debug)
            printf("Wo1c");
            wolf_fp = NULL;
            WP_status = 1;
        }
        if (e3dc_config.debug) printf("Wo1\n");
        if (wolf_fp != NULL)
        {
//            if (e3dc_config.debug)
                printf("Wo%i",now-wolf_t);
            
            while (fgets(path, 4096, wolf_fp) != NULL)
            {
                if (e3dc_config.debug) printf("Wo2");
                
                const cJSON *item = NULL;
                cJSON *wolf_json = cJSON_Parse(path);
                wolf_t = now;
                for(int x1=0;x1<wolf.size();x1++)
                {
                    char * c = &wolf[x1].feld[0];
                    item = cJSON_GetObjectItemCaseSensitive(wolf_json, c );
                    if (item != NULL)
                    {
                        wolf[x1].wert = item->valuedouble;
                        wolf[x1].t = now;
                        if (item->valuestring!= NULL)
                            wolf[x1].status = item->valuestring;
                        
                        if ((wolf[x1].feld=="Verdichterstatus")||
                            (wolf[x1].feld=="Betriebsart Heizgerät"))
                        {
                            item = item->child;
                            wolf[x1].wert = item->valuedouble;
                            item = item->next;
                            wolf[x1].status = item->valuestring;
                        }
                    }
                }
                
                cJSON_Delete(wolf_json);
                iPower_WP = wolf[wppw].wert*1000;
                if (wolf[wphl].wert>0)
                    iHeat_WP = wolf[wphl].wert*1000;
                else
                    iHeat_WP = 0;
                if (iPower_WP==0&&ALV>0&&tasmota_status[0]==0) // keine EVU sperre
                    iPower_WP = 700;
                else
                    if (iPower_WP>0&&ALV==0)
                    {
                        iPower_WP = 0;
                        iHeat_WP = 0;
                    }
            }
        }
    }
    if (e3dc_config.debug) printf("Wo1d\n");
    if (wolf_fp == NULL) WP_status = 1;
//    else            status = pclose(wolf_fp);
    if (e3dc_config.debug) printf("Wo1e\n");

    return WP_status;
        

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsp, %rdi
callq 0x2250
movabsq $0x302e302e302e30, %rax # imm = 0x302E302E302E30
cmpq %rax, 0x3308e(%rip)     # 0x39934
je 0x7295
cmpb $0x1, 0x33579(%rip)     # 0x39e2c
jne 0x7295
cmpl $0x1, 0x32a68(%rip)     # 0x39328
jg 0x6fae
movq 0x32b33(%rip), %rax     # 0x39400
cmpq 0x32b24(%rip), %rax     # 0x393f8
jne 0x6ef7
xorl %ebp, %ebp
movl %ebp, 0x3455e(%rip)     # 0x3ae40
leaq 0x344ef(%rip), %rbx     # 0x3add8
movq $0x0, 0x344e4(%rip) # 0x3add8
movq 0x3452d(%rip), %rdx     # 0x3ae28
leaq 0x3451e(%rip), %rdi     # 0x3ae20
leaq 0x2bb31(%rip), %rcx     # 0x3243a
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2410
movq 0x344ce(%rip), %rdx     # 0x3ade8
leaq 0x344bf(%rip), %r14     # 0x3ade0
leaq 0x2a252(%rip), %rcx     # 0x30b7a
movl $0x11, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x344c9(%rip), %rdx     # 0x3ae08
leaq 0x344ba(%rip), %r15     # 0x3ae00
leaq 0x2a23f(%rip), %rcx     # 0x30b8c
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32a9c(%rip), %rax     # 0x39400
subq 0x32a8d(%rip), %rax     # 0x393f8
leaq 0x32a86(%rip), %r12     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x34246(%rip)     # 0x3abc8
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x34454(%rip), %rdx     # 0x3ade8
leaq 0x2a1f4(%rip), %rcx     # 0x30b8f
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x34456(%rip), %rdx     # 0x3ae08
leaq 0x2a1e7(%rip), %rcx     # 0x30ba0
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32a30(%rip), %rax     # 0x39400
subq 0x32a21(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x341f9(%rip)     # 0x3abe0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x343ef(%rip), %rdx     # 0x3ade8
leaq 0x2a1a3(%rip), %rcx     # 0x30ba3
movl $0x12, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x343f1(%rip), %rdx     # 0x3ae08
leaq 0x2a198(%rip), %rcx     # 0x30bb6
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x329cb(%rip), %rax     # 0x39400
subq 0x329bc(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x34198(%rip)     # 0x3abe4
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x3438a(%rip), %rdx     # 0x3ade8
leaq 0x2a155(%rip), %rcx     # 0x30bba
movl $0x13, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x3438c(%rip), %rdx     # 0x3ae08
leaq 0x2a14b(%rip), %rcx     # 0x30bce
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32966(%rip), %rax     # 0x39400
subq 0x32957(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x3411b(%rip)     # 0x3abcc
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x34325(%rip), %rdx     # 0x3ade8
leaq 0x2a107(%rip), %rcx     # 0x30bd1
movl $0xc, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x34327(%rip), %rdx     # 0x3ae08
leaq 0x2a0f6(%rip), %rcx     # 0x30bde
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32901(%rip), %rax     # 0x39400
subq 0x328f2(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x340ba(%rip)     # 0x3abd0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x342c0(%rip), %rdx     # 0x3ade8
leaq 0x2a0b2(%rip), %rcx     # 0x30be1
movl $0x1c, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x342c2(%rip), %rdx     # 0x3ae08
leaq 0x2a0b1(%rip), %rcx     # 0x30bfe
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x3289c(%rip), %rax     # 0x39400
subq 0x3288d(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x34059(%rip)     # 0x3abd4
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x3425b(%rip), %rdx     # 0x3ade8
leaq 0x2a06d(%rip), %rcx     # 0x30c01
movl $0x24, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x3425d(%rip), %rdx     # 0x3ae08
leaq 0x2a074(%rip), %rcx     # 0x30c26
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32837(%rip), %rax     # 0x39400
subq 0x32828(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x3400c(%rip)     # 0x3abec
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x341f6(%rip), %rdx     # 0x3ade8
leaq 0x2a031(%rip), %r13     # 0x30c2a
movl $0x5, %r8d
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rcx
callq 0x2410
movq 0x341f5(%rip), %rdx     # 0x3ae08
movl $0x5, %r8d
movq %r15, %rdi
xorl %esi, %esi
movq %r13, %rcx
callq 0x2410
movq 0x327d3(%rip), %rax     # 0x39400
subq 0x327c4(%rip), %rax     # 0x393f8
movl %ebp, 0x34206(%rip)     # 0x3ae40
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x33faa(%rip)     # 0x3abf4
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x3418c(%rip), %rdx     # 0x3ade8
leaq 0x29fcd(%rip), %rcx     # 0x30c30
movl $0x13, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x3418e(%rip), %rdx     # 0x3ae08
leaq 0x29fc3(%rip), %rcx     # 0x30c44
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x34145(%rip), %rdx     # 0x3ade8
leaq 0x29f9d(%rip), %rcx     # 0x30c47
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x34147(%rip), %rdx     # 0x3ae08
leaq 0x29f90(%rip), %rcx     # 0x30c58
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movl $0xc2c60000, %ebp       # imm = 0xC2C60000
movq 0x3271c(%rip), %rax     # 0x39400
subq 0x3270d(%rip), %rax     # 0x393f8
movl %ebp, 0x3414f(%rip)     # 0x3ae40
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x33ee7(%rip)     # 0x3abe8
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x340d5(%rip), %rdx     # 0x3ade8
leaq 0x29f41(%rip), %rcx     # 0x30c5b
movl $0x11, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x340d7(%rip), %rdx     # 0x3ae08
leaq 0x29f35(%rip), %rcx     # 0x30c6d
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x3408e(%rip), %rdx     # 0x3ade8
leaq 0x29f10(%rip), %rcx     # 0x30c71
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32688(%rip), %rax     # 0x39400
subq 0x32679(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x33e61(%rip)     # 0x3abf0
movq 0x34072(%rip), %rdx     # 0x3ae08
leaq 0x29ee5(%rip), %rcx     # 0x30c82
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movl %ebp, 0x3408d(%rip)     # 0x3ae40
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x34023(%rip), %rdx     # 0x3ade8
leaq 0x29eb9(%rip), %rcx     # 0x30c85
movl $0x12, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x34025(%rip), %rdx     # 0x3ae08
leaq 0x29eae(%rip), %rcx     # 0x30c98
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x325ff(%rip), %rax     # 0x39400
subq 0x325f0(%rip), %rax     # 0x393f8
movl $0xc0a00000, 0x3402e(%rip) # imm = 0xC0A00000
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x33db6(%rip)     # 0x3abd8
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x33fb4(%rip), %rdx     # 0x3ade8
leaq 0x29e61(%rip), %rcx     # 0x30c9c
movl $0x16, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x33fb6(%rip), %rdx     # 0x3ae08
leaq 0x29e5a(%rip), %rcx     # 0x30cb3
movl $0x3, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x32590(%rip), %rax     # 0x39400
subq 0x32581(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x33d71(%rip)     # 0x3abf8
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq 0x33f4f(%rip), %rdx     # 0x3ade8
leaq 0x29e17(%rip), %rcx     # 0x30cb7
movl $0x10, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x33f51(%rip), %rdx     # 0x3ae08
leaq 0x29e0a(%rip), %rcx     # 0x30cc8
movl $0x2, %r8d
movq %r15, %rdi
xorl %esi, %esi
callq 0x2410
movq 0x3252b(%rip), %rax     # 0x39400
subq 0x3251c(%rip), %rax     # 0x393f8
shrq $0x4, %rax
imull $0xb6db6db7, %eax, %eax # imm = 0xB6DB6DB7
movl %eax, 0x33ec8(%rip)     # 0x3adb4
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1532c
movq $0x0, 0x33ea6(%rip) # 0x3ada8
leaq 0x33f47(%rip), %rbx     # 0x3ae50
leaq 0x29dbb(%rip), %rsi     # 0x30ccb
leaq 0x32a1d(%rip), %rdx     # 0x39934
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2050
leaq 0x29dc3(%rip), %rdi     # 0x30ceb
xorl %eax, %eax
callq 0x2040
leaq 0x2baf2(%rip), %rsi     # 0x32a28
movq %rbx, %rdi
callq 0x20a0
movq %rax, 0x33e63(%rip)     # 0x3ada8
testq %rax, %rax
je 0x6f8b
leaq 0x29d9f(%rip), %rdi     # 0x30cf0
xorl %eax, %eax
callq 0x2040
movq 0x33e49(%rip), %rdi     # 0x3ada8
callq 0x22c0
movl %eax, %ebx
movl %eax, %edi
movl $0x3, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2160
orl $0x800, %eax            # imm = 0x800
movl %ebx, %edi
movl $0x4, %esi
movl %eax, %edx
xorl %eax, %eax
callq 0x2160
leaq 0x29d63(%rip), %rdi     # 0x30cf5
xorl %eax, %eax
callq 0x2040
movl $0x2, 0x32385(%rip)     # 0x39328
movq (%rsp), %rax
movq %rax, 0x33e9a(%rip)     # 0x3ae48
movq (%rsp), %rax
subq 0x33e8f(%rip), %rax     # 0x3ae48
cmpq $0x12d, %rax            # imm = 0x12D
jl 0x6ff0
leaq 0x2ae99(%rip), %rdi     # 0x31e61
callq 0x2400
leaq 0x29d26(%rip), %rdi     # 0x30cfa
xorl %eax, %eax
callq 0x2040
movq $0x0, 0x33dc2(%rip) # 0x3ada8
movl $0x1, 0x32338(%rip)     # 0x39328
cmpb $0x1, 0x32e2e(%rip)     # 0x39e25
jne 0x7005
leaq 0x2ae66(%rip), %rdi     # 0x31e66
callq 0x2400
cmpq $0x0, 0x33d9b(%rip)     # 0x3ada8
je 0x7295
movq (%rsp), %rsi
subq 0x33e2a(%rip), %rsi     # 0x3ae48
leaq 0x29cda(%rip), %rdi     # 0x30cff
xorl %eax, %eax
callq 0x2040
movq 0x33d75(%rip), %rdx     # 0x3ada8
leaq 0x33e96(%rip), %rdi     # 0x3aed0
movl $0x1000, %esi           # imm = 0x1000
callq 0x2440
testq %rax, %rax
je 0x7295
leaq 0x33e7c(%rip), %rbx     # 0x3aed0
cmpb $0x1, 0x32dca(%rip)     # 0x39e25
jne 0x706b
leaq 0x29ca0(%rip), %rdi     # 0x30d04
xorl %eax, %eax
callq 0x2040
movq %rbx, %rdi
callq 0x2c8d2
movq %rax, 0x8(%rsp)
movq (%rsp), %rax
movq %rax, 0x33dc5(%rip)     # 0x3ae48
movq 0x3236e(%rip), %rax     # 0x393f8
cmpq %rax, 0x3236f(%rip)     # 0x39400
je 0x71c2
movl $0x8, %r15d
movl $0x48, %r13d
xorl %r12d, %r12d
movq (%rax,%r15), %rsi
movq 0x8(%rsp), %rdi
callq 0x2d176
testq %rax, %rax
je 0x718b
movq %rax, %rbp
xorps %xmm0, %xmm0
cvtsd2ss 0x30(%rax), %xmm0
movq 0x32329(%rip), %rbx     # 0x393f8
movss %xmm0, 0x20(%rbx,%r13)
movq (%rsp), %rax
movq %rax, -0x48(%rbx,%r13)
movq 0x20(%rbp), %r14
testq %r14, %r14
je 0x7112
movq 0x8(%rbx,%r13), %rax
movq %rax, 0x10(%rsp)
addq %r13, %rbx
movq %r14, %rdi
callq 0x2100
movq %rbx, %rdi
xorl %esi, %esi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x2410
movq 0x322df(%rip), %rdi     # 0x393f8
addq %r15, %rdi
leaq 0x29b94(%rip), %rsi     # 0x30cb7
callq 0x2090
testl %eax, %eax
je 0x7146
movq 0x322c5(%rip), %rdi     # 0x393f8
addq %r15, %rdi
leaq 0x29b5f(%rip), %rsi     # 0x30c9c
callq 0x2090
testl %eax, %eax
jne 0x718b
movq 0x10(%rbp), %rax
xorps %xmm0, %xmm0
cvtsd2ss 0x30(%rax), %xmm0
movq 0x3229f(%rip), %rcx     # 0x393f8
leaq (%rcx,%r13), %rbx
movss %xmm0, 0x20(%rcx,%r13)
movq (%rax), %rax
movq 0x20(%rax), %r14
movq 0x8(%rcx,%r13), %rbp
movq %r14, %rdi
callq 0x2100
movq %rbx, %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x2410
incq %r12
movq 0x3226b(%rip), %rcx     # 0x39400
movq 0x3225c(%rip), %rax     # 0x393f8
subq %rax, %rcx
sarq $0x4, %rcx
movabsq $0x6db6db6db6db6db7, %rdx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rdx, %rcx
addq $0x70, %r15
addq $0x70, %r13
cmpq %r12, %rcx
ja 0x70a6
movq 0x8(%rsp), %rdi
callq 0x2c1d6
movslq 0x33a01(%rip), %rax     # 0x3abd4
movq 0x3221e(%rip), %rcx     # 0x393f8
imulq $0x70, %rax, %rax
movss 0x68(%rcx,%rax), %xmm0
movss 0x291fc(%rip), %xmm1    # 0x303e8
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, 0x34cd6(%rip)     # 0x3bed0
movslq 0x339cf(%rip), %rdx     # 0x3abd0
imulq $0x70, %rdx, %rdx
movss 0x68(%rcx,%rdx), %xmm0
ucomiss 0x291f6(%rip), %xmm0    # 0x30408
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movl $0x0, %edx
cmovbel %edx, %ecx
movl %ecx, 0x34cac(%rip)     # 0x3bed4
movl 0x320fe(%rip), %ecx     # 0x3932c
testl %eax, %eax
jne 0x7252
testl %ecx, %ecx
jle 0x7252
cmpl $0x0, 0x320d3(%rip)     # 0x39310
jne 0x7252
movl $0x2bc, 0x34c87(%rip)   # imm = 0x2BC
leaq 0x33c80(%rip), %rbx     # 0x3aed0
jmp 0x7278
testl %eax, %eax
setg %al
testl %ecx, %ecx
sete %cl
andb %al, %cl
cmpb $0x1, %cl
leaq 0x33c68(%rip), %rbx     # 0x3aed0
jne 0x7278
xorl %eax, %eax
movl %eax, 0x34c5e(%rip)     # 0x3bed0
movl %eax, 0x34c5c(%rip)     # 0x3bed4
movq 0x33b29(%rip), %rdx     # 0x3ada8
movq %rbx, %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0x2440
testq %rax, %rax
jne 0x7054
cmpb $0x1, 0x32b89(%rip)     # 0x39e25
jne 0x72aa
leaq 0x2abc5(%rip), %rdi     # 0x31e6a
callq 0x2400
cmpq $0x0, 0x33af6(%rip)     # 0x3ada8
jne 0x72be
movl $0x1, 0x3206a(%rip)     # 0x39328
cmpb $0x1, 0x32b60(%rip)     # 0x39e25
jne 0x72d3
leaq 0x2aba1(%rip), %rdi     # 0x31e6f
callq 0x2400
movl 0x3204f(%rip), %eax     # 0x39328
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq