// // cocos2d::CCSpriteBatchNode::sortAllChildren from 0x1001562d0 to 0x100156407 (311 bytes) // // 4 xrefs: // > @ 0x100ac6708 // > @ 0x100af0528 // > @ 0x100b6a938 // > @ 0x100b86e98 // // 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 12:25:04 +0000 // void __fastcall cocos2d::CCSpriteBatchNode::sortAllChildren(__int64 a1) { __int64 v1; // rax unsigned int *v2; // rcx _QWORD *v3; // r14 unsigned __int64 v4; // r15 __int64 v5; // rax unsigned int *v6; // rax __int64 v7; // rcx _QWORD *v8; // r15 unsigned __int64 v9; // r12 int v10; // [rsp-2Ch] [rbp-2Ch] BYREF if ( *(_BYTE *)(a1 + 288) == 1 && (*(_BYTE *)(a1 + 352) != 1 || *(_BYTE *)(a1 + 353) == 1) ) { if ( *(_BYTE *)(a1 + 312) == 1 ) { cocos2d::CCNode::sortAllChildrenWithIndex(a1); if ( !(unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 208)) ) goto LABEL_20; } else { cocos2d::CCNode::sortAllChildrenNoIndex(a1); if ( !(unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 208)) ) goto LABEL_20; } v1 = *(_QWORD *)(a1 + 208); if ( v1 ) { v2 = *(unsigned int **)(v1 + 56); if ( *v2 ) { v3 = *((_QWORD **)v2 + 2); v4 = (unsigned __int64)&v3[*v2 - 1]; do { if ( !*v3 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 600LL))(*v3); ++v3; } while ( (unsigned __int64)v3 <= v4 ); v5 = *(_QWORD *)(a1 + 208); v10 = 0; if ( !v5 ) goto LABEL_20; v6 = *(unsigned int **)(v5 + 56); v7 = *v6; if ( !*v6 ) goto LABEL_20; goto LABEL_17; } v10 = 0; v6 = *(unsigned int **)(v1 + 56); v7 = *v6; if ( *v6 ) { LABEL_17: v8 = *((_QWORD **)v6 + 2); v9 = (unsigned __int64)&v8[v7 - 1]; do { if ( !*v8 ) break; cocos2d::CCSpriteBatchNode::updateAtlasIndex(a1, *v8++, &v10); } while ( (unsigned __int64)v8 <= v9 ); } } LABEL_20: *(_BYTE *)(a1 + 288) = 0; *(_BYTE *)(a1 + 353) = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source