//
// sub_979888 from 0x979888 to 0x9798a2 (26 bytes)
//
// 0 xrefs:
//
// 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:01 +0000
//
_DWORD *__fastcall sub_979888(_DWORD *result, unsigned __int8 *a2)
{
unsigned int v2; // r2
unsigned __int64 v3; // kr00_8
int v4; // r1
v2 = *a2;
if ( (v2 & 1) != 0 )
v3 = *(_QWORD *)(a2 + 4);
else
v3 = __PAIR64__((unsigned int)(a2 + 4), v2 >> 1);
v4 = HIDWORD(v3) + 4 * v3;
*result = v4;
result[1] = v4;
return result;
}