//
// sub_1005DEAC4 from 0x1005deac4 to 0x1005deb0c (72 bytes)
//
// 3 xrefs:
// > sub_100543940 @ 0x100543a38
// > sub_100543AB4 @ 0x100544360
// > sub_1005F4568 @ 0x1005f45cc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_1005DEAC4(int *a1)
{
int (__cdecl *v2)(const void *, const void *); // x3
if ( a1 && !a1[4] )
{
v2 = *((int (__cdecl **)(const void *, const void *))a1 + 3);
if ( v2 )
{
qsort(*((void **)a1 + 1), *a1, 8u, v2);
a1[4] = 1;
}
}
}