//
// sub_673FDC from 0x673fdc to 0x67402e (82 bytes)
//
// 0 xrefs:
//
// 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
//
_DWORD *__fastcall sub_673FDC(_DWORD *result, int a2)
{
_DWORD *v2; // r4
int v3; // r5
_DWORD *v4; // r3
int v5; // r2
int v6; // r2
v2 = result;
v3 = result[101];
if ( a2 != 2 )
{
*(_DWORD *)(*result + 20) = 3;
result = (_DWORD *)(*(int (__fastcall **)(_DWORD *))*result)(result);
}
*(_DWORD *)(v3 + 8) = 0;
v4 = (_DWORD *)v2[101];
if ( (int)v2[73] <= 1 )
{
v5 = v2[74];
if ( v4[2] >= (unsigned int)(v2[72] - 1) )
v6 = *(_DWORD *)(v5 + 76);
else
v6 = *(_DWORD *)(v5 + 12);
v4[5] = v6;
v4[3] = 0;
v4[4] = 0;
}
else
{
v4[5] = 1;
v4[3] = 0;
v4[4] = 0;
}
return result;
}