//
// sub_77FAA0 from 0x77faa0 to 0x77faca (42 bytes)
//
// 3 xrefs:
// > sub_77F970 @ 0x77fa9c
// > sub_77F970 @ 0x77fa9a
// > sub_78077A @ 0x78077e
//
// 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_77FAA0(int a1, int a2)
{
_DWORD *v2; // r4
int v3; // r7
int v5; // r6
_DWORD *v6; // r0
if ( *(_BYTE *)(a2 + 2) == 108 )
{
v5 = 0;
if ( v3 )
{
v5 = sub_77D87C((int)v2);
a1 = v2[3];
}
v2[3] = a1 + 2;
v6 = sub_77D3D0(v2, 69);
sub_77BD98(v2, 48, v5, (int)v6);
JUMPOUT(0x77FBD2);
}
return sub_77FAEA();
}