//
// GJBaseGameLayer::sortAllGroupsX from 0x590ab8 to 0x590ae4 (44 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::recreateGroups @ 0x4680c6
// > GJBaseGameLayer::sortGroups @ 0x5a9810
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:05 +0000
//
void __fastcall GJBaseGameLayer::sortAllGroupsX(GJBaseGameLayer *this)
{
int i; // r4
int v3; // r3
for ( i = 4; i != 40000; i += 4 )
{
v3 = *(_DWORD *)(*((_DWORD *)this + 571) + i);
if ( v3 )
qsort(
*(void **)(*(_DWORD *)(v3 + 52) + 12),
**(_DWORD **)(v3 + 52),
4u,
(int (*)(const void *, const void *))xCompPosition);
}
}