//
// sub_1003E64A0 from 0x1003e64a0 to 0x1003e64fe (94 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3d1f0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:29:47 +0000
//
__int64 __fastcall sub_1003E64A0(__int64 a1, __int64 a2)
{
__int64 result; // rax
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 352LL))(a1 - 320);
if ( (_BYTE)result )
{
sub_1007FF140(*(_QWORD *)(a1 + 176), a2, 1);
result = sub_1007FEF90(*(_QWORD *)(a1 + 176));
if ( !(_DWORD)result )
{
*(_BYTE *)(a1 + 108) = 0;
*(_BYTE *)(a1 + 128) = 0;
}
}
return result;
}