//
// _FindAndUnlinkFrame from 0x180125744 to 0x180125797 (83 bytes)
//
// 3 xrefs:
// > unknown_libname_19 @ 0x180126a11
// > unknown_libname_19 @ 0x180142c7c
// > ??> @ 0x180202834
//
// 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 FindAndUnlinkFrame(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rdx
__int64 v4; // rcx
__int64 v5; // rbx
__int64 result; // rax
if ( a1 != *(_QWORD *)(_vcrt_getptd(a1) + 88) || (v3 = *(_QWORD *)(_vcrt_getptd(v2) + 88)) == 0 )
LABEL_7:
abort();
while ( 1 )
{
v5 = *(_QWORD *)(v3 + 8);
if ( a1 == v3 )
break;
v3 = *(_QWORD *)(v3 + 8);
if ( !v5 )
goto LABEL_7;
}
result = _vcrt_getptd(v4);
*(_QWORD *)(result + 88) = v5;
return result;
}