//
// SecretLayer4::getThreadMessage from 0x4f0a18 to 0x4f0bfa (482 bytes)
//
// 1 xrefs:
// > SecretLayer4::getMessage @ 0x4f0e48
//
// 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
//
SecretLayer4 *__fastcall SecretLayer4::getThreadMessage(SecretLayer4 *this, _DWORD *a2)
{
SecretLayer4 *v4; // r0
char *v5; // r1
SecretLayer4 *v6; // r0
char *v7; // r1
int v8; // r3
a2[86] = 0;
sub_776584((int)this, "zzzzzzZZZZZZZZZ");
switch ( a2[84] )
{
case 1:
switch ( a2[85] )
{
case 0:
v4 = this;
v5 = "I hide behind rocks and rills";
goto LABEL_44;
case 1:
v4 = this;
v5 = "under the mountains and hills";
goto LABEL_44;
case 2:
v4 = this;
v5 = "I cannot be seen or felt";
goto LABEL_44;
case 3:
v4 = this;
v5 = "nor heard or smelt";
goto LABEL_44;
case 4:
v4 = this;
v5 = "the more I am the less you see";
goto LABEL_44;
case 5:
v6 = this;
v7 = "what am I?";
goto LABEL_9;
default:
goto LABEL_45;
}
case 2:
switch ( a2[85] )
{
case 0:
v4 = this;
v5 = "Shh, quiet!";
goto LABEL_44;
case 1:
v4 = this;
v5 = "Can you feel it closing in?";
goto LABEL_44;
case 2:
v4 = this;
v5 = "Shadows creep where it begins";
goto LABEL_44;
case 3:
v4 = this;
v5 = "Speak its name and it is gone";
goto LABEL_44;
case 4:
v6 = this;
v7 = "from every moment dusk till dawn";
goto LABEL_9;
default:
goto LABEL_45;
}
case 3:
switch ( a2[85] )
{
case 0:
v4 = this;
v5 = "What always runs, but never walks";
goto LABEL_44;
case 1:
v4 = this;
v5 = "Often murmurs, never talks";
goto LABEL_44;
case 2:
v4 = this;
v5 = "Has a bed, but never sleeps";
goto LABEL_44;
case 3:
v6 = this;
v7 = "Has a mouth, but never eats?";
goto LABEL_9;
default:
goto LABEL_45;
}
case 4:
switch ( a2[85] )
{
case 0:
v4 = this;
v5 = "The less you consume";
goto LABEL_44;
case 1:
v4 = this;
v5 = "the stronger I become";
goto LABEL_44;
case 2:
v4 = this;
v5 = "wait too long";
goto LABEL_44;
case 3:
v4 = this;
v5 = "and death will come";
goto LABEL_44;
case 4:
v6 = this;
v7 = "What am I?";
goto LABEL_9;
default:
goto LABEL_45;
}
case 5:
switch ( a2[85] )
{
case 0:
v4 = this;
v5 = "My thunder comes before my lightning";
goto LABEL_44;
case 1:
v4 = this;
v5 = "My lightning comes before my rain";
goto LABEL_44;
case 2:
v4 = this;
v5 = "My rain dries up all the land it touches";
goto LABEL_44;
case 3:
v6 = this;
v7 = "What am I?";
goto LABEL_9;
default:
goto LABEL_45;
}
case 6:
v8 = a2[85];
switch ( v8 )
{
case 1:
v4 = this;
v5 = "Anything harder than it is impossible";
goto LABEL_44;
case 2:
v6 = this;
v7 = "Don't even get me started";
LABEL_9:
sub_7753D4((int)v6, v7);
a2[84] = 0;
break;
case 0:
v4 = this;
v5 = "Legend tells of a level so hard no one can beat it";
goto LABEL_44;
}
break;
case 7:
switch ( a2[85] )
{
case 0:
v4 = this;
v5 = "Good levels are hard to find sometimes";
goto LABEL_44;
case 1:
v4 = this;
v5 = "Wish I had someone who could find them for me";
goto LABEL_44;
case 2:
v4 = this;
v5 = "...";
goto LABEL_44;
case 3:
v6 = this;
v7 = "Forget it...";
goto LABEL_9;
default:
goto LABEL_45;
}
default:
v4 = this;
v5 = "zzzZZZZ";
LABEL_44:
sub_7753D4((int)v4, v5);
break;
}
LABEL_45:
++a2[85];
return this;
}