// // GJEffectManager::init from 0xa1be68 to 0xa1c090 (552 bytes) // // 3 xrefs: // > GJEffectManager::create @ 0x9f99e0 // > @ 0xc8d70 // > @ 0x1477dd0 // // 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:59:37 +0000 // unsigned __int64 __fastcall GJEffectManager::init(GJEffectManager *this) { unsigned __int64 result; // x0 unsigned int v3; // w20 cocos2d::CCObject *v4; // x0 cocos2d::CCDictionary *v5; // x0 cocos2d::CCObject *v6; // x0 cocos2d::CCArray *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCDictionary *v9; // x0 cocos2d::CCObject *v10; // x0 cocos2d::CCDictionary *v11; // x0 cocos2d::CCObject *v12; // x0 __int64 v13; // x3 __int64 v14; // x2 unsigned __int64 v15; // x1 __int64 v16; // x3 __int64 v17; // x2 unsigned __int64 v18; // x1 __int64 v19; // x3 __int64 v20; // x2 unsigned __int64 v21; // x1 unsigned __int64 i; // x1 unsigned __int64 v23; // x2 __int64 v24; // x0 __int64 j; // x0 result = (unsigned __int8)cocos2d::CCNode::init(this); v3 = (unsigned __int8)result; if ( !(_BYTE)result ) return (unsigned __int8)result; v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)result); *((_QWORD *)this + 41) = v4; v5 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v4); v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v5); *((_QWORD *)this + 42) = v6; v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v6); v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *((_QWORD *)this + 125) = v8; v9 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9); *((_QWORD *)this + 71) = v10; v11 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11); *((_QWORD *)this + 70) = v12; cocos2d::CCObject::retain(v12); v13 = *((_QWORD *)this + 83); v14 = *((_QWORD *)this + 84); v15 = (v14 - v13) >> 3; if ( v15 <= 0x44D ) { std::vector::__append((void **)this + 83, 1102 - v15); } else if ( v15 != 1102 && v14 != v13 + 8816 ) { *((_QWORD *)this + 84) = v14 + 8 * ~((unsigned __int64)(v14 - 8824 - v13) >> 3); } v16 = *((_QWORD *)this + 80); v17 = *((_QWORD *)this + 81); v18 = (v17 - v16) >> 3; if ( v18 <= 0x44D ) { std::vector::__append((__int64)this + 640, 1102 - v18); } else if ( v18 != 1102 && v17 != v16 + 8816 ) { *((_QWORD *)this + 81) = v17 + 8 * ~((unsigned __int64)(v17 - 8824 - v16) >> 3); } std::vector::resize((const void **)this + 126, 0x2710u, 0); v19 = *((_QWORD *)this + 72); v20 = *((_QWORD *)this + 73); v21 = (v20 - v19) >> 3; if ( v21 <= 0x270F ) { std::vector::__append((__int64)this + 576, 10000 - v21); } else if ( v21 != 10000 && v20 != v19 + 80000 ) { *((_QWORD *)this + 73) = v20 + 8 * ~((unsigned __int64)(v20 - 80008 - v19) >> 3); } std::vector::resize((const void **)this + 86, 0x2710u, 0); for ( i = 0; i != 10000; ++i ) { v23 = i >> 6; v24 = 1LL << (i & 0x3F); *(_QWORD *)(*((_QWORD *)this + 72) + 8 * i) = 0; *(_QWORD *)(*((_QWORD *)this + 86) + 8 * v23) &= ~v24; *(_QWORD *)(*((_QWORD *)this + 126) + 8 * v23) |= v24; } for ( j = 0; j != 8816; j += 8 ) { *(_QWORD *)(*((_QWORD *)this + 83) + j) = 0; *(_QWORD *)(*((_QWORD *)this + 80) + j) = 0; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source