//
// sub_77B9D4 from 0x77b9d4 to 0x77ba06 (50 bytes)
//
// 10 xrefs:
// > ??> @ 0x75e7e2
// > ??> @ 0x75e902
// > ??> @ 0x75ea4a
// > ??> @ 0x75eb98
// > ??> @ 0x7704ee
// > ??> @ 0x7705c8
// > ??> @ 0x770d98
// > ??> @ 0x770eac
// > ??> @ 0x771326
// > ??> @ 0x771438
//
// 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_77B9D4(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;
}