// // LevelBadgePopup::loadLevelsFinished from 0xc71204 to 0xc71460 (604 bytes) // // 3 xrefs: // > `non-virtual thunk to'LevelBadgePopup::loadLevelsFinished @ 0xc71468 // > @ 0x58ca8 // > @ 0x14edb60 // // 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:05:30 +0000 // __int64 __fastcall LevelBadgePopup::loadLevelsFinished(LevelBadgePopup *this, cocos2d::CCArray *a2, char *a3) { GameLevelManager *v6; // x0 size_t v7; // x0 size_t v8; // x4 cocos2d::CCNode **v10; // x0 signed int v11; // w19 unsigned __int64 v12; // x0 cocos2d::CCObject *v13; // x1 __int64 v14; // x19 void (__fastcall *v15)(__int64, __int64, __int64); // x21 const char *v16; // x1 size_t v17; // x0 __int64 v18; // x0 char *v19; // [xsp+48h] [xbp+48h] __int64 v20[2]; // [xsp+58h] [xbp+58h] BYREF void *v21; // [xsp+68h] [xbp+68h] __int64 v22[2]; // [xsp+70h] [xbp+70h] BYREF void *v23; // [xsp+80h] [xbp+80h] v6 = (GameLevelManager *)_stack_chk_guard; if ( !a3 ) goto LABEL_7; v7 = strlen(a3); v8 = *((_BYTE *)this + 696) >> 1; if ( (*((_BYTE *)this + 696) & 1) != 0 ) v8 = *((_QWORD *)this + 88); if ( v8 == v7 ) { v6 = (GameLevelManager *)std::string::compare((__int64)this + 696, 0, 0xFFFFFFFFFFFFFFFFLL, a3, v8); if ( !(_DWORD)v6 ) { LABEL_7: if ( *(LevelBadgePopup **)(GameLevelManager::sharedState(v6) + 1224) == (LevelBadgePopup *)((char *)this + 664) ) *(_QWORD *)(GameLevelManager::sharedState((LevelBadgePopup *)((char *)this + 664)) + 1224) = 0; v10 = *((cocos2d::CCNode ***)this + 90); if ( v10 ) { LoadingCircle::fadeAndRemove(v10); *((_QWORD *)this + 90) = 0; } v11 = 0; if ( a2 ) { while ( 1 ) { v12 = cocos2d::CCArray::count(a2); if ( v11 >= (int)v12 ) break; v13 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a2, v11); if ( *((_BYTE *)this + 676) ) { v12 = *((unsigned int *)v13 + 86); if ( (_DWORD)v12 == *((_DWORD *)this + 168) ) goto LABEL_25; } else { v12 = (unsigned int)(*((_DWORD *)v13 + 82) - *((_DWORD *)v13 + 83)); if ( (_DWORD)v12 == *((_DWORD *)this + 168) ) { LABEL_25: if ( !v13 ) break; LevelBadgePopup::buildCell(this, v13); return _stack_chk_guard; } } ++v11; } } else { v12 = 0; } v14 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v12) + 272); v15 = *(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v14 + 464LL); if ( *((_BYTE *)this + 676) ) v16 = "List not found"; else v16 = "Level not found"; v19 = (char *)v16; v20[0] = 0; v20[1] = 0; v21 = nullptr; v17 = strlen(v16); std::string::__init(v20, v19, v17); v22[0] = 0; v22[1] = 0; v23 = nullptr; std::string::__init(v22, &byte_11B8890, 0); v18 = TextAlertPopup::create((char *)v20, 150, (char *)v22, 0.5, 0.6); v15(v14, v18, 1000); if ( (v22[0] & 1) != 0 ) operator delete(v23); if ( (v20[0] & 1) != 0 ) operator delete(v21); LevelBadgePopup::onClose(this, nullptr); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source