Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function onGuiRCListAddButtonPressed(obj#0)
{
    temp.title = obj.parent.text;
    fn_call#7 = getTextTypeByTitle#6(temp.title);
    temp.texttype = fn_call#7;
    lit#8 = "npc";
    // RegionId(0)
    // RegionId(1)
    if (temp.texttype == lit#8) 
    {
        lit#9 = "";
        lit#10 = "nextdbnpcid";
        fn_call#13 = this.queueRequest(lit#10, lit#9);
    }
    // RegionId(2)
    else
    {
        lit#14 = "class";
        lit#15 = "weapon";
        // RegionId(2)
        // RegionId(3)
        if (temp.texttype in {lit#15, lit#14}) 
        {
            lit#16 = "";
            fn_call#18 = showAddScript#17(temp.texttype, lit#16);
        }
    }
    lit#19 = 0;
    return lit#19;
}