//
// sub_100051670 from 0x100051670 to 0x1000516b2 (66 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b0730
//
// 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_100051670(__int64 a1, int a2)
{
__int64 result; // rax
if ( a2 == 87 || a2 == 32 )
{
*(_BYTE *)(a1 + 1064) = 0;
*(_BYTE *)(a1 + 296) = 0;
}
result = *(_QWORD *)(a1 + 912);
if ( *(_DWORD *)(result + 1944) == 1 )
return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(result + 13104) + 1288LL))(*(_QWORD *)(result + 13104));
return result;
}