//
// sub_979842 from 0x979842 to 0x979858 (22 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
//
int __fastcall sub_979842(unsigned __int8 *a1)
{
unsigned int v1; // r1
unsigned __int64 v2; // kr00_8
v1 = *a1;
if ( (v1 & 1) != 0 )
v2 = *(_QWORD *)(a1 + 4);
else
v2 = __PAIR64__((unsigned int)(a1 + 4), v1 >> 1);
return HIDWORD(v2) + 4 * v2;
}