//
// sub_D20B34 from 0xd20b34 to 0xd20c28 (244 bytes)
//
// 1 xrefs:
// > sub_D210BC @ 0xd21140
//
// 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
//
wctype_t __fastcall sub_D20B34(__int64 a1, unsigned __int8 a2)
{
if ( a2 == 8 )
return wctype("space");
if ( a2 > 8u )
{
if ( a2 == 32 )
{
return wctype("cntrl");
}
else
{
if ( a2 > 0x20u )
{
if ( a2 == 68 )
return wctype("xdigit");
if ( a2 == 151 )
return wctype("print");
return 0;
}
if ( a2 != 16 )
{
if ( a2 == 23 )
return wctype("graph");
return 0;
}
return wctype("punct");
}
}
else
{
if ( a2 == 3 )
return wctype("alpha");
if ( a2 <= 3u )
{
if ( a2 != 1 )
{
if ( a2 == 2 )
return wctype("lower");
return 0;
}
return wctype("upper");
}
else
{
if ( a2 != 4 )
{
if ( a2 == 7 )
return wctype("alnum");
return 0;
}
return wctype("digit");
}
}
}