//
// sub_F8AD70 from 0xf8ad70 to 0xf8aeac (316 bytes)
//
// 1 xrefs:
// > ??> @ 0x1536c18
//
// 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
//
bool __fastcall sub_F8AD70(__int64 a1, const char **lpsrc, _QWORD *a3)
{
_BYTE *v6; // x0
const void *v7; // x0
void *v8; // x19
_QWORD *v10; // x0
_QWORD *v11; // x20
const void *v12; // x1
void *v13; // x0
if ( lpsrc == (const char **)&`typeinfo for'decltype(nullptr) )
{
v7 = *(const void **)(a1 + 24);
v8 = &unk_11F0680;
if ( v7
&& _dynamic_cast(
v7,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__function_type_info,
0) )
{
v8 = &unk_11F0670;
}
*a3 = v8;
return 1;
}
if ( (*(_BYTE *)(a1 + 16) & 0x18) != 0 )
{
LABEL_6:
if ( !strcmp(*(const char **)(a1 + 8), lpsrc[1]) )
return 1;
goto LABEL_14;
}
if ( !lpsrc )
return 0;
v6 = _dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__pbase_type_info,
0);
if ( v6 )
{
if ( (v6[16] & 0x18) != 0 )
goto LABEL_6;
if ( (const char **)a1 == lpsrc )
return 1;
}
LABEL_14:
v10 = _dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__pointer_to_member_type_info,
0);
v11 = v10;
if ( v10 )
{
if ( ((_DWORD)v10[2] & ~*(_DWORD *)(a1 + 16)) == 0 )
{
v12 = *(const void **)(a1 + 24);
v13 = (void *)v10[3];
if ( v12 == v13 || ((unsigned __int8)sub_F8AAF8(v13, v12) & 1) != 0 )
return *(_QWORD *)(a1 + 32) == v11[4];
}
}
return 0;
}