// // cocos2d::CCNode::sortAllChildrenNoIndex from 0xd3eb70 to 0xd3eccc (348 bytes) // // 3 xrefs: // > cocos2d::CCNode::sortAllChildren @ 0xd402f4 // > cocos2d::CCSpriteBatchNode::sortAllChildren @ 0xd88b3c // > @ 0xc7b88 // // 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:07:29 +0000 // __int64 __fastcall cocos2d::CCNode::sortAllChildrenNoIndex(cocos2d::CCNode *this) { __int64 result; // x0 __int64 *v2; // x26 _QWORD *v3; // x24 __int64 v4; // x25 __int64 v5; // x23 __int64 v6; // x20 int v7; // w21 __int64 v8; // x22 _QWORD *v9; // x19 int v10; // w27 int v11; // w27 bool v12; // zf unsigned int v13; // w27 result = *(_QWORD *)(*((_QWORD *)this + 26) + 56LL); v2 = *(__int64 **)(result + 16); if ( *(int *)result > 1 ) { v3 = *(_QWORD **)(result + 16); v4 = (unsigned int)(*(_DWORD *)result - 2) + 1LL; v5 = 0; do { LABEL_3: v6 = v3[1]; v7 = v5; v8 = v5; v9 = v3; if ( (v5 & 0x80000000) == 0 ) { while ( 1 ) { --v7; v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6); if ( v10 >= (*(int (__fastcall **)(_QWORD))(*(_QWORD *)*v9 + 104LL))(*v9) ) { v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 104LL))(v6); v12 = v11 == (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)*v9 + 104LL))(*v9); result = v6; if ( !v12 ) break; v13 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 416LL))(v6); result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v9 + 416LL))(*v9); if ( v13 >= (unsigned int)result ) break; } result = *v9; v9[1] = *v9; --v8; --v9; if ( v7 == -1 ) { ++v5; ++v3; *v2 = v6; if ( v5 != v4 ) goto LABEL_3; return result; } } } ++v5; ++v3; v2[v8 + 1] = v6; } while ( v5 != v4 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source