//
// sub_77B150 from 0x77b150 to 0x77b172 (34 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
//
int __fastcall sub_77B150(int a1, wint_t c, int a3)
{
int result; // r0
if ( c <= 0x7F && *(_BYTE *)(a1 + 12) )
return *(unsigned __int8 *)(c + a1 + 13);
result = wctob(c);
if ( result == -1 )
return a3;
else
return (unsigned __int8)result;
}