// // cocos2d::CCSpriteBatchNode::sortAllChildren from 0x10026fd94 to 0x10026fea0 (268 bytes) // // 3 xrefs: // > @ 0x1008b8fa0 // > @ 0x100917540 // > @ 0x100941e48 // // 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 11:01:46 +0000 // _BYTE *__fastcall cocos2d::CCSpriteBatchNode::sortAllChildren(_BYTE *result) { __int64 v1; // x29 __int64 v2; // x30 _BYTE *v3; // x19 __int64 v4; // x8 unsigned int *v5; // x10 __int64 v6; // x9 _BYTE **v7; // x20 unsigned __int64 v8; // x21 unsigned int *v9; // x9 __int64 v10; // x8 _QWORD *v11; // x20 unsigned __int64 v12; // x21 int v13; // [xsp+Ch] [xbp-34h] BYREF __int64 v14; // [xsp+30h] [xbp-10h] __int64 v15; // [xsp+38h] [xbp-8h] if ( result[288] == 1 ) { v14 = v1; v15 = v2; v3 = result; if ( result[352] != 1 || result[353] == 1 ) { if ( result[312] == 1 ) j_cocos2d::CCNode::qsortAllChildrenWithIndex(); else cocos2d::CCNode::sortAllChildrenNoIndex(); result = (_BYTE *)sub_1002E757C(*((_QWORD *)v3 + 26)); if ( !(_DWORD)result ) goto LABEL_20; v4 = *((_QWORD *)v3 + 26); if ( !v4 ) goto LABEL_20; v5 = *(unsigned int **)(v4 + 56); v6 = *v5; if ( (_DWORD)v6 ) { v7 = *((_BYTE ***)v5 + 2); v8 = (unsigned __int64)&v7[v6 - 1]; do { result = *v7; if ( !*v7 ) break; result = (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)result + 600LL))(result); ++v7; } while ( (unsigned __int64)v7 <= v8 ); v4 = *((_QWORD *)v3 + 26); v13 = 0; if ( !v4 ) { LABEL_20: v3[288] = 0; v3[353] = 0; return result; } } else { v13 = 0; } v9 = *(unsigned int **)(v4 + 56); v10 = *v9; if ( (_DWORD)v10 ) { v11 = *((_QWORD **)v9 + 2); v12 = (unsigned __int64)&v11[v10 - 1]; do { if ( !*v11 ) break; result = (_BYTE *)cocos2d::CCSpriteBatchNode::updateAtlasIndex(v3, *v11++, &v13); } while ( (unsigned __int64)v11 <= v12 ); } goto LABEL_20; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source