//
// sub_C2D22 from 0xc2d22 to 0xc2d72 (80 bytes)
//
// 1 xrefs:
// > sub_C2AA8 @ 0xc2aac
//
// 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_C2D22(_DWORD *a1)
{
int v2; // r3
int v3; // r5
int v4; // r1
int v6; // [sp+4h] [bp-Ch] BYREF
v6 = 0;
v3 = sub_BFE7C((int)&v6);
if ( !v3 )
{
if ( a1[57] )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v6 + 88))(v6);
a1[57] = 0;
}
v4 = a1[56];
if ( v4 )
{
sub_C1EE0(v6, v4, a1[58], v2);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v6 + 88))(v6, a1[56]);
a1[56] = 0;
}
}
return v3;
}