//
// sub_D20F80 from 0xd20f80 to 0xd20fd4 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x121eec0
// > ??> @ 0x121ef40
//
// 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_D20F80(__int64 a1, wint_t c, unsigned __int8 a3)
{
unsigned int v3; // w19
__int64 result; // x0
v3 = a3;
if ( c <= 0x7F && *(_BYTE *)(a1 + 24) )
return *(unsigned __int8 *)(a1 + c + 25);
LODWORD(result) = wctob(c);
if ( (_DWORD)result == -1 )
return v3;
else
return (unsigned __int8)result;
}