//
// __FrameHandler3::GetHandlerSearchState from 0x180126c9c to 0x180126d32 (150 bytes)
//
// 2 xrefs:
// > FindHandler<__FrameHandler3> @ 0x180125d74
// > ??> @ 0x180202954
//
// 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:55 +0000
//
__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;
}