//
// sub_140053D50 from 0x140053d50 to 0x140053e11 (193 bytes)
//
// 2 xrefs:
// > sub_140053E20 @ 0x140053f8a
// > CCTextInputNode::onTextFieldInsertText @ 0x14005784b
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:39 +0000
//
char __fastcall sub_140053D50(unsigned int a1, char a2)
{
if ( a1 == 10 )
return a2 ^ 1;
return a1 < 0x20
|| a1 == 127
|| a1 - 128 <= 0x1F
|| a1 == 173
|| a1 - 8203 <= 4
|| a1 - 8234 <= 4
|| a1 - 8288 <= 4
|| a1 - 8294 <= 3
|| a1 == 65279
|| a1 == 847
|| a1 == 1564
|| a1 - 4447 <= 1
|| a1 == 6158
|| a1 - 8232 <= 1
|| a1 == 10240
|| a1 == 12644
|| a1 == 65440
|| a1 - 65024 <= 0xF;
}