// // SecretLayer2::getThreadMessage from 0xa8fb48 to 0xa90154 (1548 bytes) // // 2 xrefs: // > SecretLayer2::getMessage @ 0xa90180 // > @ 0x4dc38 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:00:39 +0000 // __int64 __usercall SecretLayer2::getThreadMessage@(SecretLayer2 *this@, __int64 a2@) { int v4; // w0 int v6; // w0 __int64 *v7; // x0 GameManager *v8; // x0 *((_DWORD *)this + 112) = 0; *(_BYTE *)(a2 + 17) = 0; *(_WORD *)(a2 + 18) = 0; *(_DWORD *)(a2 + 20) = 0; *(_BYTE *)a2 = 30; strcpy((char *)(a2 + 1), "zzzzzzZZZZZZZZZ"); switch ( *((_DWORD *)this + 110) ) { case 1: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "Oh my head..."); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "I feel so drained"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "Would be nice to get some energy"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "You know, for my head..."); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "Nothing? Ok..."); goto LABEL_18; default: goto LABEL_4; } case 3: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "I heard what you did"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "You little thief"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "You took 'Spookys' coin"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "That is pure evil..."); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "I like it"); goto LABEL_3; case 5: std::string::assign((__int64 *)a2, "I know what you're thinking"); goto LABEL_3; case 6: std::string::assign((__int64 *)a2, "But you will never get my coin..."); goto LABEL_3; case 7: std::string::assign((__int64 *)a2, "I keep it safe"); goto LABEL_3; case 8: v7 = std::string::assign((__int64 *)a2, "Too clever for you..."); *((_DWORD *)this + 110) = 0; v8 = (GameManager *)GameManager::sharedState((GameManager *)v7); GameManager::setUGV(v8, &byte_120A098, 1u); goto LABEL_3; default: goto LABEL_4; } goto LABEL_4; case 4: v4 = *((_DWORD *)this + 111); if ( !v4 ) { std::string::assign((__int64 *)a2, "This is thread 4"); goto LABEL_3; } if ( v4 != 1 ) goto LABEL_4; std::string::assign((__int64 *)a2, "Thread 4 end"); goto LABEL_18; case 5: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "So... there is a tree"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "A very short tree"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "In this tree there lives a Witch"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "A very short Witch"); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "The Witch stinks of fish"); goto LABEL_3; case 5: std::string::assign((__int64 *)a2, "My question to you is this..."); goto LABEL_3; case 6: std::string::assign((__int64 *)a2, "On a scale from tree to fish"); goto LABEL_3; case 7: std::string::assign((__int64 *)a2, "How many shinies do you have?"); goto LABEL_18; default: goto LABEL_4; } case 6: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: goto LABEL_20; case 1: std::string::assign((__int64 *)a2, "Might as well give you a riddle"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "Since you insist on staying"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "'I have always been odd'"); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "'Remove my start and I am even'"); goto LABEL_3; case 5: std::string::assign((__int64 *)a2, "'When you complete this riddle'"); goto LABEL_3; case 6: std::string::assign((__int64 *)a2, "'I hope you are leaving'"); goto LABEL_3; case 7: std::string::assign((__int64 *)a2, "Can you go now?"); goto LABEL_18; default: goto LABEL_4; } case 8: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "Which came first?"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "The chicken or the egg?"); goto LABEL_3; case 2: goto LABEL_20; case 3: std::string::assign((__int64 *)a2, "The egg, of course."); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "Then the egg laid the chicken"); goto LABEL_3; case 5: std::string::assign((__int64 *)a2, "... and the chicken said"); goto LABEL_3; case 6: std::string::assign((__int64 *)a2, "The password is on fire"); goto LABEL_3; case 7: std::string::assign((__int64 *)a2, "I need to get some rest..."); goto LABEL_18; default: goto LABEL_4; } case 9: v4 = *((_DWORD *)this + 111); if ( !v4 ) { std::string::assign((__int64 *)a2, "Remember the 2.1 Awards?"); LABEL_3: v4 = *((_DWORD *)this + 111); goto LABEL_4; } if ( v4 != 1 ) { LABEL_4: *((_DWORD *)this + 111) = v4 + 1; return a2; } std::string::assign((__int64 *)a2, "me neither"); LABEL_18: v6 = *((_DWORD *)this + 111); *((_DWORD *)this + 110) = 0; *((_DWORD *)this + 111) = v6 + 1; return a2; case 0xA: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "It's been so long"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "I feel like I've forgotten something"); goto LABEL_3; case 2: LABEL_20: std::string::assign((__int64 *)a2, "..."); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "Where's that smoke coming from?"); goto LABEL_18; default: goto LABEL_4; } case 0x14: v4 = *((_DWORD *)this + 111); switch ( v4 ) { case 0: std::string::assign((__int64 *)a2, "Want to hear a secret?"); goto LABEL_3; case 1: std::string::assign((__int64 *)a2, "Just don't tell RubRub"); goto LABEL_3; case 2: std::string::assign((__int64 *)a2, "I am building my own level"); goto LABEL_3; case 3: std::string::assign((__int64 *)a2, "I call it \"The Challenge\""); goto LABEL_3; case 4: std::string::assign((__int64 *)a2, "Hope it gets featured"); goto LABEL_3; case 5: std::string::assign((__int64 *)a2, "But probably not..."); goto LABEL_3; case 6: std::string::assign((__int64 *)a2, "RubRub will never notice me"); goto LABEL_18; default: goto LABEL_4; } default: std::string::assign((__int64 *)a2, "zzzZZZZ"); goto LABEL_3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source