//
// __FrameHandler3::GetHandlerSearchState from 0x180126c9c to 0x180126d32 (150 bytes)
//
// 2 xrefs:
// > FindHandler<__FrameHandler3> @ 0x180125d74
// > ??> @ 0x180202954
//
// 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 __FrameHandler3::GetHandlerSearchState(
unsigned __int64 *a1,
struct _xDISPATCHER_CONTEXT *a2,
const struct _s_FuncInfo *a3)
{
int v6; // ebx
unsigned __int64 v8; // [rsp+48h] [rbp+20h] BYREF
v6 = __FrameHandler3::StateFromControlPc(a3, a2);
_GetEstablisherFrame(a1, a2, a3, &v8);
if ( v6 <= (int)__GetUnwindTryBlock(a1, a2, a3) )
{
return (unsigned int)__GetUnwindTryBlock(a1, a2, a3);
}
else
{
__FrameHandler3::SetState(&v8, a3, v6);
__SetUnwindTryBlock(a1, a2, a3, v6);
}
return (unsigned int)v6;
}