//
// sub_981154 from 0x981154 to 0x9811e0 (140 bytes)
//
// 1 xrefs:
// > sub_982028 @ 0x9820be
//
// 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:07 +0000
//
int __fastcall sub_981154(void *a1, void *lpsrc, _DWORD *a3)
{
int v5; // r5
void *v6; // r4
_DWORD v8[14]; // [sp+4h] [bp-48h] BYREF
if ( a1 == lpsrc )
return 1;
if ( !lpsrc )
return 0;
v5 = 0;
v6 = _dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__shim_type_info,
(const struct __class_type_info *)&`typeinfo for'__cxxabiv1::__class_type_info,
0);
if ( v6 )
{
memset(&v8[1], 0, 0x34u);
v8[0] = v6;
v8[2] = a1;
v8[3] = -1;
v8[12] = 1;
(*(void (__fastcall **)(void *, _DWORD *, _DWORD, int))(*(_DWORD *)v6 + 28))(v6, v8, *a3, 1);
if ( v8[6] == 1 )
{
*a3 = v8[4];
return 1;
}
return 0;
}
return v5;
}