//
// sub_98286E from 0x98286e to 0x9828be (80 bytes)
//
// 2 xrefs:
// > __cxa_demangle @ 0x9822c8
// > sub_987AD4 @ 0x987bce
//
// 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:09 +0000
//
int __fastcall sub_98286E(_DWORD *a1, int a2)
{
_DWORD *v2; // r2
_DWORD *v3; // r12
int v4; // r3
int v5; // r4
int v6; // t1
v2 = (_DWORD *)a1[1];
v3 = (_DWORD *)*a1;
if ( v2 != (_DWORD *)*a1 )
{
v4 = *(_DWORD *)(a2 + 4);
do
{
*(_DWORD *)(v4 - 16) = 0;
*(_DWORD *)(v4 - 12) = 0;
v5 = *(v2 - 1);
*(_DWORD *)(v4 - 8) = 0;
*(_DWORD *)(v4 - 4) = v5;
v6 = *(v2 - 4);
v2 -= 4;
*(_DWORD *)(v4 - 16) = v6;
*(_DWORD *)(v4 - 12) = v2[1];
*(_DWORD *)(v4 - 8) = v2[2];
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v4 = *(_DWORD *)(a2 + 4) - 16;
*(_DWORD *)(a2 + 4) = v4;
}
while ( v3 != v2 );
}
return sub_9828BE();
}