// // GJRewardItem::init from 0x1003de87c to 0x1003de9ec (368 bytes) // // 1 xrefs: // > GJRewardItem::create @ 0x1003d1400 // // 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 11:04:20 +0000 // __int64 __fastcall GJRewardItem::init(__int64 a1, int a2, int a3, __int64 a4) { __int64 v5; // x8 _QWORD *v6; // x20 __int64 v7; // x0 int v8; // w25 __int64 v9; // x0 int v10; // w23 __int64 v11; // x0 int v12; // w22 __int64 v13; // x0 int v14; // w0 int v15; // w24 int v16; // w21 _QWORD *v17; // x20 *(_DWORD *)(a1 + 56) = a2; *(_DWORD *)(a1 + 60) = a3; v5 = *(char *)(a4 + 23); if ( v5 < 0 ) v5 = *(_QWORD *)(a4 + 8); if ( v5 ) { v6 = sub_1003CF638((std::string *)a4, ","); if ( (unsigned int)sub_1002E757C((__int64)v6) >= 4 ) { v7 = cocos2d::CCArray::stringAtIndex((__int64)v6, 0); v8 = cocos2d::CCString::intValue(v7); v9 = cocos2d::CCArray::stringAtIndex((__int64)v6, 1u); v10 = cocos2d::CCString::intValue(v9); v11 = cocos2d::CCArray::stringAtIndex((__int64)v6, 2u); v12 = cocos2d::CCString::intValue(v11); v13 = cocos2d::CCArray::stringAtIndex((__int64)v6, 3u); v14 = cocos2d::CCString::intValue(v13); if ( v12 == v14 ) v15 = 2; else v15 = 1; if ( v12 == v14 ) v16 = 0; else v16 = v14; v17 = sub_1002E736C(); if ( v8 >= 1 ) { GJRewardObject::create(7, v8, 0); sub_1002E74E0((__int64)v17); } if ( v10 >= 1 ) { GJRewardObject::create(8, v10, 0); sub_1002E74E0((__int64)v17); } if ( v12 ) { GJRewardObject::create(v12, v15, 0); sub_1002E74E0((__int64)v17); } if ( v16 ) { GJRewardObject::create(v16, 1, 0); sub_1002E74E0((__int64)v17); } if ( (unsigned int)sub_1002E757C((__int64)v17) ) sub_1001E3D38(a1, (__int64)v17); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source