// // SecretLayer2::getBasicMessage from 0xa8e018 to 0xa8e5b4 (1436 bytes) // // 2 xrefs: // > SecretLayer2::getMessage @ 0xa901d0 // > @ 0x65590 // // 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:38 +0000 // __int64 *__usercall SecretLayer2::getBasicMessage@(SecretLayer2 *this@, __int64 *a2@) { int v4; // w1 int v5; // w0 int v6; // w0 GameManager *v8; // x0 __int64 v9; // x2 char v10; // w0 __int64 v11; // x0 __int64 v12; // x1 char *v13; // x1 cocos2d::CCString *v14; // x0 const char *CString; // x0 size_t v16; // x0 char *v17; // [xsp+38h] [xbp+38h] __int64 v18; // [xsp+40h] [xbp+40h] BYREF __int64 v19; // [xsp+48h] [xbp+48h] char *v20; // [xsp+50h] [xbp+50h] v4 = *((_DWORD *)this + 112); v5 = *((_DWORD *)this + 109); *((_DWORD *)this + 112) = v4 + 1; if ( v5 < 0 ) { if ( (float)((float)rand() * 4.6566e-10) <= 0.8 ) { *((_DWORD *)this + 109) = 0; v6 = 0; } else { v6 = 9; *((_DWORD *)this + 109) = 9; } } else { v6 = v5 + 1; if ( v6 > 29 ) { *((_DWORD *)this + 109) = 0; LABEL_4: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "I have heard about you", 0x16u); return a2; } *((_DWORD *)this + 109) = v6; } v8 = (GameManager *)(unsigned int)(v6 - 1); switch ( (int)v8 ) { case 0: v9 = GameManager::sharedState(v8) + 632; v10 = *(_BYTE *)v9; v18 = 0; v19 = 0; v20 = nullptr; if ( (v10 & 1) != 0 ) { std::string::__init(&v18, *(void **)(v9 + 16), *(_QWORD *)(v9 + 8)); } else { v11 = *(_QWORD *)v9; v12 = *(_QWORD *)(v9 + 8); v20 = *(char **)(v9 + 16); v18 = v11; v19 = v12; } v13 = (char *)&v18 + 1; if ( (v18 & 1) != 0 ) v13 = v20; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s the sneaky one...", v13); CString = (const char *)cocos2d::CCString::getCString(v14); *a2 = 0; a2[1] = 0; a2[2] = 0; v17 = (char *)CString; v16 = strlen(CString); std::string::__init(a2, v17, v16); if ( (v18 & 1) != 0 ) operator delete(v20); break; case 1: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "You think you can fool me", 0x19u); break; case 2: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "You are deeply mistaken", 0x17u); break; case 3: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Go away!", 8u); break; case 4: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "I should have hid this room better...", 0x25u); break; case 5: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "You're not supposed to be in here...", 0x24u); break; case 6: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "RubRub won't like this...", 0x19u); break; case 7: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "zzzZZZZ...", 0xAu); break; case 8: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Don't touch that!", 0x11u); break; case 9: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Why you touch my stuff?", 0x17u); break; case 10: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "RubRub better not find you in here...", 0x25u); break; case 11: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Can't you just leave?", 0x15u); break; case 12: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "This is not the room you are looking for...", 0x2Bu); break; case 13: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Sneaky sneaky...", 0x10u); break; case 14: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "It's my precious...", 0x13u); break; case 15: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "You shall not pass!", 0x13u); break; case 16: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Don't push the button!", 0x16u); break; case 17: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "You're gonna get me in trouble...", 0x21u); break; case 18: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "This is getting ridiculus...", 0x1Cu); break; case 19: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Go collect some stars", 0x15u); break; case 20: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Maybe there are new levels?", 0x1Bu); break; case 21: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Just, stop bothering me", 0x17u); break; case 22: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "I'm gonna stop talking", 0x16u); break; case 23: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "...", 3u); break; case 24: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "......", 6u); break; case 25: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "GAH!", 4u); break; case 26: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "You're hopeless...", 0x12u); break; case 27: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Really, still here?", 0x13u); break; case 28: *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, "Fine, press the button", 0x16u); break; default: goto LABEL_4; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source