Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function handleTabCommand(textoption#1, textlines#0)
{
    lit#2 = "join";
    // RegionId(0)
    // RegionId(1)
    if (textoption#1 == lit#2) 
    {
        lit#3 = 0;
        fn_call#5 = joinTab#4(textlines#0[lit#3]);
    }
    // RegionId(2)
    else
    {
        lit#6 = "part";
        // RegionId(2)
        // RegionId(3)
        if (textoption#1 == lit#6) 
        {
            lit#7 = 0;
            fn_call#9 = partTab#8(textlines#0[lit#7]);
        }
        // RegionId(4)
        else
        {
            lit#10 = "privmsg";
            // RegionId(4)
            // RegionId(5)
            if (textoption#1 == lit#10) 
            {
                lit#13 = 0;
                temp.source = textlines#0[lit#13];
                lit#15 = 1;
                temp.tab = textlines#0[lit#15];
                lit#17 = 2;
                temp.data = textlines#0[lit#17];
                lit#18 = "";
                // RegionId(5)
                // RegionId(6)
                if (temp.source != lit#18) 
                {
                    lit#19 = ": ";
                    temp.data = (temp.source @ lit#19) @ temp.data;
                }
                fn_call#21 = addTextToTab#20(temp.tab, temp.data);
            }
        }
    }
    lit#22 = 0;
    return lit#22;
}