//
// CCTextInputNode::setAllowedChars from 0x140054d20 to 0x140054e2a (266 bytes)
//
// 70 xrefs:
// > AccountRegisterLayer::init @ 0x14008d1eb
// > AccountRegisterLayer::init @ 0x14008d43a
// > AccountRegisterLayer::init @ 0x14008d5e8
// > AccountRegisterLayer::init @ 0x14008d7d4
// > AccountRegisterLayer::init @ 0x14008d9a9
// > AccountLoginLayer::init @ 0x14009100b
// > AccountLoginLayer::init @ 0x14009115b
// > AdminActionConfirmPopup::init @ 0x1400a5cd2
// > ReviewChoiceSheet::init @ 0x1400ae962
// > SFXFolderPickerPopup::init @ 0x1400c45e3
// > NewThreadPopup::init @ 0x1400efd1c
// > RenameThreadPopup::init @ 0x1400fa1a4
// > ThreadSearchPopup::init @ 0x1400fb6eb
// > DeathStatsPopup::init @ 0x14011e89e
// > DeathStatsPopup::init @ 0x14011eb4b
// > ColorSelectPopup::init @ 0x14012714a
// > ColorSelectPopup::init @ 0x1401284e8
// > ColorSelectPopup::init @ 0x140128a9b
// > ColorSelectPopup::init @ 0x1401291e9
// > ConfigureHSVWidget::createTextInputNode @ 0x140130690
// > ConfigureValuePopup::init @ 0x140132188
// > CreateGuidelinesLayer::init @ 0x140133a2d
// > CustomizeObjectLayer::init @ 0x1401407d7
// > CustomizeObjectLayer::init @ 0x1401414d9
// > CustomSongLayer::init @ 0x1401646f9
// > SongOptionsLayer::init @ 0x140165f33
// > EditLevelLayer::init @ 0x140178dbb
// > EditorSoundBrowserLayer::onSelectMode @ 0x14018f256
// > EditorSoundConfigInfoLayer::init @ 0x1401923fd
// > EditorSoundsLayer::init @ 0x14019d1fe
// > GJRotationControl::init @ 0x1401a23a8
// > GJScaleControl::createScaleInput @ 0x1401a4809
// > GJGarageLayer::init @ 0x14037bd34
// > SocialLinksPopup::init @ 0x14039fc60
// > SetIDPopup::init @ 0x1403a5aee
// > SetTextPopup::init @ 0x1403a79f5
// > IDNameBrowserPopup::init @ 0x1403c1d1d
// > IDNameBrowserPopup::init @ 0x1403c23c1
// > IDNameBrowserPopup::init @ 0x1403c2847
// > IDNameInput::initCore @ 0x1403c7f97
// > KeybindingsLayer::init @ 0x1403d5cfc
// > LevelSearchLayer::init @ 0x140434dfb
// > MoreSearchLayer::init @ 0x14043d3b0
// > LevelSettingsLayer::init @ 0x14045986c
// > LevelSettingsLayer::init @ 0x140459b2a
// > MoreVideoOptionsLayer::init @ 0x1404cef45
// > SecretLayer::init @ 0x1405736fe
// > SecretLayer2::init @ 0x140578b64
// > SecretLayer4::init @ 0x140585ff1
// > SecretLayer5::init @ 0x140589d9b
// > SetGroupIDLayer::createTextInput @ 0x140590fb4
// > SetupAnimationPopup::init @ 0x1405a0f75
// > SetupCameraOffsetTrigger::init @ 0x1405ace6f
// > SetupCameraOffsetTrigger::init @ 0x1405ad6f7
// > SetupInstantCountPopup::init @ 0x1405b7fdb
// > SetupMGTrigger::init @ 0x1405bce52
// > SetupMGTrigger::init @ 0x1405bd6c1
// > SetupOpacityPopup::init @ 0x1405c0437
// > CreateParticlePopup::createParticleSlider @ 0x1405c62dd
// > SetupPulsePopup::init @ 0x1405cd543
// > SetupPulsePopup::init @ 0x1405cd9ef
// > SetupPulsePopup::init @ 0x1405cde79
// > SetupPulsePopup::init @ 0x1405cf9c2
// > SetupPulsePopup::init @ 0x1405cfe04
// > SetupRandAdvTriggerPopup::init @ 0x1405d31c5
// > SetupRandTriggerPopup::init @ 0x1405d575b
// > SetupShakePopup::init @ 0x1405eaf9e
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060ddb5
// > ShareCommentLayer::init @ 0x14062ee4d
// > ??> @ 0x140910310
//
// 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:40 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall CCTextInputNode::setAllowedChars(__int64 a1, void **a2)
{
void **v2; // rbx
void **v4; // rcx
char v5; // r9
char v6; // r8
char v7; // r11
char v8; // bp
__int64 v9; // rdx
void *v10; // r10
_QWORD *v11; // rcx
char v12; // cl
v2 = a2;
v4 = (void **)(a1 + 480);
if ( v4 != a2 )
{
if ( (unsigned __int64)a2[3] > 0xF )
a2 = (void **)*a2;
sub_1400405A0(v4, a2, (size_t)v2[2]);
}
if ( *(_DWORD *)(a1 + 716) )
goto LABEL_24;
v5 = 0;
v6 = 0;
v7 = 0;
v8 = 0;
v9 = 0;
v10 = v2[2];
if ( !v10 )
goto LABEL_24;
while ( 1 )
{
v11 = v2;
if ( (unsigned __int64)v2[3] > 0xF )
v11 = *v2;
v12 = *((_BYTE *)v11 + v9);
if ( (unsigned __int8)(v12 - 48) > 9u )
break;
v5 = 1;
LABEL_15:
if ( ++v9 >= (unsigned __int64)v10 )
goto LABEL_18;
}
if ( v12 == 45 )
{
v6 = 1;
goto LABEL_15;
}
if ( v12 == 46 )
{
v7 = 1;
goto LABEL_15;
}
v8 = 1;
LABEL_18:
if ( v5 && !v8 )
{
if ( v7 )
{
*(_DWORD *)(a1 + 716) = 1;
if ( *(int *)(a1 + 720) <= 0 )
*(_DWORD *)(a1 + 720) = 2;
}
else
{
*(_DWORD *)(a1 + 716) = 3 - (v6 != 0);
}
}
LABEL_24:
sub_14003D310((__int64)v2);
}