// // GameLevelManager::getDifficultyStr from 0x81cde8 to 0x81d0f4 (780 bytes) // // 2 xrefs: // > LevelSearchLayer::getSearchDiffKey @ 0x7de950 // > @ 0x42cd0 // // 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 12:54:59 +0000 // __int64 *__usercall GameLevelManager::getDifficultyStr@( char a1@, unsigned __int8 a2@, unsigned __int8 a3@, unsigned __int8 a4@, unsigned __int8 a5@, unsigned __int8 a6@, char a7@, __int64 *a8@, bool a9) { int v11; // w24 int v12; // w26 int v13; // w19 const char *v14; // x1 int v15; // w23 int v16; // w0 unsigned int v17; // w22 cocos2d::CCString *v19; // x0 size_t v20; // x0 _BOOL4 v21; // w19 __int64 v22; // x0 __int64 v23; // x1 cocos2d::CCString *v24; // x0 const char *v25; // x0 size_t v26; // x0 int v27; // [xsp+6Ch] [xbp+6Ch] int v28; // [xsp+70h] [xbp+70h] int v29; // [xsp+74h] [xbp+74h] char *CString; // [xsp+78h] [xbp+78h] char *v31; // [xsp+78h] [xbp+78h] __int64 v32; // [xsp+88h] [xbp+88h] BYREF __int64 v33; // [xsp+90h] [xbp+90h] void *v34; // [xsp+98h] [xbp+98h] __int64 v35[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v36; // [xsp+B0h] [xbp+B0h] v29 = a3; v11 = a2; v12 = a4; v28 = a5; v27 = a6; if ( a1 ) { *a8 = 0; a8[1] = 0; a8[2] = 0; std::string::__init(a8, &word_117CE08, 2u); return a8; } if ( a7 ) { *a8 = 0; a8[1] = 0; a8[2] = 0; std::string::__init(a8, "-2", 2u); return a8; } if ( a9 ) { *a8 = 0; a8[1] = 0; a8[2] = 0; std::string::__init(a8, "-3", 2u); return a8; } v32 = 0; v33 = 0; v13 = 2; v34 = nullptr; std::string::__init(&v32, &byte_11B8890, 0); v14 = nullptr; v15 = 0; v16 = -1; v17 = 1; LABEL_5: switch ( v16 ) { case 0: if ( v29 ) goto LABEL_9; goto LABEL_19; case 1: if ( v12 ) goto LABEL_9; goto LABEL_19; case 2: if ( !v28 ) goto LABEL_19; goto LABEL_9; case 3: if ( v27 ) goto LABEL_9; if ( v15 == 1 ) goto LABEL_28; goto LABEL_14; default: goto LABEL_20; } while ( 1 ) { LABEL_20: if ( v11 ) { LABEL_9: if ( v15 ) std::string::append((__int64)&v32, &byte_1169BE0, 1u); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v17); CString = (char *)cocos2d::CCString::getCString(v19); v20 = strlen(CString); std::string::append((__int64)&v32, CString, v20); ++v15; v14 = (const char *)v17; } if ( v13 == 6 ) break; LABEL_19: v16 = ++v13 - 3; v17 = v13 - 1; if ( (unsigned int)(v13 - 3) <= 3 ) goto LABEL_5; } if ( v15 == 1 ) { LABEL_28: v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v14); v25 = (const char *)cocos2d::CCString::getCString(v24); *a8 = 0; a8[1] = 0; a8[2] = 0; v31 = (char *)v25; v26 = strlen(v25); std::string::__init(a8, v31, v26); } else { LABEL_14: v35[0] = 0; v35[1] = 0; v36 = nullptr; std::string::__init(v35, &byte_11B8890, 0); v21 = sub_7FEA60((__int64)&v32, (__int64)v35); if ( (v35[0] & 1) != 0 ) { operator delete(v36); if ( !v21 ) goto LABEL_16; } else if ( !v21 ) { LABEL_16: v22 = v32; v23 = v33; a8[2] = (__int64)v34; v32 = 0; v33 = 0; v34 = nullptr; *a8 = v22; a8[1] = v23; goto LABEL_17; } *a8 = 0; a8[1] = 0; a8[2] = 0; std::string::__init(a8, &byte_1191DE0, 1u); } LABEL_17: if ( (v32 & 1) != 0 ) operator delete(v34); return a8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source