// // GameLevelManager::getCompletedGauntletDemons from 0x805860 to 0x805938 (216 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x852954 // > @ 0x5ea50 // // 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:45 +0000 // __int64 __fastcall GameLevelManager::getCompletedGauntletDemons(GameLevelManager *this) { __int64 v1; // x0 __int64 v2; // x0 __int64 v3; // x19 unsigned int v4; // w23 const void *v5; // x0 GJGameLevel *v6; // x0 GJGameLevel *v7; // x20 GameStatsManager *NormalPercent; // x0 GameStatsManager *v9; // x0 v1 = *((_QWORD *)this + 117); if ( v1 ) { v2 = *(_QWORD *)(v1 + 56); if ( v2 ) { v3 = *(_QWORD *)(v2 + 288); v4 = 0; while ( 1 ) { v5 = *(const void **)(v2 + 264); if ( v5 && (v6 = (GJGameLevel *)_dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0), (v7 = v6) != nullptr) && *((_DWORD *)v6 + 237) - *((_DWORD *)v6 + 238) == 10 && (NormalPercent = (GameStatsManager *)GJGameLevel::getNormalPercent(v6), (_DWORD)NormalPercent == 100) ) { v9 = (GameStatsManager *)GameStatsManager::sharedState(NormalPercent); if ( (unsigned __int8)GameStatsManager::hasCompletedLevel(v9, v7) ) ++v4; if ( !v3 ) return v4; } else if ( !v3 ) { return v4; } v2 = v3; v3 = *(_QWORD *)(v3 + 288); } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source