// // GameLevelManager::getDifficultyStr from 0x4b5ec8 to 0x4b6044 (380 bytes) // // 1 xrefs: // > LevelSearchLayer::getSearchDiffKey @ 0x4961e8 // // 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:50:08 +0000 // GameLevelManager *__fastcall GameLevelManager::getDifficultyStr( GameLevelManager *this, bool a2, int a3, int a4, bool a5, bool a6, bool a7, bool a8, bool a9, unsigned __int8 a10) { int v11; // r7 const char *v12; // r1 int v13; // r6 const char *v14; // r1 _BOOL4 v15; // r3 cocos2d::CCString *v16; // r0 char *CString; // r0 cocos2d::CCString *v18; // r0 const char *v19; // r0 const char *v20; // r6 size_t v21; // r0 const char *v22; // r1 size_t v23; // r2 int *v24; // r0 _BOOL4 v25; // r6 int v26; // r0 int v27; // r1 int v28; // r2 int v31; // [sp+1Ch] [bp-20h] BYREF int v32; // [sp+20h] [bp-1Ch] int v33; // [sp+24h] [bp-18h] int v34[3]; // [sp+28h] [bp-14h] BYREF v11 = a10; if ( a3 ) { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v12 = "-1"; *((_DWORD *)this + 2) = 0; LABEL_7: std::string::__init((int *)this, v12, 2u); return this; } if ( a9 ) { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v12 = "-2"; *((_DWORD *)this + 2) = 0; goto LABEL_7; } if ( a10 ) { *(_DWORD *)this = 0; v12 = "-3"; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; goto LABEL_7; } v13 = 2; v31 = 0; v32 = 0; v33 = 0; std::string::__init(&v31, &unk_B6B226, 0); v14 = nullptr; while ( 2 ) { switch ( v13 ) { case 3: v15 = a5; goto LABEL_27; case 4: v15 = a6; goto LABEL_27; case 5: v15 = a7; LABEL_27: if ( !v15 ) goto LABEL_16; goto LABEL_12; case 6: if ( !a8 ) goto LABEL_18; goto LABEL_12; default: if ( a4 ) { LABEL_12: if ( v11 ) std::string::append(&v31, ","); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(v13 - 1)); CString = (char *)cocos2d::CCString::getCString(v16); std::string::append(&v31, CString); ++v11; v14 = (const char *)(v13 - 1); } if ( v13 != 6 ) { LABEL_16: ++v13; continue; } LABEL_18: if ( v11 == 1 ) { v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v14); v19 = (const char *)cocos2d::CCString::getCString(v18); *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; v20 = v19; *((_DWORD *)this + 2) = 0; v21 = strlen(v19); v22 = v20; v23 = v21; v24 = (int *)this; goto LABEL_22; } memset(v34, 0, sizeof(v34)); std::string::__init(v34, &unk_B6B226, 0); v25 = sub_4A9CC4((unsigned __int8 *)&v31, (unsigned __int8 *)v34); std::string::~string((int)v34); if ( v25 ) { v24 = (int *)this; v23 = 1; v22 = "-"; *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; LABEL_22: std::string::__init(v24, v22, v23); } else { v26 = v31; v27 = v32; v28 = v33; v31 = 0; v32 = 0; v33 = 0; *(_DWORD *)this = v26; *((_DWORD *)this + 1) = v27; *((_DWORD *)this + 2) = v28; } std::string::~string((int)&v31); return this; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source