// // GameStatsManager::countUnlockedSecretChests from 0x8ccfb8 to 0x8cd004 (76 bytes) // // 5 xrefs: // > SecretRewardsLayer::updateUnlockedGoldLabel @ 0xb9abd4 // > SecretRewardsLayer::updateUnlockedLabel @ 0xb9e210 // > SecretRewardsLayer::updateUnlockedLabel @ 0xb9e28c // > SecretRewardsLayer::init @ 0xba05ec // > @ 0x61c90 // // 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:56:37 +0000 // __int64 __fastcall GameStatsManager::countUnlockedSecretChests(__int64 a1, int a2) { cocos2d::CCDictionary *v2; // x0 __int64 v3; // x3 __int64 v4; // x2 __int64 result; // x0 __int64 v6; // x4 v2 = *(cocos2d::CCDictionary **)(a1 + 760); if ( !a2 ) return cocos2d::CCDictionary::count(v2); if ( !v2 ) return 0; v3 = *((_QWORD *)v2 + 7); if ( !v3 ) return 0; v4 = *(_QWORD *)(v3 + 288); LODWORD(result) = 0; while ( 1 ) { v6 = *(_QWORD *)(v3 + 264); v3 = v4; result = a2 == *(_DWORD *)(v6 + 64) ? (unsigned int)(result + 1) : (unsigned int)result; if ( !v4 ) break; v4 = *(_QWORD *)(v4 + 288); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source