// // cocos2d::CCSpriteBatchNode::sortAllChildren from 0x1800922c0 to 0x1800923cc (268 bytes) // // 7 xrefs: // > @ 0x1800f25e0 // > @ 0x18010a598 // > @ 0x18010c328 // > @ 0x180146b78 // > @ 0x180146b88 // > @ 0x18014cf68 // > @ 0x1801c03cc // // 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::sortAllChildren(cocos2d::CCArray **this) { __int64 v2; // rax unsigned int *v3; // rdi __int64 v4; // rax _QWORD *v5; // rdi _QWORD *i; // rsi __int64 v7; // rax unsigned int *v8; // rdi __int64 v9; // rax struct cocos2d::CCSprite **v10; // rdi struct cocos2d::CCSprite **j; // rsi int v12; // [rsp+30h] [rbp+8h] BYREF if ( *((_BYTE *)this + 288) && (!*((_BYTE *)this + 352) || *((_BYTE *)this + 353)) ) { if ( *((_BYTE *)this + 312) ) cocos2d::CCNode::sortAllChildrenWithIndex((cocos2d::CCNode *)this); else cocos2d::CCNode::sortAllChildrenNoIndex((cocos2d::CCNode *)this); if ( (unsigned int)cocos2d::CCArray::count(*(this + 26)) ) { v2 = (__int64)*(this + 26); if ( v2 ) { v3 = *(unsigned int **)(v2 + 56); v4 = *v3; if ( (_DWORD)v4 ) { v5 = *((_QWORD **)v3 + 2); for ( i = &v5[v4 - 1]; v5 <= i; ++v5 ) { if ( !*v5 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v5 + 592LL))(*v5); } } } v7 = (__int64)*(this + 26); v12 = 0; if ( v7 ) { v8 = *(unsigned int **)(v7 + 56); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((struct cocos2d::CCSprite ***)v8 + 2); for ( j = &v10[v9 - 1]; v10 <= j; ++v10 ) { if ( !*v10 ) break; cocos2d::CCSpriteBatchNode::updateAtlasIndex((cocos2d::CCSpriteBatchNode *)this, *v10, &v12); } } } } *((_BYTE *)this + 288) = 0; *((_BYTE *)this + 353) = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source