//
// EndLevelLayer::getEndText from 0x1004c1db0 to 0x1004c1e5d (173 bytes)
//
// 1 xrefs:
// > EndLevelLayer::customSetup @ 0x1004c0b30
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const char *__fastcall EndLevelLayer::getEndText(EndLevelLayer *a1)
{
GameManager *v1; // rax
bool GameVariable; // bl
int v3; // eax
unsigned int v4; // ecx
__int64 v5; // rax
char **v6; // rcx
v1 = GameManager::sharedState();
GameVariable = GameManager::getGameVariable(v1, "0095");
v3 = rand();
if ( GameVariable )
{
v4 = v3 + ~(100 * (v3 / 100));
if ( v4 < 0x63 )
{
v5 = v4;
v6 = off_10094F5E0;
return v6[v5];
}
return "DROP THE BEAT";
}
else
{
LODWORD(v5) = v3 % 18 - 2;
if ( (unsigned int)v5 < 0x10 )
{
v5 = (unsigned int)v5;
v6 = off_10094F560;
return v6[v5];
}
return "Awesome!";
}
}