// // DailyLevelPage::claimLevelReward from 0xa6eeb0 to 0xa6f030 (384 bytes) // // 2 xrefs: // > DailyLevelNode::onClaimReward @ 0xa6f0d0 // > @ 0x67450 // // 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 13:00:22 +0000 // __int64 __fastcall DailyLevelPage::claimLevelReward( int *a1, DailyLevelNode *a2, GJGameLevel *a3, const cocos2d::CCPoint *a4) { GameStatsManager *v8; // x0 GJRewardItem *v9; // x0 RewardsPage *v10; // x2 GJRewardItem *v11; // x22 RewardUnlockLayer *v12; // x23 GameLevelManager *v13; // x0 unsigned int *v14; // x0 GameStatsManager *v16; // x0 __int64 v17; // x0 int BonusDiamonds; // [xsp+58h] [xbp+48h] _BYTE v19[8]; // [xsp+60h] [xbp+50h] BYREF v8 = (GameStatsManager *)GameStatsManager::sharedState(_stack_chk_guard); v9 = GameStatsManager::completedDailyLevel(v8, a3); v11 = v9; if ( v9 ) { v12 = (RewardUnlockLayer *)RewardUnlockLayer::create((RewardUnlockLayer *)*((unsigned int *)v9 + 16), 0, v10); (*(void (__fastcall **)(int *, RewardUnlockLayer *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v12, 100); RewardUnlockLayer::showCollectReward(v12, v11); } else { v16 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); BonusDiamonds = GameStatsManager::getBonusDiamonds(v16, *((_DWORD *)a3 + 237) - *((_DWORD *)a3 + 238)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, a4); v17 = CurrencyRewardLayer::create(0, 0, 0, BonusDiamonds, 0, 0, 0, 0, 0.0, 1.0, (const cocos2d::CCPoint *)v19, 0); (*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v17, 14); } v13 = (GameLevelManager *)DailyLevelPage::exitDailyNode((DailyLevelPage *)a1, a2, 0.0); v14 = (unsigned int *)GameLevelManager::sharedState(v13); if ( (int)GameLevelManager::getDailyID(v14, a1[183]) <= *((_DWORD *)a3 + 230) - *((_DWORD *)a3 + 231) ) DailyLevelPage::createDailyNode((DailyLevelPage *)a1, nullptr, 0, 0.5, 0); else DailyLevelPage::downloadAndCreateNode((DailyLevelPage *)a1); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source