// // cocos2d::CCParticleBatchNode::reorderChild from 0xd72b40 to 0xd72cc4 (388 bytes) // // 2 xrefs: // > @ 0x47830 // > @ 0x152cee0 // // 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 13:08:01 +0000 // __int64 __fastcall cocos2d::CCParticleBatchNode::reorderChild( cocos2d::CCArray **this, cocos2d::CCNode *a2, unsigned int a3) { unsigned int v6; // w20 unsigned int v7; // w24 unsigned int v8; // w3 cocos2d::CCTextureAtlas *v9; // x20 unsigned int v10; // w0 unsigned int v12; // [xsp+48h] [xbp+48h] unsigned int v13; // [xsp+50h] [xbp+50h] BYREF unsigned int v14; // [xsp+54h] [xbp+54h] BYREF cocos2d::CCArray::containsObject(*(this + 26), a2); if ( (*(unsigned int (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 104LL))(a2) != a3 ) { if ( (unsigned int)cocos2d::CCArray::count(*(this + 26)) > 1 ) { v13 = 0; v14 = 0; cocos2d::CCParticleBatchNode::getCurrentIndex(this, &v14, &v13, a2, a3); if ( v14 != v13 ) { v6 = 0; cocos2d::CCObject::retain((__int64)a2); cocos2d::CCArray::removeObjectAtIndex(*(this + 26), v14, 1); cocos2d::CCArray::insertObject(*(this + 26), a2); cocos2d::CCObject::release(a2); v7 = *((_DWORD *)a2 + 110); cocos2d::CCParticleBatchNode::updateAllAtlasIndexes((cocos2d::CCParticleBatchNode *)this); while ( 1 ) { if ( v6 >= (unsigned int)cocos2d::CCArray::count(*(this + 26)) ) { v8 = 0; goto LABEL_9; } if ( a2 == (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(this + 26), v6) ) break; ++v6; } v8 = *((_DWORD *)a2 + 110); LABEL_9: v12 = v8; v9 = *(this + 41); v10 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 1496LL))(a2); cocos2d::CCTextureAtlas::moveQuadsFromIndex(v9, v7, v10, v12); (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 1632LL))(a2); } } (*(void (__fastcall **)(cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 96LL))(a2, a3); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source