//
// sub_9815AC from 0x9815ac to 0x981626 (122 bytes)
//
// 2 xrefs:
// > sub_9813BC @ 0x981448
// > sub_981748 @ 0x981796
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:08 +0000
//
bool __fastcall sub_9815AC(const void *a1, const void *a2)
{
int v3; // r4
_DWORD *v4; // r0
_DWORD *v5; // r5
int v6; // r0
bool v7; // zf
_DWORD *v8; // r0
int v9; // r1
int v10; // r2
if ( !a1 )
return 0;
v3 = 0;
v4 = _dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'std::type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__qualified_function_type_info,
0);
v5 = v4;
if ( v4 )
{
v6 = v4[3];
v7 = (v6 & 0xFFFFFF1F) == 0;
if ( (v6 & 0xFFFFFF1F) == 0 )
v7 = v5[2] == (_DWORD)a2;
if ( v7 )
return 1;
if ( !a2 )
return 0;
v3 = 0;
v8 = _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 ( v8 )
{
v9 = v5[3];
v10 = v8[3];
if ( (v10 & ~v9) != 0 )
return 0;
v3 = 0;
if ( (v9 & ~v10 & 0xFFFFFF1F) == 0 )
return v5[2] == v8[2];
}
}
return v3;
}