//
// sub_538F8 from 0x538f8 to 0x5393e (70 bytes)
//
// 2 xrefs:
// > ??> @ 0x538f6
// > sub_5AAAC @ 0x5aae6
//
// 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_538F8(_DWORD *a1, int a2)
{
_BYTE v5[48]; // [sp+0h] [bp-40h] BYREF
qmemcpy(v5, &unk_228C0, sizeof(v5));
a1[16] = a2;
sub_53944(a1, 0);
sub_53990(a1, v5);
a1[17] = 0;
memset(a1 + 19, 0, 0x18u);
return 0;
}