// // sub_3E59B8 from 0x3e59b8 to 0x3e5a72 (186 bytes) // // 3 xrefs: // > RandTriggerGameObject::customObjectSetup @ 0x3ed428 // > SequenceTriggerGameObject::customObjectSetup @ 0x3ed570 // > SpawnTriggerGameObject::customObjectSetup @ 0x3ed734 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCArray *__fastcall sub_3E59B8(cocos2d::CCArray *a1) { int v2; // r5 cocos2d::CCArray *v3; // r10 int v4; // r0 int v5; // r6 const std::string *v6; // r1 cocos2d::CCObject *v7; // r0 bool (__fastcall *canEncode)(cocos2d::CCObject *__hidden); // [sp+4h] [bp-18h] char *v10; // [sp+Ch] [bp-10h] BYREF char v11; // [sp+10h] [bp-Ch] BYREF v2 = 0; v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v4 = sub_774A78((int)a1, "."); canEncode = a1->__vftable[-1].canEncode; v5 = v4; while ( 1 ) { sub_776158(&v10, a1, v2, v5 - v2); if ( *((_DWORD *)v10 - 3) || (bool (__fastcall *)(cocos2d::CCObject *__hidden))v2 != canEncode ) { sub_776584((int)&v11, v10); v7 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v11, v6); cocos2d::CCArray::addObject(v3, v7); sub_774008(&v11); } if ( v5 == -1 ) break; v2 = v5 + 1; v5 = sub_774A78((int)a1, "."); sub_774008(&v10); } sub_774008(&v10); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source