// // GJRewardItem::init from 0x5196b0 to 0x519798 (232 bytes) // // 1 xrefs: // > GJRewardItem::create @ 0x5197e8 // // 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:51:45 +0000 // int __fastcall GJRewardItem::init(_DWORD *a1, int a2, int a3, _DWORD *a4) { int v5; // r2 int v6; // r2 cocos2d::CCArray *v7; // r4 cocos2d::CCString *v8; // r0 int v9; // r10 cocos2d::CCString *v10; // r0 int v11; // r9 cocos2d::CCString *v12; // r0 int v13; // r7 cocos2d::CCString *v14; // r0 cocos2d::CCArray *v15; // r0 int v16; // r5 int v17; // r8 cocos2d::CCArray *v18; // r4 cocos2d::CCObject *v19; // r0 cocos2d::CCObject *v20; // r0 cocos2d::CCObject *v21; // r0 cocos2d::CCObject *v22; // r0 a1[13] = a2; a1[14] = a3; v5 = *(unsigned __int8 *)a4; if ( (v5 & 1) != 0 ) v6 = a4[1]; else v6 = v5 >> 1; if ( v6 ) { v7 = sub_519534(a4, ","); if ( cocos2d::CCArray::count(v7) > 3u ) { v8 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v7, 0); v9 = cocos2d::CCString::intValue(v8); v10 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v7, 1u); v11 = cocos2d::CCString::intValue(v10); v12 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v7, 2u); v13 = cocos2d::CCString::intValue(v12); v14 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v7, 3u); v15 = (cocos2d::CCArray *)cocos2d::CCString::intValue(v14); v16 = (int)v15; if ( (cocos2d::CCArray *)v13 == v15 ) { v17 = 2; v16 = 0; } else { v17 = 1; } v18 = (cocos2d::CCArray *)cocos2d::CCArray::create(v15); if ( v9 > 0 ) { v19 = GJRewardObject::create(7, v9, 0); cocos2d::CCArray::addObject(v18, v19); } if ( v11 > 0 ) { v20 = GJRewardObject::create(8, v11, 0); cocos2d::CCArray::addObject(v18, v20); } if ( v13 ) { v21 = GJRewardObject::create(v13, v17, 0); cocos2d::CCArray::addObject(v18, v21); } if ( v16 ) { v22 = GJRewardObject::create(v16, 1, 0); cocos2d::CCArray::addObject(v18, v22); } if ( cocos2d::CCArray::count(v18) ) sub_5158BA((cocos2d::CCObject *)(a1 + 16), v18); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source