// // ChallengesPage::createChallengeNode from 0xa636f4 to 0xa63908 (532 bytes) // // 4 xrefs: // > ChallengesPage::init @ 0xa63d30 // > ChallengesPage::challengeStatusFinished @ 0xa6438c // > ChallengesPage::claimItem @ 0xa6450c // > @ 0xf0e20 // // 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 // cocos2d::CCObject *__fastcall ChallengesPage::createChallengeNode( cocos2d::CCDictionary **this, int a2, unsigned __int8 a3, float a4, unsigned __int8 a5) { int v5; // w26 __int64 v6; // x23 unsigned int v9; // w28 cocos2d::CCObject *v10; // x22 cocos2d::CCDirector *v12; // x0 GameStatsManager *v13; // x0 GameStatsManager *v14; // x0 GameStatsManager *Challenge; // x0 GameStatsManager *v16; // x0 cocos2d::CCLabelBMFont **v17; // x0 cocos2d::CCObject *v18; // x28 void (__fastcall *v19)(cocos2d::CCObject *, __int64 *); // x20 const cocos2d::CCPoint *v20; // x0 __int64 (__fastcall *v21)(cocos2d::CCObject *, __int64 *); // x20 cocos2d::CCDirector *v22; // x0 float v23; // s0 cocos2d::CCDelayTime *v24; // x0 cocos2d::CCSequence *v25; // x20 const cocos2d::CCPoint *v26; // x1 cocos2d::CCEaseElasticOut *v27; // x0 cocos2d::CCActionInterval *v28; // x1 cocos2d::CCFiniteTimeAction *v29; // x0 cocos2d::CCAction *v30; // x0 GameStatsManager *v31; // x0 __int64 v32; // [xsp+78h] [xbp+78h] BYREF char v33[8]; // [xsp+80h] [xbp+80h] BYREF _BYTE v34[4]; // [xsp+88h] [xbp+88h] BYREF float v35; // [xsp+8Ch] [xbp+8Ch] __int64 v36; // [xsp+90h] [xbp+90h] BYREF v5 = a3; v6 = a2; v9 = a5; v10 = nullptr; if ( !cocos2d::CCDictionary::objectForKey(*(this + 91), a2) ) { v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(nullptr); cocos2d::CCDirector::getWinSize(&v32, v12); v13 = (GameStatsManager *)cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v33, *(float *)&v32 * 0.5, (float)((float)(*((float *)&v32 + 1) * 0.5) + 80.0) + 5.0); v14 = (GameStatsManager *)GameStatsManager::sharedState(v13); Challenge = (GameStatsManager *)GameStatsManager::getChallenge(v14, (const char *)(unsigned int)v6); if ( !Challenge ) { v31 = (GameStatsManager *)GameStatsManager::sharedState(nullptr); v9 = 1; Challenge = (GameStatsManager *)GameStatsManager::processChallengeQueue(v31, (const char *)(unsigned int)v6); } v16 = (GameStatsManager *)GameStatsManager::sharedState(Challenge); v17 = (cocos2d::CCLabelBMFont **)GameStatsManager::getChallenge(v16, (const char *)(unsigned int)v6); v18 = (cocos2d::CCObject *)ChallengeNode::create(v17, (GJChallengeItem *)this, (ChallengesPage *)v9); v10 = v18; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v18); v19 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, (float)(v6 - 1) * -80.0); cocos2d::CCPoint::operator+(&v36, v33); v19(v18, &v36); cocos2d::CCDictionary::setObject(*(this + 91), v18, v6); if ( !v5 ) { v20 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v18 + 192LL))(v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v20); v21 = *(__int64 (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v18 + 184LL); v22 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*(cocos2d::CCDirector **)v18); cocos2d::CCDirector::getScreenRight(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, v23 + 160.0, v35); v24 = (cocos2d::CCDelayTime *)v21(v18, &v36); v25 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v24, a4); v27 = (cocos2d::CCEaseElasticOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)v34, 0.5, v26); v29 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseElasticOut::create(v27, v28, 0.6); v30 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v25, v29, 0); cocos2d::CCNode::runAction(v18, v30); } } return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source