//
// smartPrefabSort from 0x37b438 to 0x37b4ee (182 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall smartPrefabSort(_DWORD *a1, int *a2)
{
int v2; // r6
int v3; // r5
float v4; // s16
float v5; // s15
float v7; // [sp+4h] [bp+0h] BYREF
float v8; // [sp+8h] [bp+4h]
v2 = *a1;
v3 = *a2;
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)*a1 + 672))(&v7, *a1);
v4 = v7;
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v3 + 672))(&v7, v3);
v5 = v7;
if ( v4 == v7 )
{
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v2 + 672))(&v7, v2);
v4 = v8;
(*(void (__fastcall **)(float *, int))(*(_DWORD *)v3 + 672))(&v7, v3);
v5 = v8;
if ( v4 == v8 )
{
v4 = (float)*(int *)(v2 + 884);
v5 = (float)*(int *)(v3 + 884);
if ( v4 == v5 )
{
v4 = (float)*(unsigned int *)(v2 + 772);
v5 = (float)*(unsigned int *)(v3 + 772);
}
}
}
return (int)(float)(v4 - v5);
}