//
// sub_100995D40 from 0x100995d40 to 0x100995d71 (49 bytes)
//
// 3 xrefs:
// > sub_1009948B0 @ 0x100994e91
// > sub_1009948B0 @ 0x100994f61
// > sub_1009948B0 @ 0x100995014
//
// 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:39:10 +0000
//
__int64 __fastcall sub_100995D40(__int64 a1, __int64 a2)
{
__int64 result; // rax
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result != *(_DWORD *)(a1 + 1236) )
return sub_100997F60(a1, (unsigned int)result);
return result;
}