//
// sub_100353A30 from 0x100353a30 to 0x100353ac0 (144 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x1001d7728
//
// 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 sub_100353A30(int *a1, unsigned int a2, int a3)
{
unsigned int v3; // w19
cocos2d::CCObject *v5; // x0
int v6; // w8
unsigned int v7; // w8
unsigned int v8; // w8
__int64 *v9; // x9
__int64 v10; // t1
v3 = a2;
v5 = *(cocos2d::CCObject **)(*((_QWORD *)a1 + 2) + 8LL * a2);
v5->m_unknown2 = -1;
if ( a3 )
cocos2d::CCObject::release(v5);
v6 = *a1 - 1;
*a1 = v6;
v7 = v6 - v3;
if ( v7 )
{
memmove((void *)(*((_QWORD *)a1 + 2) + 8LL * v3), (const void *)(*((_QWORD *)a1 + 2) + 8LL * (v3 + 1)), 8LL * v7);
v8 = *a1;
if ( *a1 > v3 )
{
v9 = (__int64 *)(*((_QWORD *)a1 + 2) + 8LL * (int)v3);
do
{
v10 = *v9++;
*(_DWORD *)(v10 + 40) = v3++;
}
while ( v8 > v3 );
}
}
}