//
// sub_981748 from 0x981748 to 0x9817e4 (156 bytes)
//
// 0 xrefs:
//
// 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_981748(int a1, const char **lpsrc, _DWORD *a3)
{
int v6; // r5
_DWORD *v7; // r0
_DWORD *v8; // r6
const void *v9; // r0
const void *v10; // r1
const void *v11; // r0
void *v12; // r0
void *v13; // r1
if ( lpsrc == (const char **)&`typeinfo for'decltype(nullptr) )
{
v11 = *(const void **)(a1 + 12);
if ( v11 )
{
v12 = _dynamic_cast(
v11,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__function_type_info,
0);
v13 = &unk_C4EA40;
if ( !v12 )
v13 = &unk_C4EA48;
}
else
{
v13 = &unk_C4EA48;
}
*a3 = v13;
return 1;
}
if ( sub_981360((const char **)a1, lpsrc) )
return 1;
if ( !lpsrc )
return 0;
v6 = 0;
v7 = _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);
v8 = v7;
if ( v7 )
{
if ( (v7[2] & ~*(_DWORD *)(a1 + 8)) == 0 )
{
v9 = (const void *)v7[3];
v10 = *(const void **)(a1 + 12);
if ( v10 == v9 || sub_9815AC(v9, v10) )
return *(_DWORD *)(a1 + 16) == v8[4];
}
return 0;
}
return v6;
}