// // SecretLayer2::getBasicMessage from 0x61cfec to 0x61d354 (872 bytes) // // 1 xrefs: // > SecretLayer2::getMessage @ 0x61e4c2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:55:01 +0000 // int *__fastcall SecretLayer2::getBasicMessage(SecretLayer2 *this, int a2) { int *v2; // r4 int v4; // r3 int v5; // r3 int *v6; // r0 const char *v7; // r1 int v8; // r0 const char *v9; // r1 cocos2d::CCString *v10; // r0 const char *CString; // r0 const char *v12; // r7 size_t v13; // r0 size_t v14; // r2 int v16[3]; // [sp+0h] [bp-14h] BYREF v2 = (int *)this; ++*(_DWORD *)(a2 + 344); v4 = *(_DWORD *)(a2 + 332); if ( v4 >= 0 ) { v5 = v4 + 1; } else { this = (SecretLayer2 *)rand(); if ( vcvts_n_f32_s32((unsigned int)this, 0x1Fu) <= 0.8 ) v5 = 0; else v5 = 9; } *(_DWORD *)(a2 + 332) = v5; if ( *(int *)(a2 + 332) > 29 ) *(_DWORD *)(a2 + 332) = 0; switch ( *(_DWORD *)(a2 + 332) ) { case 0: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "I have heard about you"; v2[2] = 0; goto LABEL_47; case 1: v8 = GameManager::sharedState(this); std::string::basic_string(v16, v8 + 448); if ( (v16[0] & 1) != 0 ) v9 = (const char *)v16[2]; else v9 = (char *)v16 + 1; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s the sneaky one...", v9); CString = (const char *)cocos2d::CCString::getCString(v10); *v2 = 0; v2[1] = 0; v12 = CString; v2[2] = 0; v13 = strlen(CString); std::string::__init(v2, v12, v13); std::string::~string((int)v16); return v2; case 2: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "You think you can fool me"; v2[2] = 0; goto LABEL_20; case 3: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "You are deeply mistaken"; v2[2] = 0; goto LABEL_38; case 4: v6 = v2; *v2 = 0; v14 = 8; v2[1] = 0; v7 = "Go away!"; v2[2] = 0; break; case 5: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "I should have hid this room better..."; v2[2] = 0; goto LABEL_25; case 6: v6 = v2; *v2 = 0; v14 = 36; v2[1] = 0; v7 = "You're not supposed to be in here..."; v2[2] = 0; break; case 7: v6 = v2; *v2 = 0; v7 = "RubRub won't like this..."; v2[1] = 0; v2[2] = 0; LABEL_20: v14 = 25; break; case 8: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "zzzZZZZ..."; v2[2] = 0; goto LABEL_49; case 9: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "Don't touch that!"; v2[2] = 0; goto LABEL_51; case 0xA: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "Why you touch my stuff?"; v2[2] = 0; goto LABEL_38; case 0xB: v6 = v2; *v2 = 0; v7 = "RubRub better not find you in here..."; v2[1] = 0; v2[2] = 0; LABEL_25: v14 = 37; break; case 0xC: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "Can't you just leave?"; v2[2] = 0; goto LABEL_35; case 0xD: v6 = v2; *v2 = 0; v14 = 43; v2[1] = 0; v7 = "This is not the room you are looking for..."; v2[2] = 0; break; case 0xE: v6 = v2; *v2 = 0; v14 = 16; v2[1] = 0; v7 = "Sneaky sneaky..."; v2[2] = 0; break; case 0xF: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "It's my precious..."; v2[2] = 0; goto LABEL_45; case 0x10: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "You shall not pass!"; v2[2] = 0; goto LABEL_45; case 0x11: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "Don't push the button!"; v2[2] = 0; goto LABEL_47; case 0x12: v6 = v2; *v2 = 0; v14 = 33; v2[1] = 0; v7 = "You're gonna get me in trouble..."; v2[2] = 0; break; case 0x13: v6 = v2; *v2 = 0; v14 = 28; v2[1] = 0; v7 = "This is getting ridiculus..."; v2[2] = 0; break; case 0x14: v6 = v2; *v2 = 0; v7 = "Go collect some stars"; v2[1] = 0; v2[2] = 0; LABEL_35: v14 = 21; break; case 0x15: v6 = v2; *v2 = 0; v14 = 27; v2[1] = 0; v7 = "Maybe there are new levels?"; v2[2] = 0; break; case 0x16: v6 = v2; *v2 = 0; v7 = "Just, stop bothering me"; v2[1] = 0; v2[2] = 0; LABEL_38: v14 = 23; break; case 0x17: v6 = v2; *v2 = 0; v2[1] = 0; v7 = "I'm gonna stop talking"; v2[2] = 0; goto LABEL_47; case 0x18: v6 = v2; *v2 = 0; v14 = 3; v2[1] = 0; v7 = "..."; v2[2] = 0; break; case 0x19: v6 = v2; *v2 = 0; v14 = 6; v2[1] = 0; v7 = "......"; v2[2] = 0; break; case 0x1A: v6 = v2; *v2 = 0; v14 = 4; v2[1] = 0; v7 = "GAH!"; v2[2] = 0; break; case 0x1B: v6 = v2; *v2 = 0; v14 = 18; v2[1] = 0; v7 = "You're hopeless..."; v2[2] = 0; break; case 0x1C: v6 = v2; *v2 = 0; v7 = "Really, still here?"; v2[1] = 0; v2[2] = 0; LABEL_45: v14 = 19; break; case 0x1D: v6 = v2; *v2 = 0; v7 = "Fine, press the button"; v2[1] = 0; v2[2] = 0; LABEL_47: v14 = 22; break; case 0x1E: v6 = v2; *v2 = 0; v7 = "Happy now?"; v2[1] = 0; v2[2] = 0; LABEL_49: v14 = 10; break; default: v6 = v2; *v2 = 0; v7 = "Don't touch that!"; v2[1] = 0; v2[2] = 0; LABEL_51: v14 = 17; break; } std::string::__init(v6, v7, v14); return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source