// // cocos2d::CCParticleBatchNode::reorderChild from 0x7e5c3c to 0x7e5d26 (234 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:53 +0000 // int __fastcall cocos2d::CCParticleBatchNode::reorderChild(cocos2d::CCArray **this, cocos2d::CCNode *a2, int a3) { int result; // r0 unsigned int v7; // r6 unsigned int v8; // r9 unsigned int v9; // r6 cocos2d::CCTextureAtlas *v10; // r5 unsigned int v11; // r0 unsigned int v12; // [sp+Ch] [bp-10h] BYREF unsigned int v13; // [sp+10h] [bp-Ch] BYREF cocos2d::CCArray::containsObject(*(this + 48), a2); result = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a2 + 52))(a2); if ( a3 != result ) { if ( (unsigned int)cocos2d::CCArray::count(*(this + 48)) > 1 ) { v7 = 0; v13 = 0; v12 = 0; cocos2d::CCParticleBatchNode::getCurrentIndex(this, &v13, &v12, a2, a3); if ( v13 != v12 ) { cocos2d::CCObject::retain((int)a2); cocos2d::CCArray::removeObjectAtIndex(*(this + 48), v13, 1); cocos2d::CCArray::insertObject(*(this + 48), a2, v12); cocos2d::CCObject::release(a2); v8 = *((_DWORD *)a2 + 90); cocos2d::CCParticleBatchNode::updateAllAtlasIndexes((int)this); while ( v7 < cocos2d::CCArray::count(*(this + 48)) ) { if ( a2 == (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(this + 48), v7) ) { v9 = *((_DWORD *)a2 + 90); goto LABEL_10; } ++v7; } v9 = 0; LABEL_10: v10 = *(this + 67); v11 = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a2 + 748))(a2); cocos2d::CCTextureAtlas::moveQuadsFromIndex(v10, v8, v11, v9); (*(void (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a2 + 816))(a2); } } return (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a2 + 48))(a2, a3); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source