Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

Backtrace

{
  "frames": []
}

Context

{
  "current_block_id": {
    "index": 6,
    "block_type": "Normal",
    "address": 10623
  },
  "current_ast_node_stack": [],
  "current_instruction": {
    "opcode": "Ret",
    "operand": null,
    "address": 10624
  }
}
function getTextTypeByTitle(title#0)
{
    lit#1 = "Weapons";
    // RegionId(1)
    if (title#0 == lit#1) 
    {
        lit#2 = "weapon";
        return lit#2;
    }
    // RegionId(2)
    else
    {
        lit#3 = "NPCs";
        // RegionId(3)
        if (title#0 == lit#3) 
        {
            lit#4 = "npc";
            return lit#4;
        }
        // RegionId(4)
        else
        {
            lit#5 = "Classes";
            // RegionId(5)
            if (title#0 == lit#5) 
            {
                lit#6 = "class";
                return lit#6;
            }
            // RegionId(6)
            else
            {
                lit#7 = null;
                return lit#7;
            }
        }
    }
}