{"type": "func", "start": 5369056544, "end": 5369056810, "name": "CCTextInputNode::setAllowedChars", "pseudocode": "// \n// CCTextInputNode::setAllowedChars from 0x140054d20 to 0x140054e2a (266 bytes)\n// \n// 70 xrefs:\n// > AccountRegisterLayer::init @ 0x14008d1eb\n// > AccountRegisterLayer::init @ 0x14008d43a\n// > AccountRegisterLayer::init @ 0x14008d5e8\n// > AccountRegisterLayer::init @ 0x14008d7d4\n// > AccountRegisterLayer::init @ 0x14008d9a9\n// > AccountLoginLayer::init @ 0x14009100b\n// > AccountLoginLayer::init @ 0x14009115b\n// > AdminActionConfirmPopup::init @ 0x1400a5cd2\n// > ReviewChoiceSheet::init @ 0x1400ae962\n// > SFXFolderPickerPopup::init @ 0x1400c45e3\n// > NewThreadPopup::init @ 0x1400efd1c\n// > RenameThreadPopup::init @ 0x1400fa1a4\n// > ThreadSearchPopup::init @ 0x1400fb6eb\n// > DeathStatsPopup::init @ 0x14011e89e\n// > DeathStatsPopup::init @ 0x14011eb4b\n// > ColorSelectPopup::init @ 0x14012714a\n// > ColorSelectPopup::init @ 0x1401284e8\n// > ColorSelectPopup::init @ 0x140128a9b\n// > ColorSelectPopup::init @ 0x1401291e9\n// > ConfigureHSVWidget::createTextInputNode @ 0x140130690\n// > ConfigureValuePopup::init @ 0x140132188\n// > CreateGuidelinesLayer::init @ 0x140133a2d\n// > CustomizeObjectLayer::init @ 0x1401407d7\n// > CustomizeObjectLayer::init @ 0x1401414d9\n// > CustomSongLayer::init @ 0x1401646f9\n// > SongOptionsLayer::init @ 0x140165f33\n// > EditLevelLayer::init @ 0x140178dbb\n// > EditorSoundBrowserLayer::onSelectMode @ 0x14018f256\n// > EditorSoundConfigInfoLayer::init @ 0x1401923fd\n// > EditorSoundsLayer::init @ 0x14019d1fe\n// > GJRotationControl::init @ 0x1401a23a8\n// > GJScaleControl::createScaleInput @ 0x1401a4809\n// > GJGarageLayer::init @ 0x14037bd34\n// > SocialLinksPopup::init @ 0x14039fc60\n// > SetIDPopup::init @ 0x1403a5aee\n// > SetTextPopup::init @ 0x1403a79f5\n// > IDNameBrowserPopup::init @ 0x1403c1d1d\n// > IDNameBrowserPopup::init @ 0x1403c23c1\n// > IDNameBrowserPopup::init @ 0x1403c2847\n// > IDNameInput::initCore @ 0x1403c7f97\n// > KeybindingsLayer::init @ 0x1403d5cfc\n// > LevelSearchLayer::init @ 0x140434dfb\n// > MoreSearchLayer::init @ 0x14043d3b0\n// > LevelSettingsLayer::init @ 0x14045986c\n// > LevelSettingsLayer::init @ 0x140459b2a\n// > MoreVideoOptionsLayer::init @ 0x1404cef45\n// > SecretLayer::init @ 0x1405736fe\n// > SecretLayer2::init @ 0x140578b64\n// > SecretLayer4::init @ 0x140585ff1\n// > SecretLayer5::init @ 0x140589d9b\n// > SetGroupIDLayer::createTextInput @ 0x140590fb4\n// > SetupAnimationPopup::init @ 0x1405a0f75\n// > SetupCameraOffsetTrigger::init @ 0x1405ace6f\n// > SetupCameraOffsetTrigger::init @ 0x1405ad6f7\n// > SetupInstantCountPopup::init @ 0x1405b7fdb\n// > SetupMGTrigger::init @ 0x1405bce52\n// > SetupMGTrigger::init @ 0x1405bd6c1\n// > SetupOpacityPopup::init @ 0x1405c0437\n// > CreateParticlePopup::createParticleSlider @ 0x1405c62dd\n// > SetupPulsePopup::init @ 0x1405cd543\n// > SetupPulsePopup::init @ 0x1405cd9ef\n// > SetupPulsePopup::init @ 0x1405cde79\n// > SetupPulsePopup::init @ 0x1405cf9c2\n// > SetupPulsePopup::init @ 0x1405cfe04\n// > SetupRandAdvTriggerPopup::init @ 0x1405d31c5\n// > SetupRandTriggerPopup::init @ 0x1405d575b\n// > SetupShakePopup::init @ 0x1405eaf9e\n// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060ddb5\n// > ShareCommentLayer::init @ 0x14062ee4d\n// > <???> @ 0x140910310\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall CCTextInputNode::setAllowedChars(__int64 a1, void **a2)\n{\n  void **v2; // rbx\n  void **v4; // rcx\n  char v5; // r9\n  char v6; // r8\n  char v7; // r11\n  char v8; // bp\n  __int64 v9; // rdx\n  void *v10; // r10\n  _QWORD *v11; // rcx\n  char v12; // cl\n\n  v2 = a2;\n  v4 = (void **)(a1 + 480);\n  if ( v4 != a2 )\n  {\n    if ( (unsigned __int64)a2[3] > 0xF )\n      a2 = (void **)*a2;\n    sub_1400405A0(v4, a2, (size_t)v2[2]);\n  }\n  if ( *(_DWORD *)(a1 + 716) )\n    goto LABEL_24;\n  v5 = 0;\n  v6 = 0;\n  v7 = 0;\n  v8 = 0;\n  v9 = 0;\n  v10 = v2[2];\n  if ( !v10 )\n    goto LABEL_24;\n  while ( 1 )\n  {\n    v11 = v2;\n    if ( (unsigned __int64)v2[3] > 0xF )\n      v11 = *v2;\n    v12 = *((_BYTE *)v11 + v9);\n    if ( (unsigned __int8)(v12 - 48) > 9u )\n      break;\n    v5 = 1;\nLABEL_15:\n    if ( ++v9 >= (unsigned __int64)v10 )\n      goto LABEL_18;\n  }\n  if ( v12 == 45 )\n  {\n    v6 = 1;\n    goto LABEL_15;\n  }\n  if ( v12 == 46 )\n  {\n    v7 = 1;\n    goto LABEL_15;\n  }\n  v8 = 1;\nLABEL_18:\n  if ( v5 && !v8 )\n  {\n    if ( v7 )\n    {\n      *(_DWORD *)(a1 + 716) = 1;\n      if ( *(int *)(a1 + 720) <= 0 )\n        *(_DWORD *)(a1 + 720) = 2;\n    }\n    else\n    {\n      *(_DWORD *)(a1 + 716) = 3 - (v6 != 0);\n    }\n  }\nLABEL_24:\n  sub_14003D310((__int64)v2);\n}", "assembly": "; \n; CCTextInputNode::setAllowedChars from 0x140054d20 to 0x140054e2a (266 bytes)\n; \n; 70 xrefs:\n; > AccountRegisterLayer::init @ 0x14008d1eb\n; > AccountRegisterLayer::init @ 0x14008d43a\n; > AccountRegisterLayer::init @ 0x14008d5e8\n; > AccountRegisterLayer::init @ 0x14008d7d4\n; > AccountRegisterLayer::init @ 0x14008d9a9\n; > AccountLoginLayer::init @ 0x14009100b\n; > AccountLoginLayer::init @ 0x14009115b\n; > AdminActionConfirmPopup::init @ 0x1400a5cd2\n; > ReviewChoiceSheet::init @ 0x1400ae962\n; > SFXFolderPickerPopup::init @ 0x1400c45e3\n; > NewThreadPopup::init @ 0x1400efd1c\n; > RenameThreadPopup::init @ 0x1400fa1a4\n; > ThreadSearchPopup::init @ 0x1400fb6eb\n; > DeathStatsPopup::init @ 0x14011e89e\n; > DeathStatsPopup::init @ 0x14011eb4b\n; > ColorSelectPopup::init @ 0x14012714a\n; > ColorSelectPopup::init @ 0x1401284e8\n; > ColorSelectPopup::init @ 0x140128a9b\n; > ColorSelectPopup::init @ 0x1401291e9\n; > ConfigureHSVWidget::createTextInputNode @ 0x140130690\n; > ConfigureValuePopup::init @ 0x140132188\n; > CreateGuidelinesLayer::init @ 0x140133a2d\n; > CustomizeObjectLayer::init @ 0x1401407d7\n; > CustomizeObjectLayer::init @ 0x1401414d9\n; > CustomSongLayer::init @ 0x1401646f9\n; > SongOptionsLayer::init @ 0x140165f33\n; > EditLevelLayer::init @ 0x140178dbb\n; > EditorSoundBrowserLayer::onSelectMode @ 0x14018f256\n; > EditorSoundConfigInfoLayer::init @ 0x1401923fd\n; > EditorSoundsLayer::init @ 0x14019d1fe\n; > GJRotationControl::init @ 0x1401a23a8\n; > GJScaleControl::createScaleInput @ 0x1401a4809\n; > GJGarageLayer::init @ 0x14037bd34\n; > SocialLinksPopup::init @ 0x14039fc60\n; > SetIDPopup::init @ 0x1403a5aee\n; > SetTextPopup::init @ 0x1403a79f5\n; > IDNameBrowserPopup::init @ 0x1403c1d1d\n; > IDNameBrowserPopup::init @ 0x1403c23c1\n; > IDNameBrowserPopup::init @ 0x1403c2847\n; > IDNameInput::initCore @ 0x1403c7f97\n; > KeybindingsLayer::init @ 0x1403d5cfc\n; > LevelSearchLayer::init @ 0x140434dfb\n; > MoreSearchLayer::init @ 0x14043d3b0\n; > LevelSettingsLayer::init @ 0x14045986c\n; > LevelSettingsLayer::init @ 0x140459b2a\n; > MoreVideoOptionsLayer::init @ 0x1404cef45\n; > SecretLayer::init @ 0x1405736fe\n; > SecretLayer2::init @ 0x140578b64\n; > SecretLayer4::init @ 0x140585ff1\n; > SecretLayer5::init @ 0x140589d9b\n; > SetGroupIDLayer::createTextInput @ 0x140590fb4\n; > SetupAnimationPopup::init @ 0x1405a0f75\n; > SetupCameraOffsetTrigger::init @ 0x1405ace6f\n; > SetupCameraOffsetTrigger::init @ 0x1405ad6f7\n; > SetupInstantCountPopup::init @ 0x1405b7fdb\n; > SetupMGTrigger::init @ 0x1405bce52\n; > SetupMGTrigger::init @ 0x1405bd6c1\n; > SetupOpacityPopup::init @ 0x1405c0437\n; > CreateParticlePopup::createParticleSlider @ 0x1405c62dd\n; > SetupPulsePopup::init @ 0x1405cd543\n; > SetupPulsePopup::init @ 0x1405cd9ef\n; > SetupPulsePopup::init @ 0x1405cde79\n; > SetupPulsePopup::init @ 0x1405cf9c2\n; > SetupPulsePopup::init @ 0x1405cfe04\n; > SetupRandAdvTriggerPopup::init @ 0x1405d31c5\n; > SetupRandTriggerPopup::init @ 0x1405d575b\n; > SetupShakePopup::init @ 0x1405eaf9e\n; > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060ddb5\n; > ShareCommentLayer::init @ 0x14062ee4d\n; > <???> @ 0x140910310\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:40 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140054d20\npush    rbp                                                            ; +0x5, 0x140054d25\npush    rsi                                                            ; +0x6, 0x140054d26\npush    rdi                                                            ; +0x7, 0x140054d27\nsub     rsp, 30h                                                       ; +0x8, 0x140054d28\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x140054d2c\nxor     rax, rsp                                                       ; +0x13, 0x140054d33\nmov     [rsp+48h+var_20], rax                                          ; +0x16, 0x140054d36\nmov     rbx, rdx                                                       ; +0x1b, 0x140054d3b\nmov     rdi, rcx                                                       ; +0x1e, 0x140054d3e\nmov     [rsp+48h+var_28], rdx                                          ; +0x21, 0x140054d41\nadd     rcx, 1E0h; void *                                              ; +0x26, 0x140054d46\ncmp     rcx, rdx                                                       ; +0x2d, 0x140054d4d\njz      short loc_140054D65                                            ; +0x30, 0x140054d50\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x32, 0x140054d52\njbe     short loc_140054D5C                                            ; +0x37, 0x140054d57\nmov     rdx, [rdx]; Src                                                ; +0x39, 0x140054d59\nmov     r8, [rbx+10h]; Size                                            ; +0x3c, 0x140054d5c\ncall    sub_1400405A0                                                  ; +0x40, 0x140054d60\ncmp     dword ptr [rdi+2CCh], 0                                        ; +0x45, 0x140054d65\njnz     loc_140054E08                                                  ; +0x4c, 0x140054d6c\nxor     r9b, r9b                                                       ; +0x52, 0x140054d72\nxor     r8b, r8b                                                       ; +0x55, 0x140054d75\nxor     r11b, r11b                                                     ; +0x58, 0x140054d78\nxor     bpl, bpl                                                       ; +0x5b, 0x140054d7b\nxor     edx, edx                                                       ; +0x5e, 0x140054d7e\nmov     r10, [rbx+10h]                                                 ; +0x60, 0x140054d80\ntest    r10, r10                                                       ; +0x64, 0x140054d84\njz      loc_140054E08                                                  ; +0x67, 0x140054d87\nmov     rsi, [rbx+18h]                                                 ; +0x6d, 0x140054d8d\nmov     rcx, rbx                                                       ; +0x71, 0x140054d91\ncmp     rsi, 0Fh                                                       ; +0x74, 0x140054d94\njbe     short loc_140054D9D                                            ; +0x78, 0x140054d98\nmov     rcx, [rbx]                                                     ; +0x7a, 0x140054d9a\nmovzx   ecx, byte ptr [rcx+rdx]                                        ; +0x7d, 0x140054d9d\nlea     eax, [rcx-30h]                                                 ; +0x81, 0x140054da1\ncmp     al, 9                                                          ; +0x84, 0x140054da4\nja      short loc_140054DAD                                            ; +0x86, 0x140054da6\nmov     r9b, 1                                                         ; +0x88, 0x140054da8\njmp     short loc_140054DBF                                            ; +0x8b, 0x140054dab\ncmp     cl, 2Dh ; '-'                                                  ; +0x8d, 0x140054dad\njnz     short loc_140054DB7                                            ; +0x90, 0x140054db0\nmov     r8b, 1                                                         ; +0x92, 0x140054db2\njmp     short loc_140054DBF                                            ; +0x95, 0x140054db5\ncmp     cl, 2Eh ; '.'                                                  ; +0x97, 0x140054db7\njnz     short loc_140054DC9                                            ; +0x9a, 0x140054dba\nmov     r11b, 1                                                        ; +0x9c, 0x140054dbc\ninc     rdx                                                            ; +0x9f, 0x140054dbf\ncmp     rdx, r10                                                       ; +0xa2, 0x140054dc2\njb      short loc_140054D91                                            ; +0xa5, 0x140054dc5\njmp     short loc_140054DCC                                            ; +0xa7, 0x140054dc7\nmov     bpl, 1                                                         ; +0xa9, 0x140054dc9\ntest    r9b, r9b                                                       ; +0xac, 0x140054dcc\njz      short loc_140054E08                                            ; +0xaf, 0x140054dcf\ntest    bpl, bpl                                                       ; +0xb1, 0x140054dd1\njnz     short loc_140054E08                                            ; +0xb4, 0x140054dd4\ntest    r11b, r11b                                                     ; +0xb6, 0x140054dd6\njz      short loc_140054DFA                                            ; +0xb9, 0x140054dd9\nmov     dword ptr [rdi+2CCh], 1                                        ; +0xbb, 0x140054ddb\ncmp     dword ptr [rdi+2D0h], 0                                        ; +0xc5, 0x140054de5\njg      short loc_140054E08                                            ; +0xcc, 0x140054dec\nmov     dword ptr [rdi+2D0h], 2                                        ; +0xce, 0x140054dee\njmp     short loc_140054E08                                            ; +0xd8, 0x140054df8\nneg     r8b                                                            ; +0xda, 0x140054dfa\nsbb     eax, eax                                                       ; +0xdd, 0x140054dfd\nadd     eax, 3                                                         ; +0xdf, 0x140054dff\nmov     [rdi+2CCh], eax                                                ; +0xe2, 0x140054e02\nmov     rcx, rbx                                                       ; +0xe8, 0x140054e08\ncall    sub_14003D310                                                  ; +0xeb, 0x140054e0b\nmov     rcx, [rsp+48h+var_20]                                          ; +0xf0, 0x140054e10\nxor     rcx, rsp; StackCookie                                          ; +0xf5, 0x140054e15\ncall    __security_check_cookie                                        ; +0xf8, 0x140054e18\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xfd, 0x140054e1d\nadd     rsp, 30h                                                       ; +0x102, 0x140054e22\npop     rdi                                                            ; +0x106, 0x140054e26\npop     rsi                                                            ; +0x107, 0x140054e27\npop     rbp                                                            ; +0x108, 0x140054e28\nretn                                                                   ; +0x109, 0x140054e29", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}