//
// sub_977E9C from 0x977e9c to 0x977eb4 (24 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:05:59 +0000
//
_DWORD *__fastcall sub_977E9C(_DWORD *result, unsigned __int8 *a2)
{
unsigned int v2; // r2
unsigned __int64 v3; // kr00_8
v2 = *a2;
if ( (v2 & 1) != 0 )
v3 = *(_QWORD *)(a2 + 4);
else
v3 = __PAIR64__((unsigned int)(a2 + 1), v2 >> 1);
*result = HIDWORD(v3) + v3;
result[1] = HIDWORD(v3) + v3;
return result;
}