//
// sub_77BBF8 from 0x77bbf8 to 0x77bc2a (50 bytes)
//
// 10 xrefs:
// > ??> @ 0x75ff7e
// > ??> @ 0x76009e
// > ??> @ 0x7601e6
// > ??> @ 0x760334
// > ??> @ 0x771e6a
// > ??> @ 0x771f44
// > ??> @ 0x772720
// > ??> @ 0x772834
// > ??> @ 0x772cae
// > ??> @ 0x772dc0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int *__fastcall sub_77BBF8(int *result, int *a2)
{
int v2; // r2
int v3; // r4
int v4; // r2
int v5; // r2
v2 = *a2;
*result = *a2;
*(int *)((char *)result + *(_DWORD *)(v2 - 12)) = a2[5];
result[2] = a2[6];
v3 = a2[3];
v4 = *(_DWORD *)(v3 - 12);
result[2] = v3;
*(int *)((char *)result + v4 + 8) = a2[4];
v5 = a2[1];
*result = v5;
*(int *)((char *)result + *(_DWORD *)(v5 - 12)) = a2[2];
return result;
}