//
// sub_51A78 from 0x51a78 to 0x51a92 (26 bytes)
//
// 4 xrefs:
// > sub_51554 @ 0x516ac
// > sub_51848 @ 0x51942
// > sub_91E20 @ 0x91e38
// > sub_A6E94 @ 0xa6eaa
//
// 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_51A78(int a1, int a2, int a3, int a4)
{
*(_DWORD *)a1 = a2;
*(_DWORD *)(a1 + 4) = a3;
*(_BYTE *)(a1 + 8) = 0;
if ( a4 )
sub_44998(a1);
return a1;
}