//
// sub_CEC320 from 0xcec320 to 0xcec384 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x121d668
//
// 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
//
__int64 __fastcall sub_CEC320(__int64 a1, int c)
{
__int64 result; // x0
if ( c != -1 )
{
result = ungetc(c, *(FILE **)(a1 + 64));
LABEL_3:
*(_DWORD *)(a1 + 72) = -1;
return result;
}
result = *(unsigned int *)(a1 + 72);
if ( (_DWORD)result == -1 )
goto LABEL_3;
result = ungetc(result, *(FILE **)(a1 + 64));
*(_DWORD *)(a1 + 72) = -1;
return result;
}