//
// sub_100618278 from 0x100618278 to 0x10061835c (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008661d8
//
// 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 sub_100618278()
{
int v0; // w0
sub_100588190(9, 31, (__int64)"ui_openssl.c", 478);
byte_100884ED0 = 1;
qword_100884EE0 = (__int64)fopen("/dev/tty", "r");
if ( !qword_100884EE0 )
qword_100884EE0 = (__int64)__stdinp;
qword_100884EE8 = (__int64)fopen("/dev/tty", "w");
if ( !qword_100884EE8 )
qword_100884EE8 = (__int64)__stderrp;
v0 = fileno((FILE *)qword_100884EE0);
if ( tcgetattr(v0, &stru_100884EF0) != -1 )
return 1;
if ( *__error() == 25 || *__error() == 22 )
{
byte_100884ED0 = 0;
return 1;
}
return 0;
}