//
// sub_6457C0 from 0x6457c0 to 0x6457fc (60 bytes)
//
// 1 xrefs:
// > sub_642BAC @ 0x642e96
//
// 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 sub_6457C0(int result, int a2)
{
int v2; // r5
int v3; // r3
int v4; // r2
v2 = *(_DWORD *)(*(_DWORD *)result + 832);
if ( v2 )
{
result = *(_DWORD *)(*(_DWORD *)result + 34460);
if ( *(_DWORD *)(result + 12) == a2 )
{
return sub_645760((void **)result);
}
else
{
v3 = result + 64;
v4 = 0;
while ( 1 )
{
++v4;
result = v3;
v3 += 64;
if ( v4 == v2 )
break;
if ( *(_DWORD *)(v3 - 52) == a2 )
return sub_645760((void **)result);
}
}
}
return result;
}