// // SecretLayer3::onChest02 from 0x61bb5c to 0x61bbf8 (156 bytes) // // 0 xrefs: // // 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:55:00 +0000 // int __fastcall SecretLayer3::onChest02(int this, cocos2d::CCObject *a2) { int v2; // r4 int v3; // r7 GameStatsManager *v5; // r0 int *v6; // r5 int v7; // r2 int v8; // r3 RewardUnlockLayer **v9; // r5 RewardsPage *v10; // r2 FLAlertLayer *v11; // r4 int v12[3]; // [sp+0h] [bp-14h] BYREF v2 = *(unsigned __int8 *)(this + 324); v3 = this; if ( !*(_BYTE *)(this + 324) ) { (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a2 + 528))(a2, v2); v5 = (GameStatsManager *)(*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a2 + 172))(a2, v2); v12[0] = v2; v12[1] = v2; v12[2] = v2; v6 = (int *)GameStatsManager::sharedState(v5); std::string::__init(v12, "0002", 4u); v9 = (RewardUnlockLayer **)GameStatsManager::unlockSpecialChest(v6, (int)v12, v7, v8); this = std::string::~string((int)v12); if ( v9 ) { v11 = RewardUnlockLayer::create(v9[15], nullptr, v10); (*(void (__fastcall **)(int, FLAlertLayer *, int))(*(_DWORD *)v3 + 232))(v3, v11, 100); return RewardUnlockLayer::showCollectReward(v11, (GJRewardItem *)v9); } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source