//
// std::__ndk1::__tree_prev *> from 0xcaf7b0 to 0xcaf7fc (76 bytes)
//
// 3 xrefs:
// > DeathTrackerPopup::buildList @ 0xcb1198
// > DeathTrackerPopup::buildList @ 0xcb11d0
// > ??> @ 0xa8958
//
// This function is hookable on this platform (idp: arm, 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 13:06:07 +0000
//
__int64 *__fastcall std::__tree_prev *>(__int64 *result)
{
__int64 v1; // x1
bool v2; // zf
v1 = *result;
if ( *result )
{
while ( *(_QWORD *)(v1 + 8) )
v1 = *(_QWORD *)(v1 + 8);
return (__int64 *)v1;
}
else
{
do
{
v2 = result == *(__int64 **)result[2];
result = (__int64 *)result[2];
if ( !v2 )
break;
v2 = result == *(__int64 **)result[2];
result = (__int64 *)result[2];
}
while ( v2 );
}
return result;
}