//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:40:43 +0000
//
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;
}