//
// sub_F8AAF8 from 0xf8aaf8 to 0xf8abb8 (192 bytes)
//
// 2 xrefs:
// > sub_F8A7D4 @ 0xf8a8e8
// > sub_F8AD70 @ 0xf8ae7c
//
// 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:13:55 +0000
//
void *__fastcall sub_F8AAF8(void *result, const void *a2)
{
_DWORD *v3; // x0
_DWORD *v4; // x19
int v5; // w8
int v6; // w9
if ( result )
{
v3 = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'std::type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__qualified_function_type_info,
0);
v4 = v3;
if ( !v3 )
return nullptr;
if ( (v3[6] & 0xFFFFFF1F) == 0 && *((const void **)v3 + 2) == a2 )
return dword_0 + 1;
if ( !a2 )
return nullptr;
result = _dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'std::type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__qualified_function_type_info,
0);
if ( !result )
return result;
v5 = *((_DWORD *)result + 6);
v6 = v4[6];
if ( (v5 & ~v6) == 0 )
{
if ( (v6 & ~v5 & 0xFFFFFF1F) != 0 )
return nullptr;
else
return (void *)(*((_QWORD *)v4 + 2) == *((_QWORD *)result + 2));
}
else
{
return nullptr;
}
}
return result;
}