//
// SecretLayer4::getThreadMessage from 0x94840c to 0x9488b8 (1196 bytes)
//
// 2 xrefs:
// > SecretLayer4::getMessage @ 0x948bfc
// > ??> @ 0xc4dd0
//
// 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
//
__int64 __usercall SecretLayer4::getThreadMessage@(SecretLayer4 *this@, __int64 a2@)
{
int m_threadMessageIndex; // w0
this->m_basicMessageCount = 0;
sub_D153B8(a2, "zzzzzzZZZZZZZZZ");
switch ( this->m_selectedThread )
{
case 1:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 0:
sub_D1798C(a2, "I hide behind rocks and rills", 29);
goto LABEL_3;
case 1:
sub_D1798C(a2, "under the mountains and hills", 29);
goto LABEL_3;
case 2:
sub_D1798C(a2, "I cannot be seen or felt", 24);
goto LABEL_3;
case 3:
sub_D1798C(a2, "nor heard or smelt", 18);
goto LABEL_3;
case 4:
sub_D1798C(a2, "the more I am the less you see", 30);
goto LABEL_3;
case 5:
sub_D1798C(a2, "what am I?", 10);
goto LABEL_17;
default:
goto LABEL_4;
}
case 2:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 0:
sub_D1798C(a2, "Shh, quiet!", 11);
goto LABEL_3;
case 1:
sub_D1798C(a2, "Can you feel it closing in?", 27);
goto LABEL_3;
case 2:
sub_D1798C(a2, "Shadows creep where it begins", 29);
goto LABEL_3;
case 3:
sub_D1798C(a2, "Speak its name and it is gone", 29);
goto LABEL_3;
case 4:
sub_D1798C(a2, "from every moment dusk till dawn", 32);
goto LABEL_17;
default:
goto LABEL_4;
}
case 3:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 0:
sub_D1798C(a2, "What always runs, but never walks", 33);
goto LABEL_3;
case 1:
sub_D1798C(a2, "Often murmurs, never talks", 26);
goto LABEL_3;
case 2:
sub_D1798C(a2, "Has a bed, but never sleeps", 27);
goto LABEL_3;
case 3:
sub_D1798C(a2, "Has a mouth, but never eats?", 28);
goto LABEL_17;
default:
goto LABEL_4;
}
case 4:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 0:
sub_D1798C(a2, "The less you consume", 20);
goto LABEL_3;
case 1:
sub_D1798C(a2, "the stronger I become", 21);
goto LABEL_3;
case 2:
sub_D1798C(a2, "wait too long", 13);
goto LABEL_3;
case 3:
sub_D1798C(a2, "and death will come", 19);
goto LABEL_3;
case 4:
goto LABEL_16;
default:
goto LABEL_4;
}
case 5:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 0:
sub_D1798C(a2, "My thunder comes before my lightning", 36);
goto LABEL_3;
case 1:
sub_D1798C(a2, "My lightning comes before my rain", 33);
goto LABEL_3;
case 2:
sub_D1798C(a2, "My rain dries up all the land it touches", 40);
goto LABEL_3;
case 3:
LABEL_16:
sub_D1798C(a2, "What am I?", 10);
goto LABEL_17;
default:
goto LABEL_4;
}
case 6:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 1:
sub_D1798C(a2, "Anything harder than it is impossible", 37);
goto LABEL_3;
case 2:
sub_D1798C(a2, "Don't even get me started", 25);
LABEL_17:
this->m_selectedThread = 0;
m_threadMessageIndex = this->m_threadMessageIndex;
break;
case 0:
sub_D1798C(a2, "Legend tells of a level so hard no one can beat it", 50);
goto LABEL_3;
}
break;
case 7:
m_threadMessageIndex = this->m_threadMessageIndex;
switch ( m_threadMessageIndex )
{
case 0:
sub_D1798C(a2, "Good levels are hard to find sometimes", 38);
goto LABEL_3;
case 1:
sub_D1798C(a2, "Wish I had someone who could find them for me", 45);
goto LABEL_3;
case 2:
sub_D1798C(a2, "...", 3);
goto LABEL_3;
case 3:
sub_D1798C(a2, "Forget it...", 12);
goto LABEL_17;
default:
goto LABEL_4;
}
default:
sub_D1798C(a2, "zzzZZZZ", 7);
LABEL_3:
m_threadMessageIndex = this->m_threadMessageIndex;
break;
}
LABEL_4:
this->m_threadMessageIndex = m_threadMessageIndex + 1;
return a2;
}