//
// sub_8DE96C from 0x8de96c to 0x8deb48 (476 bytes)
//
// 3 xrefs:
// > sub_8E5A20 @ 0x8e5bb0
// > sub_8E5A20 @ 0x8e5bb4
// > ??> @ 0x8e60b4
//
// 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:04:08 +0000
//
int __fastcall sub_8DE96C(int result, int *a2, int a3, int a4, int a5, int a6, int a7, int a8, unsigned __int16 *a9)
{
int v11; // [sp+4h] [bp-30h]
int v13; // [sp+14h] [bp-20h]
int v15; // [sp+28h] [bp-Ch]
int v16; // [sp+2Ch] [bp-8h]
int i; // [sp+40h] [bp+Ch]
v13 = *(unsigned __int16 *)(result + 26);
for ( i = v13 * a7; a6-- != 0; a9 += i )
{
v11 = a5;
while ( v11-- != 0 )
{
v15 = *(unsigned __int8 *)(*(_DWORD *)(result + 80) + a9[3]);
v16 = *(_DWORD *)(result + 76) + (v15 << 8);
*a2++ = (*(unsigned __int8 *)(v16 + *(unsigned __int8 *)(*(_DWORD *)(result + 80) + a9[1])) << 8)
| *(unsigned __int8 *)(v16 + *(unsigned __int8 *)(*(_DWORD *)(result + 80) + *a9))
| (*(unsigned __int8 *)(v16 + *(unsigned __int8 *)(*(_DWORD *)(result + 80) + a9[2])) << 16)
| (v15 << 24);
a9 += v13;
}
a2 += a8;
}
return result;
}