// // SecretLayer2::getThreadMessage from 0x9400a0 to 0x940788 (1768 bytes) // // 2 xrefs: // > SecretLayer2::getMessage @ 0x940c04 // > @ 0x34dd0 // // 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 SecretLayer2::getThreadMessage@(SecretLayer2 *this@, __int64 a2@) { int m_threadMessageIndex; // w0 GameManager *v6; // x0 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, "Oh my head...", 13); goto LABEL_3; case 1: sub_D1798C(a2, "I feel so drained", 17); goto LABEL_3; case 2: sub_D1798C(a2, "Would be nice to get some energy", 32); goto LABEL_3; case 3: sub_D1798C(a2, "You know, for my head...", 24); goto LABEL_3; case 4: sub_D1798C(a2, "Nothing? Ok...", 14); goto LABEL_18; default: goto LABEL_4; } case 3: m_threadMessageIndex = this->m_threadMessageIndex; switch ( m_threadMessageIndex ) { case 0: sub_D1798C(a2, "I heard what you did", 20); goto LABEL_3; case 1: sub_D1798C(a2, "You little thief", 16); goto LABEL_3; case 2: sub_D1798C(a2, "You took 'Spookys' coin", 23); goto LABEL_3; case 3: sub_D1798C(a2, "That is pure evil...", 20); goto LABEL_3; case 4: sub_D1798C(a2, "I like it", 9); goto LABEL_3; case 5: sub_D1798C(a2, "I know what you're thinking", 27); goto LABEL_3; case 6: sub_D1798C(a2, "But you will never get my coin...", 33); goto LABEL_3; case 7: sub_D1798C(a2, "I keep it safe", 14); goto LABEL_3; case 8: sub_D1798C(a2, "Too clever for you...", 21); this->m_selectedThread = 0; v6 = GameManager::sharedState(); GameManager::setUGV(v6, &byte_F78BA8, 1); goto LABEL_3; default: goto LABEL_4; } case 4: m_threadMessageIndex = this->m_threadMessageIndex; if ( !m_threadMessageIndex ) { sub_D1798C(a2, "This is thread 4", 16); goto LABEL_3; } if ( m_threadMessageIndex == 1 ) { sub_D1798C(a2, "Thread 4 end", 12); goto LABEL_18; } break; case 5: m_threadMessageIndex = this->m_threadMessageIndex; switch ( m_threadMessageIndex ) { case 0: sub_D1798C(a2, "So... there is a tree", 21); goto LABEL_3; case 1: sub_D1798C(a2, "A very short tree", 17); goto LABEL_3; case 2: sub_D1798C(a2, "In this tree there lives a Witch", 32); goto LABEL_3; case 3: sub_D1798C(a2, "A very short Witch", 18); goto LABEL_3; case 4: sub_D1798C(a2, "The Witch stinks of fish", 24); goto LABEL_3; case 5: sub_D1798C(a2, "My question to you is this...", 29); goto LABEL_3; case 6: sub_D1798C(a2, "On a scale from tree to fish", 28); goto LABEL_3; case 7: sub_D1798C(a2, "How many shinies do you have?", 29); goto LABEL_18; default: goto LABEL_4; } case 6: m_threadMessageIndex = this->m_threadMessageIndex; switch ( m_threadMessageIndex ) { case 0: goto LABEL_20; case 1: sub_D1798C(a2, "Might as well give you a riddle", 31); goto LABEL_3; case 2: sub_D1798C(a2, "Since you insist on staying", 27); goto LABEL_3; case 3: sub_D1798C(a2, "'I have always been odd'", 24); goto LABEL_3; case 4: sub_D1798C(a2, "'Remove my start and I am even'", 31); goto LABEL_3; case 5: sub_D1798C(a2, "'When you complete this riddle'", 31); goto LABEL_3; case 6: sub_D1798C(a2, "'I hope you are leaving'", 24); goto LABEL_3; case 7: sub_D1798C(a2, "Can you go now?", 15); goto LABEL_18; default: goto LABEL_4; } case 8: m_threadMessageIndex = this->m_threadMessageIndex; switch ( m_threadMessageIndex ) { case 0: sub_D1798C(a2, "Which came first?", 17); goto LABEL_3; case 1: sub_D1798C(a2, "The chicken or the egg?", 23); goto LABEL_3; case 2: goto LABEL_20; case 3: sub_D1798C(a2, "The egg, of course.", 19); goto LABEL_3; case 4: sub_D1798C(a2, "Then the egg laid the chicken", 29); goto LABEL_3; case 5: sub_D1798C(a2, "... and the chicken said", 24); goto LABEL_3; case 6: sub_D1798C(a2, "The password is on fire", 23); goto LABEL_3; case 7: sub_D1798C(a2, "I need to get some rest...", 26); goto LABEL_18; default: goto LABEL_4; } case 9: m_threadMessageIndex = this->m_threadMessageIndex; if ( !m_threadMessageIndex ) { sub_D1798C(a2, "Remember the 2.1 Awards?", 24); goto LABEL_3; } if ( m_threadMessageIndex == 1 ) { sub_D1798C(a2, "me neither", 10); LABEL_18: this->m_selectedThread = 0; m_threadMessageIndex = this->m_threadMessageIndex; } break; case 0xA: m_threadMessageIndex = this->m_threadMessageIndex; switch ( m_threadMessageIndex ) { case 0: sub_D1798C(a2, "It's been so long", 17); goto LABEL_3; case 1: sub_D1798C(a2, "I feel like I've forgotten something", 36); goto LABEL_3; case 2: LABEL_20: sub_D1798C(a2, "...", 3); goto LABEL_3; case 3: sub_D1798C(a2, "Where's that smoke coming from?", 31); goto LABEL_18; default: goto LABEL_4; } case 0x14: m_threadMessageIndex = this->m_threadMessageIndex; switch ( m_threadMessageIndex ) { case 0: sub_D1798C(a2, "Want to hear a secret?", 22); goto LABEL_3; case 1: sub_D1798C(a2, "Just don't tell RubRub", 22); goto LABEL_3; case 2: sub_D1798C(a2, "I am building my own level", 26); goto LABEL_3; case 3: sub_D1798C(a2, "I call it \"The Challenge\"", 25); goto LABEL_3; case 4: sub_D1798C(a2, "Hope it gets featured", 21); goto LABEL_3; case 5: sub_D1798C(a2, "But probably not...", 19); goto LABEL_3; case 6: sub_D1798C(a2, "RubRub will never notice me", 27); goto LABEL_18; 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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source