//
// sub_100577C28 from 0x100577c28 to 0x100577ca4 (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082e738
// > ??> @ 0x10082e7b8
//
// 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_100577C28(_BYTE *a1, __int64 a2)
{
__int64 v2; // x19
__int64 v3; // x20
v2 = a2;
v3 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( !v3 )
return 0;
if ( (_DWORD)a2 )
a1[737] = 1;
else
v2 = 0;
off_10085DEB8(*(void **)(v3 + 8));
*(_QWORD *)(v3 + 8) = 0;
off_10085DEB8(*(void **)(v3 + 16));
*(_QWORD *)(v3 + 16) = 0;
*(_DWORD *)v3 = 0;
return v2;
}