// // SecretRewardsLayer::updateUnlockedGoldLabel from 0x6cac48 to 0x6cace0 (152 bytes) // // 2 xrefs: // > SecretRewardsLayer::onGoldChest @ 0x6cdd20 // > SecretRewardsLayer::init @ 0x6cee9e // // 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:56:58 +0000 // int __fastcall SecretRewardsLayer::updateUnlockedGoldLabel(int **this, int a2, int a3) { int v4; // r0 GameStatsManager *v5; // r7 int v6; // r0 GameStatsManager *v7; // r0 _DWORD *v8; // r8 void (__fastcall *v9)(_DWORD *, int); // r9 GameStatsManager *v10; // r6 cocos2d::CCString *v11; // r0 int CString; // r0 int *v13; // r0 int v14; // r3 int (__fastcall *v15)(int *); // r2 int (__fastcall *v17)(int *); // r3 SecretRewardsLayer *v18; // [sp+0h] [bp-Ch] BYREF int v19; // [sp+4h] [bp-8h] int v20; // [sp+8h] [bp-4h] v18 = (SecretRewardsLayer *)this; v19 = a2; v20 = a3; v4 = GameStatsManager::sharedState((GameStatsManager *)this); v5 = (GameStatsManager *)GameStatsManager::countUnlockedSecretChests(v4, 9); v6 = GameStatsManager::sharedState(v5); v7 = (GameStatsManager *)GameStatsManager::countSecretChests(v6, 9); v8 = *(this + 85); v9 = *(void (__fastcall **)(_DWORD *, int))(*v8 + 464); v10 = v7; v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i / %i", (const char *)v5, v7, *v8, v18, v19, v20); CString = cocos2d::CCString::getCString(v11); v9(v8, CString); v13 = *(this + 85); v14 = *v13; if ( (int)v5 < (int)v10 ) { v17 = *(int (__fastcall **)(int *))(v14 + 536); qmemcpy(&v18, "dWp", 3); return v17(v13); } else { v15 = *(int (__fastcall **)(int *))(v14 + 536); LOWORD(v18) = -206; BYTE2(v18) = 50; return v15(v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source