// // GJRewardItem::getRewardObjectForType from 0x8cd398 to 0x8cd45c (196 bytes) // // 2 xrefs: // > GameStatsManager::preProcessReward @ 0x8dd0cc // > @ 0xc1660 // // 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 12:56:37 +0000 // cocos2d::CCObject *__fastcall GJRewardItem::getRewardObjectForType(cocos2d::CCArray **a1, int a2) { cocos2d::CCArray *v4; // x20 unsigned int v5; // w19 cocos2d::CCObject *v6; // x20 bool v7; // cf unsigned int v8; // w1 cocos2d::CCObject *v10; // x0 cocos2d::CCObject *v11; // x1 v4 = a1[9]; if ( !v4 ) { v10 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); v4 = v10; v11 = a1[9]; if ( v10 != v11 ) { if ( v10 ) { cocos2d::CCObject::retain(v10); v11 = a1[9]; } if ( v11 ) cocos2d::CCObject::release(v11); a1[9] = v4; } } v5 = 0; while ( 1 ) { v7 = v5 >= (unsigned int)cocos2d::CCArray::count(v4); v8 = v5++; if ( v7 ) break; v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a1[9], v8); if ( *((_DWORD *)v6 + 14) == a2 ) return v6; v4 = a1[9]; } v6 = GJRewardObject::create(a2, 0, 0); cocos2d::CCArray::addObject(a1[9], v6); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source