// // GameLevelManager::createAndGetLevelLists from 0x81c5e4 to 0x81c7e0 (508 bytes) // // 2 xrefs: // > GameLevelManager::onGetLevelListsCompleted @ 0x848c68 // > @ 0xf0670 // // 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:58 +0000 // cocos2d::CCArray *__fastcall GameLevelManager::createAndGetLevelLists(__int64 a1, char *a2) { cocos2d::CCArray *v3; // x23 char *v4; // x19 char v5; // t1 size_t v6; // x0 cocos2d::CCArray *v7; // x22 unsigned int i; // w21 cocos2d::CCString *v9; // x0 const char *CString; // x0 size_t v11; // x0 GJLevelList *v12; // x0 cocos2d::CCDictionary *v13; // x1 cocos2d::CCObject *v14; // x1 char *v17; // [xsp+48h] [xbp+48h] cocos2d::CCObject *v18; // [xsp+48h] [xbp+48h] __int64 v19; // [xsp+58h] [xbp+58h] BYREF size_t v20; // [xsp+60h] [xbp+60h] void *v21; // [xsp+68h] [xbp+68h] __int64 v22; // [xsp+70h] [xbp+70h] BYREF size_t v23; // [xsp+78h] [xbp+78h] void *v24; // [xsp+80h] [xbp+80h] v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v5 = *a2; v4 = a2 + 1; if ( (v5 & 1) != 0 ) v4 = *((char **)a2 + 2); v22 = 0; v23 = 0; v24 = nullptr; v6 = strlen(v4); std::string::__init(&v22, v4, v6); v7 = sub_80CFCC((unsigned __int8 *)&v22, "|"); if ( (v22 & 1) != 0 ) operator delete(v24); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v7); ++i ) { v9 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v7, i); CString = (const char *)cocos2d::CCString::getCString(v9); v19 = 0; v20 = 0; v21 = nullptr; v17 = (char *)CString; v11 = strlen(CString); std::string::__init(&v19, v17, v11); v22 = 0; v23 = 0; v24 = nullptr; if ( (v19 & 1) != 0 ) { std::string::__init(&v22, v21, v20); } else { v24 = v21; v22 = v19; v23 = v20; } v12 = (GJLevelList *)GameLevelManager::responseToDict((__int64)&v22, 0); v14 = (cocos2d::CCObject *)GJLevelList::create(v12, v13); if ( (v22 & 1) != 0 ) { v18 = v14; operator delete(v24); v14 = v18; } if ( v14 ) cocos2d::CCArray::addObject(v3, v14); if ( (v19 & 1) != 0 ) operator delete(v21); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source