// // cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas from 0x180092080 to 0x1800921ed (365 bytes) // // 9 xrefs: // > cocos2d::CCSprite::removeAllChildrenWithCleanup @ 0x18008f268 // > cocos2d::CCSprite::removeChild @ 0x18008f2d5 // > cocos2d::CCSpriteBatchNode::removeChild @ 0x18009204e // > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x18009216b // > cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas @ 0x1800921cf // > @ 0x180146a9c // > @ 0x180146aac // > @ 0x18014cf68 // > @ 0x1801c0390 // // This function is hookable on this platform (idp: pc, 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 11:22:08 +0000 // void __fastcall cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas( cocos2d::CCTextureAtlas **this, struct cocos2d::CCSprite *a2) { unsigned int v4; // esi unsigned int v5; // ebp __int64 v6; // r8 cocos2d::CCArray *v7; // rax cocos2d::CCArray *v8; // rbx unsigned int *v9; // rbx __int64 v10; // rax struct cocos2d::CCSprite **v11; // rbx struct cocos2d::CCSprite **j; // rsi cocos2d::CCArray *v13; // rax cocos2d::CCArray *v14; // rbx unsigned int *v15; // rbx __int64 v16; // rax struct cocos2d::CCSprite **v17; // rbx struct cocos2d::CCSprite **i; // rsi if ( *((_BYTE *)a2 + 559) ) { v13 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 480LL))(a2); v14 = v13; if ( v13 ) { if ( (unsigned int)cocos2d::CCArray::count(v13) ) { v15 = *((unsigned int **)v14 + 7); v16 = *v15; if ( (_DWORD)v16 ) { v17 = *((struct cocos2d::CCSprite ***)v15 + 2); for ( i = &v17[v16 - 1]; v17 <= i; ++v17 ) { if ( !*v17 ) break; cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas((cocos2d::CCSpriteBatchNode *)this, *v17); } } } } } else { v4 = *((_DWORD *)a2 + 10); if ( v4 != -1 ) { v5 = cocos2d::CCArray::count(*(this + 43)) - 1; if ( v4 < v5 ) cocos2d::CCSpriteBatchNode::swap((cocos2d::CCSpriteBatchNode *)this, v4, v5); cocos2d::CCTextureAtlas::removeQuadAtIndex(*(this + 41), v5); *((_BYTE *)this + 288) = 1; (*(void (__fastcall **)(struct cocos2d::CCSprite *, _QWORD))(*(_QWORD *)a2 + 968LL))(a2, 0); LOBYTE(v6) = 1; sub_1800A1BE0(*((_QWORD *)*(this + 43) + 7), (unsigned int)(**((_DWORD **)*(this + 43) + 7) - 1), v6); v7 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 480LL))(a2); v8 = v7; if ( v7 ) { if ( (unsigned int)cocos2d::CCArray::count(v7) ) { v9 = *((unsigned int **)v8 + 7); v10 = *v9; if ( (_DWORD)v10 ) { v11 = *((struct cocos2d::CCSprite ***)v9 + 2); for ( j = &v11[v10 - 1]; v11 <= j; ++v11 ) { if ( !*v11 ) break; cocos2d::CCSpriteBatchNode::removeSpriteFromAtlas((cocos2d::CCSpriteBatchNode *)this, *v11); } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source