// // SecretRewardsLayer::updateUnlockedLabel from 0x100384cd4 to 0x100384e58 (388 bytes) // // 3 xrefs: // > SecretRewardsLayer::init @ 0x10038403c // > SecretRewardsLayer::createSecondaryLayer @ 0x100385dac // > SecretRewardsLayer::onSelectItem @ 0x100386710 // // 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 11:03:32 +0000 // void __fastcall SecretRewardsLayer::updateUnlockedLabel(__int64 a1) { __int64 v2; // x0 __int64 v3; // x20 __int64 v4; // x0 int v5; // w0 __int64 v6; // x21 void *v7; // x0 __int64 CString; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x20 __int64 v12; // x0 int v13; // w21 void *v14; // x0 char *v15; // x0 __int64 v16; // x0 void **v17; // x1 __int64 v18; // x0 __n128 v19; // q0 __int64 v20; // x22 void **v21; // x1 __int64 v22; // x0 __int16 v23; // [xsp+14h] [xbp-3Ch] BYREF char v24; // [xsp+16h] [xbp-3Ah] void *__p[2]; // [xsp+18h] [xbp-38h] BYREF char v26; // [xsp+2Fh] [xbp-21h] v2 = GameStatsManager::sharedState(a1); v3 = GameStatsManager::countUnlockedSecretChests(v2, 0); v4 = GameStatsManager::sharedState(v3); v5 = GameStatsManager::countSecretChests(v4, 0); v6 = *(_QWORD *)(a1 + 440); v7 = sub_1003065B0("%i/%i", v3, v5); CString = cocos2d::CCString::getCString((__int64)v7); v9 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL))(v6, CString); if ( (*(_BYTE *)(a1 + 584) & 1) == 0 ) { v10 = GameStatsManager::sharedState(v9); v11 = GameStatsManager::countUnlockedSecretChests(v10, *(unsigned int *)(a1 + 588)); v12 = GameStatsManager::sharedState(v11); v13 = GameStatsManager::countSecretChests(v12, *(unsigned int *)(a1 + 588)); v14 = sub_1003065B0("%i/%i", v11, v13); v15 = (char *)cocos2d::CCString::getCString((__int64)v14); sub_100009900(__p, v15); v16 = *(_QWORD *)(a1 + 448); if ( v16 ) { if ( v26 >= 0 ) v17 = __p; else v17 = (void **)__p[0]; (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v16 + 928LL))(v16, v17); } v19 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 464), *(int *)(a1 + 588)); v20 = v18; if ( v18 ) { if ( v26 >= 0 ) v21 = __p; else v21 = (void **)__p[0]; (*(void (__fastcall **)(__int64, void **, __n128))(*(_QWORD *)v18 + 928LL))(v18, v21, v19); } if ( (int)v11 >= v13 ) { v22 = *(_QWORD *)(a1 + 448); if ( v22 ) { v24 = -1; v23 = -256; (*(void (__fastcall **)(__int64, __int16 *, __n128))(*(_QWORD *)v22 + 1072LL))(v22, &v23, v19); } if ( v20 ) { v24 = 50; v23 = -206; (*(void (__fastcall **)(__int64, __int16 *, __n128))(*(_QWORD *)v20 + 1072LL))(v20, &v23, v19); } } if ( v26 < 0 ) operator delete(__p[0]); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source