// // GameLevelManager::getCompletedGauntletDemons from 0x4ab4bc to 0x4ab528 (108 bytes) // // 1 xrefs: // > GameLevelManager::updateUserScore @ 0x4d6608 // // 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:49:58 +0000 // int __fastcall GameLevelManager::getCompletedGauntletDemons(GameLevelManager *this) { int v1; // r4 int v2; // r3 int v3; // r5 const void *v4; // r0 GJGameLevel *v5; // r0 GJGameLevel *v6; // r6 GameStatsManager *v7; // r0 int v8; // r2 v1 = *((_DWORD *)this + 168); if ( v1 ) { v2 = *(_DWORD *)(v1 + 52); if ( v2 ) v3 = *(_DWORD *)(v2 + 272); else v3 = 0; v1 = 0; while ( v2 ) { v4 = *(const void **)(v2 + 260); if ( v4 ) { v5 = (GJGameLevel *)_dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); v6 = v5; if ( v5 ) { if ( *((_DWORD *)v5 + 193) - *((_DWORD *)v5 + 194) == 10 && GJGameLevel::getNormalPercent(v5) == 100 ) { v7 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)&dword_64); if ( GameStatsManager::hasCompletedLevel(v7, v6) ) ++v1; } } } if ( v3 ) v8 = *(_DWORD *)(v3 + 272); else v8 = 0; v2 = v3; v3 = v8; } } return v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source