//
// GJBaseGameLayer::sortAllGroupsX from 0x9a0b3c to 0x9a0ba0 (100 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x79616c
// > GJBaseGameLayer::sortGroups @ 0x9ca700
// > ??> @ 0x97630
//
// 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:06 +0000
//
__int64 __fastcall GJBaseGameLayer::sortAllGroupsX(GJBaseGameLayer *this)
{
__int64 i; // x19
__int64 v3; // x0
__int64 result; // x0
for ( i = 8; i != 80000; i += 8 )
{
v3 = *(_QWORD *)(*((_QWORD *)this + 452) + i);
if ( v3 )
qsort(
*(void **)(*(_QWORD *)(v3 + 56) + 16LL),
**(unsigned int **)(v3 + 56),
8u,
(int (*)(const void *, const void *))xCompPosition);
result = 80000;
}
return result;
}