//
// sub_CDA4B4 from 0xcda4b4 to 0xcda59c (232 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_CDA4B4(__int64 a1, char *a2, __int64 a3)
{
__int64 result; // x0
__int64 v6; // [xsp+38h] [xbp+38h] BYREF
*(_QWORD *)a1 = off_121D230;
*(_DWORD *)(a1 + 8) = a3 != 0;
*(_QWORD *)(a1 + 16) = 0;
((void (*)(void))sub_CECD64)();
*(_QWORD *)a1 = off_111E000;
result = strcmp(a2, "C");
if ( (_DWORD)result )
{
result = strcmp(a2, "POSIX");
if ( (_DWORD)result )
{
sub_D1F870((int)&v6, a2);
sub_CECD64(a1, v6, 0);
return sub_D1F8A4(&v6);
}
}
return result;
}