//
// sub_977F78 from 0x977f78 to 0x977f96 (30 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
//
int __fastcall sub_977F78(int result, int a2)
{
if ( (*(_BYTE *)result & 1) != 0 )
{
*(_BYTE *)(*(_DWORD *)(result + 8) + a2) = 0;
*(_DWORD *)(result + 4) = a2;
}
else
{
*(_BYTE *)(result + a2 + 1) = 0;
*(_BYTE *)result = 2 * a2;
}
return result;
}