// // GJBaseGameLayer::sortSectionVector from 0x9cdd5c to 0x9cdf70 (532 bytes) // // 2 xrefs: // > PlayLayer::resetLevel @ 0x711858 // > @ 0xaf6a8 // // 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 12:58:38 +0000 // __int64 __fastcall GJBaseGameLayer::sortSectionVector(GJBaseGameLayer *this) { unsigned __int64 v2; // x25 __int64 v3; // x20 __int64 v4; // x2 _QWORD *v5; // x1 __int64 v6; // x1 __int64 v7; // x26 __int64 v8; // x22 __int64 **v9; // x19 __int64 *v10; // x0 int v11; // w20 __int64 *v12; // x1 __int64 i; // x0 __int64 v14; // x20 unsigned __int64 v15; // x25 __int64 v16; // x2 _QWORD *v17; // x1 __int64 v18; // x1 __int64 v19; // x26 __int64 v20; // x22 __int64 **v21; // x19 __int64 *v22; // x0 int v23; // w20 __int64 *v24; // x1 __int64 j; // x0 bool (__fastcall *v27)(GameObject *const *, GameObject *const *); // [xsp+68h] [xbp+68h] BYREF bool (__fastcall *v28)(GameObject *const *, GameObject *const *); // [xsp+70h] [xbp+70h] BYREF v2 = 0; v3 = *((_QWORD *)this + 1674); v4 = *((_QWORD *)this + 1675); if ( (v4 - v3) >> 3 ) { do { v5 = *(_QWORD **)(v3 + 8 * v2); if ( v5 ) { v6 = (__int64)(v5[1] - *v5) >> 3; if ( (int)v6 > 0 ) { v7 = 0; v8 = 4 * ((unsigned int)(v6 - 1) + 1LL); do { v9 = *(__int64 ***)(**(_QWORD **)(v3 + 8 * v2) + 2 * v7); if ( v9 ) { v10 = *v9; v11 = *(_DWORD *)(**(_QWORD **)(*((_QWORD *)this + 1695) + 8 * v2) + v7); v12 = &(*v9)[v11]; v27 = mIDCompSort; std::__sort( v10, v12, (__int64 (__fastcall **)(__int64 *, __int64 *))&v27); for ( i = 0; v11 > (int)i; ++i ) *(_DWORD *)((*v9)[i] + 624) = i; v3 = *((_QWORD *)this + 1674); } v7 += 4; } while ( v7 != v8 ); v4 = *((_QWORD *)this + 1675); } } ++v2; } while ( v2 < (v4 - v3) >> 3 ); } v14 = *((_QWORD *)this + 1677); v15 = 0; v16 = *((_QWORD *)this + 1678); if ( (v16 - v14) >> 3 ) { do { v17 = *(_QWORD **)(v14 + 8 * v15); if ( v17 ) { v18 = (__int64)(v17[1] - *v17) >> 3; if ( (int)v18 > 0 ) { v19 = 0; v20 = 4 * ((unsigned int)(v18 - 1) + 1LL); do { v21 = *(__int64 ***)(**(_QWORD **)(v14 + 8 * v15) + 2 * v19); if ( v21 ) { v22 = *v21; v23 = *(_DWORD *)(**(_QWORD **)(*((_QWORD *)this + 1698) + 8 * v15) + v19); v24 = &(*v21)[v23]; v28 = mIDCompSort; std::__sort( v22, v24, (unsigned __int8 (__fastcall **)(__int64 *, __int64 *))&v28); for ( j = 0; v23 > (int)j; ++j ) *(_DWORD *)((*v21)[j] + 624) = j; v14 = *((_QWORD *)this + 1677); } v19 += 4; } while ( v19 != v20 ); v16 = *((_QWORD *)this + 1678); } } ++v15; } while ( v15 < (v16 - v14) >> 3 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source