//
// sub_10057B5C4 from 0x10057b5c4 to 0x10057b620 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x10082eba8
//
// 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_10057B5C4(__int64 a1, _BYTE *a2)
{
__int64 v3; // x20
__int64 result; // x0
v3 = *(_QWORD *)a1;
result = sub_10054F964(a1, a2);
if ( !*(_QWORD *)(v3 + 35616) )
*(_QWORD *)(v3 + 35616) = 1;
if ( !*(_QWORD *)(v3 + 35624) )
*(_QWORD *)(v3 + 35624) = 1;
*(_DWORD *)(a1 + 1352) = -1;
return result;
}