//
// unknown_libname_16 from 0x180125314 to 0x180125367 (83 bytes)
//
// 3 xrefs:
// > __FrameHandler3::ExecutionInCatch @ 0x180125381
// > __FrameHandler3::FrameUnwindToEmptyState @ 0x1801253c6
// > ??> @ 0x1802027e0
//
// 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 10:54:54 +0000
//
// Microsoft VisualC v14 64bit runtime
__int64 __fastcall unknown_libname_16(__int64 a1, int a2)
{
unsigned int v2; // ebx
__int64 v4; // rsi
__int64 v5; // rax
__int64 result; // rax
v2 = *(_DWORD *)(a1 + 12);
v4 = a1;
while ( v2 )
{
--v2;
v5 = _vcrt_getptd(a1);
a1 = 5LL * v2;
result = *(_QWORD *)(v5 + 96) + 20LL * v2 + *(int *)(v4 + 16);
if ( a2 > *(_DWORD *)(result + 4) && a2 <= *(_DWORD *)(result + 8) )
return result;
}
return 0;
}