// // cocos2d::ccArrayInsertObjectAtIndexBatch from 0x5ec6b0 to 0x5ec700 (80 bytes) // // 1 xrefs: // > cocos2d::CCSpriteBatchNode::insertChild @ 0x5e8062 // // 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 // void __fastcall cocos2d::ccArrayInsertObjectAtIndexBatch(unsigned int *a1, cocos2d::CCObject *a2, int a3) { unsigned int v6; // r3 int v7; // r0 int v8; // r6 unsigned int v9; // r2 unsigned int i; // r3 int v11; // r1 cocos2d::ccArrayEnsureExtraCapacity(a1, 1); if ( *a1 != a3 ) { v7 = 4 * (a3 + 1); v8 = v7 - 4; memmove((void *)(v7 + a1[3]), (const void *)(a1[3] + v7 - 4), 4 * (*a1 - a3)); v9 = *a1; for ( i = a3; i < v9; ++i ) { v11 = *(_DWORD *)(a1[3] + v8); v8 += 4; *(_DWORD *)(v11 + 36) = i; } } cocos2d::CCObject::retain(a2); *(_DWORD *)(a1[3] + 4 * a3) = a2; v6 = *a1; a2->m_unknown2 = a3; *a1 = v6 + 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source