//
// sub_C53CC from 0xc53cc to 0xc5470 (164 bytes)
//
// 1 xrefs:
// > sub_C580C @ 0xc59d8
//
// 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
//
__int64 __fastcall sub_C53CC(__int64 a1, __int64 a2, float *a3, int a4, int a5)
{
__int64 v10; // x0
int i; // w24
int v12; // w8
__int64 v13; // x0
float v14; // s0
__int64 v15; // x0
__int64 v16; // x0
LABEL_1:
if ( a4 )
{
--a4;
v10 = sub_C5470(a1);
for ( i = 0; ; ++i )
{
if ( a5 == i )
goto LABEL_1;
v12 = *(_DWORD *)(a1 + 9708);
if ( v12 == 2 )
{
v16 = sub_C5E08(v10);
v14 = sub_C56BC(v16);
}
else if ( v12 == 1 )
{
v15 = sub_C5E08(v10);
v10 = sub_C55F4(v15);
}
else
{
if ( v12 )
continue;
v13 = sub_C5E08(v10);
v10 = sub_C5568(v13);
}
a2 += 4;
*a3++ = v14;
}
}
return 0;
}