//
// sub_98F8DC from 0x98f8dc to 0x98f926 (74 bytes)
//
// 4 xrefs:
// > sub_983468 @ 0x984ce8
// > sub_983468 @ 0x984e74
// > sub_983468 @ 0x98528e
// > sub_98EAC8 @ 0x98eb04
//
// 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:33 +0000
//
_DWORD *__fastcall sub_98F8DC(size_t *a1, unsigned __int8 *a2, char *a3)
{
size_t v6; // r4
unsigned int v7; // r10
size_t v8; // r0
const void *v9; // r1
size_t v10; // r9
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v6 = *((_DWORD *)a2 + 1);
v7 = *a2;
v8 = strlen(a3);
v9 = *((const void **)a2 + 2);
v10 = v8;
if ( (v7 & 1) == 0 )
{
v9 = a2 + 1;
v6 = v7 >> 1;
}
sub_9898E8(a1, v9, v6, v6 + v8);
return sub_9879F8(a1, a3, v10);
}