// // ChallengesPage::claimItem from 0xa64454 to 0xa645d8 (388 bytes) // // 2 xrefs: // > ChallengeNode::onClaimReward @ 0xa64644 // > @ 0xfcef8 // // 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:16 +0000 // __int64 __fastcall ChallengesPage::claimItem( cocos2d::CCDictionary **a1, __int64 a2, GJChallengeItem *a3, const cocos2d::CCPoint *a4) { unsigned int v6; // w22 GameStatsManager *v7; // x0 cocos2d::CCDictionary *v8; // x23 const cocos2d::CCPoint *v9; // x1 GameStatsManager *v10; // x0 GameStatsManager *v11; // x0 __int64 v13; // x0 int v15; // [xsp+58h] [xbp+48h] cocos2d::CCPoint *v16; // [xsp+58h] [xbp+48h] _BYTE v17[8]; // [xsp+60h] [xbp+50h] BYREF v6 = *((_DWORD *)a3 + 26); v7 = (GameStatsManager *)GameStatsManager::sharedState(_stack_chk_guard); GameStatsManager::completedChallenge(v7, a3); v8 = a1[90]; v9 = a4; if ( v8 ) { v15 = *((_DWORD *)a3 + 18) - *((_DWORD *)a3 + 19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v9); CurrencyRewardLayer::createObjects((int)v8, 3, v15, (cocos2d::CCPoint *)v17); } else { v16 = (cocos2d::CCPoint *)(unsigned int)(*((_DWORD *)a3 + 18) - *((_DWORD *)a3 + 19)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v9); v13 = CurrencyRewardLayer::create(0, 0, 0, v16, 0, 0, 0, 0, 0.0, 1.0, v17, 0); a1[90] = (cocos2d::CCDictionary *)v13; *(_QWORD *)(v13 + 408) = a1 + 85; (*((void (__fastcall **)(cocos2d::CCDictionary **, cocos2d::CCDictionary *, __int64))*a1 + 58))(a1, a1[90], 14); } v10 = (GameStatsManager *)ChallengesPage::exitNodeAtSlot(a1, v6, 0.0); v11 = (GameStatsManager *)GameStatsManager::sharedState(v10); GameStatsManager::processChallengeQueue(v11, (const char *)v6); ChallengesPage::createChallengeNode(a1, v6, 0, 0.5, 1u); ChallengesPage::updateTimers((ChallengesPage *)a1, 0.0); ChallengesPage::updateDots((GameStatsManager *)a1); return _stack_chk_guard; }