//
// sub_CFD808 from 0xcfd808 to 0xcfd8f4 (236 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
//
__int64 __fastcall sub_CFD808(__int64 a1, char *a2, __int64 a3)
{
__int64 result; // x0
*(_DWORD *)(a1 + 8) = a3 != 0;
*(_QWORD *)a1 = off_121E280;
*(_QWORD *)(a1 + 16) = sub_CEA2B4();
*(_QWORD *)a1 = off_121E380;
result = strcmp(a2, "C");
if ( (_DWORD)result )
{
result = strcmp(a2, "POSIX");
if ( (_DWORD)result )
{
sub_D1F8A4(a1 + 16);
return sub_D1F870((int)a1 + 16, a2);
}
}
return result;
}