//
// sub_97EE90 from 0x97ee90 to 0x97eeca (58 bytes)
//
// 1 xrefs:
// > sub_97EDC0 @ 0x97ee42
//
// 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:05 +0000
//
int __fastcall sub_97EE90(int a1, _DWORD *a2)
{
const void *v4; // r1
signed int v5; // r2
void *v6; // r0
const void *v7; // r1
int v8; // r0
int v9; // r0
int result; // r0
v4 = *(const void **)a1;
v5 = *(_DWORD *)(a1 + 4) - *(_DWORD *)a1;
v6 = (void *)(a2[1] - v5);
a2[1] = v6;
if ( v5 > 0 )
{
qmemcpy(v6, v4, v5);
v6 = (void *)a2[1];
}
v7 = *(const void **)a1;
*(_DWORD *)a1 = v6;
a2[1] = v7;
v8 = *(_DWORD *)(a1 + 4);
*(_DWORD *)(a1 + 4) = a2[2];
a2[2] = v8;
v9 = *(_DWORD *)(a1 + 8);
*(_DWORD *)(a1 + 8) = a2[3];
a2[3] = v9;
result = a2[1];
*a2 = result;
return result;
}