{"type": "func", "start": 4295388912, "end": 4295389147, "name": "CCTextInputNode::setAllowedChars", "pseudocode": "// \n// CCTextInputNode::setAllowedChars from 0x100066ef0 to 0x100066fdb (235 bytes)\n// \n// 78 xrefs:\n// > SetupOpacityPopup::init @ 0x10001cef7\n// > CustomizeObjectLayer::init @ 0x1001d84a9\n// > CustomizeObjectLayer::init @ 0x1001d8f0d\n// > EditLevelLayer::init @ 0x1001dd693\n// > CustomSongLayer::init @ 0x1001f8c7b\n// > SongOptionsLayer::init @ 0x1001fa525\n// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f238\n// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f27e\n// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f31b\n// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f354\n// > LevelSettingsLayer::init @ 0x1002571c0\n// > LevelSettingsLayer::init @ 0x100257477\n// > sub_10028E090 @ 0x10028ea0c\n// > GJWriteMessagePopup::init @ 0x100295b77\n// > GJWriteMessagePopup::init @ 0x100295ec5\n// > SetIDPopup::init @ 0x100298592\n// > sub_10029AA90 @ 0x10029b18a\n// > SetGroupIDLayer::createTextInput @ 0x1002ff888\n// > SetGroupIDLayer::createTextInput @ 0x1002ff8c7\n// > GJGarageLayer::init @ 0x100352b1d\n// > SetupRandAdvTriggerPopup::init @ 0x100378cee\n// > SetupPulsePopup::init @ 0x100393ea9\n// > SetupPulsePopup::init @ 0x1003942b9\n// > SetupPulsePopup::init @ 0x1003946b0\n// > SetupPulsePopup::init @ 0x100395fe7\n// > SetupPulsePopup::init @ 0x1003963b5\n// > SecretLayer4::init @ 0x10039a826\n// > sub_1003BDEC0 @ 0x1003be6f3\n// > ConfigureHSVWidget::createTextInputNode @ 0x10041dc96\n// > CreateParticlePopup::createParticleSlider @ 0x100468529\n// > SecretLayer5::init @ 0x10046efe1\n// > AccountRegisterLayer::init @ 0x10048ca8d\n// > AccountRegisterLayer::init @ 0x10048cd65\n// > AccountRegisterLayer::init @ 0x10048cf5f\n// > AccountRegisterLayer::init @ 0x10048d1c0\n// > AccountRegisterLayer::init @ 0x10048d427\n// > AccountLoginLayer::init @ 0x100491703\n// > AccountLoginLayer::init @ 0x100491aa7\n// > SecretLayer2::init @ 0x10049690c\n// > sub_1004B59F0 @ 0x1004b5ed8\n// > sub_1004B59F0 @ 0x1004b671b\n// > sub_100509EF0 @ 0x10050a3e0\n// > sub_100509EF0 @ 0x10050ac42\n// > CreateGuidelinesLayer::init @ 0x10050d2c8\n// > GJRotationControl::init @ 0x100640a7f\n// > sub_100642070 @ 0x100642169\n// > ShareCommentLayer::init @ 0x1006b20d7\n// > SetupRandTriggerPopup::init @ 0x1006b94bd\n// > SetupInstantCountPopup::init @ 0x1006bc598\n// > SecretLayer::init @ 0x1006d2168\n// > KeybindingsLayer::init @ 0x1006e1ad9\n// > ConfigureValuePopup::init @ 0x1007017a9\n// > ConfigureValuePopup::init @ 0x1007017e6\n// > LevelSearchLayer::init @ 0x100704d14\n// > MoreSearchLayer::init @ 0x10070ad6a\n// > SetupCameraOffsetTrigger::init @ 0x100740fd3\n// > SetupCameraOffsetTrigger::init @ 0x1007418ea\n// > SetupShakePopup::init @ 0x100743ca0\n// > ColorSelectPopup::init @ 0x10080418c\n// > ColorSelectPopup::init @ 0x1008053fc\n// > ColorSelectPopup::init @ 0x10080597f\n// > ColorSelectPopup::init @ 0x1008060ec\n// > MoreOptionsLayer::init @ 0x10087d9f0\n// > sub_1008C8B30 @ 0x1008c8f1b\n// > sub_1008C8B30 @ 0x1008c91c7\n// > sub_1008F0380 @ 0x1008f0568\n// > sub_1008F3770 @ 0x1008f5416\n// > sub_1008FD5B0 @ 0x1008fd994\n// > IDNameBrowserPopup::init @ 0x100909baf\n// > IDNameBrowserPopup::init @ 0x10090a163\n// > IDNameBrowserPopup::init @ 0x10090a5c6\n// > IDNameInput::initCore @ 0x100913a0c\n// > NewThreadPopup::init @ 0x100944e9a\n// > sub_10094F400 @ 0x10094f7c5\n// > ThreadSearchPopup::init @ 0x100950fa7\n// > SFXFolderPickerPopup::init @ 0x100971e2a\n// > sub_100993790 @ 0x100993f26\n// > sub_1009A4C50 @ 0x1009a5308\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 12:19:43 +0000\n// \n\nunsigned __int8 __fastcall CCTextInputNode::setAllowedChars(__int64 a1, const std::string *a2)\n{\n  unsigned __int8 result; // al\n  std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v4; // cl\n  char v5; // di\n  std::string::size_type v6; // r8\n  char v7; // r9\n  std::string::size_type size; // r10\n  std::string::pointer data; // r10\n  int v10; // r10d\n\n  result = (unsigned __int8)std::string::operator=((std::string *)(a1 + 472), a2);\n  if ( !*(_DWORD *)(a1 + 700) )\n  {\n    v4 = a2->__r_.__value_.__s.0;\n    result = 0;\n    v5 = 0;\n    v6 = 0;\n    v7 = 0;\n    while ( 1 )\n    {\n      size = *(_BYTE *)&a2->__r_.__value_.__l.0 >> 1;\n      if ( (*(_BYTE *)&v4 & 1) != 0 )\n        size = a2->__r_.__value_.__l.__size_;\n      if ( v6 >= size )\n        break;\n      data = a2->__r_.__value_.__s.__data_;\n      if ( (*(_BYTE *)&v4 & 1) != 0 )\n        data = a2->__r_.__value_.__l.__data_;\n      v10 = (unsigned __int8)data[v6];\n      if ( (unsigned __int8)(v10 - 48) < 0xAu )\n      {\n        v7 = 1;\n        ++v6;\n      }\n      else if ( v10 == 45 )\n      {\n        result = 1;\n        ++v6;\n      }\n      else\n      {\n        if ( v10 != 46 )\n          return result;\n        v5 = 1;\n        ++v6;\n      }\n    }\n    if ( (v7 & 1) != 0 )\n    {\n      if ( (v5 & 1) != 0 )\n      {\n        *(_DWORD *)(a1 + 700) = 1;\n        if ( *(int *)(a1 + 704) <= 0 )\n          *(_DWORD *)(a1 + 704) = 2;\n      }\n      else if ( (result & 1) != 0 )\n      {\n        *(_DWORD *)(a1 + 700) = 2;\n      }\n      else\n      {\n        *(_DWORD *)(a1 + 700) = 3;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::setAllowedChars from 0x100066ef0 to 0x100066fdb (235 bytes)\n; \n; 78 xrefs:\n; > SetupOpacityPopup::init @ 0x10001cef7\n; > CustomizeObjectLayer::init @ 0x1001d84a9\n; > CustomizeObjectLayer::init @ 0x1001d8f0d\n; > EditLevelLayer::init @ 0x1001dd693\n; > CustomSongLayer::init @ 0x1001f8c7b\n; > SongOptionsLayer::init @ 0x1001fa525\n; > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f238\n; > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f27e\n; > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f31b\n; > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f354\n; > LevelSettingsLayer::init @ 0x1002571c0\n; > LevelSettingsLayer::init @ 0x100257477\n; > sub_10028E090 @ 0x10028ea0c\n; > GJWriteMessagePopup::init @ 0x100295b77\n; > GJWriteMessagePopup::init @ 0x100295ec5\n; > SetIDPopup::init @ 0x100298592\n; > sub_10029AA90 @ 0x10029b18a\n; > SetGroupIDLayer::createTextInput @ 0x1002ff888\n; > SetGroupIDLayer::createTextInput @ 0x1002ff8c7\n; > GJGarageLayer::init @ 0x100352b1d\n; > SetupRandAdvTriggerPopup::init @ 0x100378cee\n; > SetupPulsePopup::init @ 0x100393ea9\n; > SetupPulsePopup::init @ 0x1003942b9\n; > SetupPulsePopup::init @ 0x1003946b0\n; > SetupPulsePopup::init @ 0x100395fe7\n; > SetupPulsePopup::init @ 0x1003963b5\n; > SecretLayer4::init @ 0x10039a826\n; > sub_1003BDEC0 @ 0x1003be6f3\n; > ConfigureHSVWidget::createTextInputNode @ 0x10041dc96\n; > CreateParticlePopup::createParticleSlider @ 0x100468529\n; > SecretLayer5::init @ 0x10046efe1\n; > AccountRegisterLayer::init @ 0x10048ca8d\n; > AccountRegisterLayer::init @ 0x10048cd65\n; > AccountRegisterLayer::init @ 0x10048cf5f\n; > AccountRegisterLayer::init @ 0x10048d1c0\n; > AccountRegisterLayer::init @ 0x10048d427\n; > AccountLoginLayer::init @ 0x100491703\n; > AccountLoginLayer::init @ 0x100491aa7\n; > SecretLayer2::init @ 0x10049690c\n; > sub_1004B59F0 @ 0x1004b5ed8\n; > sub_1004B59F0 @ 0x1004b671b\n; > sub_100509EF0 @ 0x10050a3e0\n; > sub_100509EF0 @ 0x10050ac42\n; > CreateGuidelinesLayer::init @ 0x10050d2c8\n; > GJRotationControl::init @ 0x100640a7f\n; > sub_100642070 @ 0x100642169\n; > ShareCommentLayer::init @ 0x1006b20d7\n; > SetupRandTriggerPopup::init @ 0x1006b94bd\n; > SetupInstantCountPopup::init @ 0x1006bc598\n; > SecretLayer::init @ 0x1006d2168\n; > KeybindingsLayer::init @ 0x1006e1ad9\n; > ConfigureValuePopup::init @ 0x1007017a9\n; > ConfigureValuePopup::init @ 0x1007017e6\n; > LevelSearchLayer::init @ 0x100704d14\n; > MoreSearchLayer::init @ 0x10070ad6a\n; > SetupCameraOffsetTrigger::init @ 0x100740fd3\n; > SetupCameraOffsetTrigger::init @ 0x1007418ea\n; > SetupShakePopup::init @ 0x100743ca0\n; > ColorSelectPopup::init @ 0x10080418c\n; > ColorSelectPopup::init @ 0x1008053fc\n; > ColorSelectPopup::init @ 0x10080597f\n; > ColorSelectPopup::init @ 0x1008060ec\n; > MoreOptionsLayer::init @ 0x10087d9f0\n; > sub_1008C8B30 @ 0x1008c8f1b\n; > sub_1008C8B30 @ 0x1008c91c7\n; > sub_1008F0380 @ 0x1008f0568\n; > sub_1008F3770 @ 0x1008f5416\n; > sub_1008FD5B0 @ 0x1008fd994\n; > IDNameBrowserPopup::init @ 0x100909baf\n; > IDNameBrowserPopup::init @ 0x10090a163\n; > IDNameBrowserPopup::init @ 0x10090a5c6\n; > IDNameInput::initCore @ 0x100913a0c\n; > NewThreadPopup::init @ 0x100944e9a\n; > sub_10094F400 @ 0x10094f7c5\n; > ThreadSearchPopup::init @ 0x100950fa7\n; > SFXFolderPickerPopup::init @ 0x100971e2a\n; > sub_100993790 @ 0x100993f26\n; > sub_1009A4C50 @ 0x1009a5308\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 12:19:43 +0000\n; \npush    rbp                                                            ; +0x0, 0x100066ef0\nmov     rbp, rsp                                                       ; +0x1, 0x100066ef1\npush    r14                                                            ; +0x4, 0x100066ef4\npush    rbx                                                            ; +0x6, 0x100066ef6\nmov     r14, rsi                                                       ; +0x7, 0x100066ef7\nmov     rbx, rdi                                                       ; +0xa, 0x100066efa\nadd     rdi, 1D8h; this                                                ; +0xd, 0x100066efd\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x14, 0x100066f04\ncmp     dword ptr [rbx+2BCh], 0                                        ; +0x19, 0x100066f09\njz      short loc_100066F17                                            ; +0x20, 0x100066f10\npop     rbx                                                            ; +0x22, 0x100066f12\npop     r14                                                            ; +0x23, 0x100066f13\npop     rbp                                                            ; +0x25, 0x100066f15\nretn                                                                   ; +0x26, 0x100066f16\nmovzx   ecx, byte ptr [r14]                                            ; +0x27, 0x100066f17\nmov     edx, ecx                                                       ; +0x2b, 0x100066f1b\nshr     edx, 1                                                         ; +0x2d, 0x100066f1d\nlea     rsi, [r14+1]                                                   ; +0x2f, 0x100066f1f\nxor     eax, eax                                                       ; +0x33, 0x100066f23\nxor     edi, edi                                                       ; +0x35, 0x100066f25\nxor     r8d, r8d                                                       ; +0x37, 0x100066f27\nxor     r9d, r9d                                                       ; +0x3a, 0x100066f2a\njmp     short loc_100066F36                                            ; +0x3d, 0x100066f2d\nalign 10h                                                              ; +0x3f, 0x100066f2f\nmov     r9b, 1                                                         ; +0x40, 0x100066f30\ninc     r8                                                             ; +0x43, 0x100066f33\nmov     r10, rdx                                                       ; +0x46, 0x100066f36\ntest    cl, 1                                                          ; +0x49, 0x100066f39\njz      short loc_100066F42                                            ; +0x4c, 0x100066f3c\nmov     r10, [r14+8]                                                   ; +0x4e, 0x100066f3e\ncmp     r8, r10                                                        ; +0x52, 0x100066f42\njnb     short loc_100066F87                                            ; +0x55, 0x100066f45\nmov     r10, rsi                                                       ; +0x57, 0x100066f47\ntest    cl, 1                                                          ; +0x5a, 0x100066f4a\njz      short loc_100066F53                                            ; +0x5d, 0x100066f4d\nmov     r10, [r14+10h]                                                 ; +0x5f, 0x100066f4f\nmovzx   r10d, byte ptr [r10+r8]                                        ; +0x63, 0x100066f53\nlea     r11d, [r10-30h]                                                ; +0x68, 0x100066f58\ncmp     r11b, 0Ah                                                      ; +0x6c, 0x100066f5c\njb      short loc_100066F30                                            ; +0x70, 0x100066f60\ncmp     r10d, 2Dh ; '-'                                                ; +0x72, 0x100066f62\njz      short loc_100066F80                                            ; +0x76, 0x100066f66\ncmp     r10d, 2Eh ; '.'                                                ; +0x78, 0x100066f68\njnz     short loc_100066F12                                            ; +0x7c, 0x100066f6c\nmov     dil, 1                                                         ; +0x7e, 0x100066f6e\ninc     r8                                                             ; +0x81, 0x100066f71\njmp     short loc_100066F36                                            ; +0x84, 0x100066f74\nalign 20h                                                              ; +0x86, 0x100066f76\nmov     al, 1                                                          ; +0x90, 0x100066f80\ninc     r8                                                             ; +0x92, 0x100066f82\njmp     short loc_100066F36                                            ; +0x95, 0x100066f85\ntest    r9b, 1                                                         ; +0x97, 0x100066f87\njz      short loc_100066F12                                            ; +0x9b, 0x100066f8b\ntest    dil, 1                                                         ; +0x9d, 0x100066f8d\njz      short loc_100066FB9                                            ; +0xa1, 0x100066f91\nmov     dword ptr [rbx+2BCh], 1                                        ; +0xa3, 0x100066f93\ncmp     dword ptr [rbx+2C0h], 0                                        ; +0xad, 0x100066f9d\njg      loc_100066F12                                                  ; +0xb4, 0x100066fa4\nmov     dword ptr [rbx+2C0h], 2                                        ; +0xba, 0x100066faa\npop     rbx                                                            ; +0xc4, 0x100066fb4\npop     r14                                                            ; +0xc5, 0x100066fb5\npop     rbp                                                            ; +0xc7, 0x100066fb7\nretn                                                                   ; +0xc8, 0x100066fb8\ntest    al, 1                                                          ; +0xc9, 0x100066fb9\njz      short loc_100066FCC                                            ; +0xcb, 0x100066fbb\nmov     dword ptr [rbx+2BCh], 2                                        ; +0xcd, 0x100066fbd\npop     rbx                                                            ; +0xd7, 0x100066fc7\npop     r14                                                            ; +0xd8, 0x100066fc8\npop     rbp                                                            ; +0xda, 0x100066fca\nretn                                                                   ; +0xdb, 0x100066fcb\nmov     dword ptr [rbx+2BCh], 3                                        ; +0xdc, 0x100066fcc\npop     rbx                                                            ; +0xe6, 0x100066fd6\npop     r14                                                            ; +0xe7, 0x100066fd7\npop     rbp                                                            ; +0xe9, 0x100066fd9\nretn                                                                   ; +0xea, 0x100066fda", "xrefs": ["SetupOpacityPopup::init @ 0x10001cef7", "CustomizeObjectLayer::init @ 0x1001d84a9", "CustomizeObjectLayer::init @ 0x1001d8f0d", "EditLevelLayer::init @ 0x1001dd693", "CustomSongLayer::init @ 0x1001f8c7b", "SongOptionsLayer::init @ 0x1001fa525", "SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f238", "SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f27e", "SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f31b", "SetupTriggerPopup::createValueControlAdvanced_1 @ 0x10021f354", "LevelSettingsLayer::init @ 0x1002571c0", "LevelSettingsLayer::init @ 0x100257477", "sub_10028E090 @ 0x10028ea0c", "GJWriteMessagePopup::init @ 0x100295b77", "GJWriteMessagePopup::init @ 0x100295ec5", "SetIDPopup::init @ 0x100298592", "sub_10029AA90 @ 0x10029b18a", "SetGroupIDLayer::createTextInput @ 0x1002ff888", "SetGroupIDLayer::createTextInput @ 0x1002ff8c7", "GJGarageLayer::init @ 0x100352b1d", "SetupRandAdvTriggerPopup::init @ 0x100378cee", "SetupPulsePopup::init @ 0x100393ea9", "SetupPulsePopup::init @ 0x1003942b9", "SetupPulsePopup::init @ 0x1003946b0", "SetupPulsePopup::init @ 0x100395fe7", "SetupPulsePopup::init @ 0x1003963b5", "SecretLayer4::init @ 0x10039a826", "sub_1003BDEC0 @ 0x1003be6f3", "ConfigureHSVWidget::createTextInputNode @ 0x10041dc96", "CreateParticlePopup::createParticleSlider @ 0x100468529", "SecretLayer5::init @ 0x10046efe1", "AccountRegisterLayer::init @ 0x10048ca8d", "AccountRegisterLayer::init @ 0x10048cd65", "AccountRegisterLayer::init @ 0x10048cf5f", "AccountRegisterLayer::init @ 0x10048d1c0", "AccountRegisterLayer::init @ 0x10048d427", "AccountLoginLayer::init @ 0x100491703", "AccountLoginLayer::init @ 0x100491aa7", "SecretLayer2::init @ 0x10049690c", "sub_1004B59F0 @ 0x1004b5ed8", "sub_1004B59F0 @ 0x1004b671b", "sub_100509EF0 @ 0x10050a3e0", "sub_100509EF0 @ 0x10050ac42", "CreateGuidelinesLayer::init @ 0x10050d2c8", "GJRotationControl::init @ 0x100640a7f", "sub_100642070 @ 0x100642169", "ShareCommentLayer::init @ 0x1006b20d7", "SetupRandTriggerPopup::init @ 0x1006b94bd", "SetupInstantCountPopup::init @ 0x1006bc598", "SecretLayer::init @ 0x1006d2168", "KeybindingsLayer::init @ 0x1006e1ad9", "ConfigureValuePopup::init @ 0x1007017a9", "ConfigureValuePopup::init @ 0x1007017e6", "LevelSearchLayer::init @ 0x100704d14", "MoreSearchLayer::init @ 0x10070ad6a", "SetupCameraOffsetTrigger::init @ 0x100740fd3", "SetupCameraOffsetTrigger::init @ 0x1007418ea", "SetupShakePopup::init @ 0x100743ca0", "ColorSelectPopup::init @ 0x10080418c", "ColorSelectPopup::init @ 0x1008053fc", "ColorSelectPopup::init @ 0x10080597f", "ColorSelectPopup::init @ 0x1008060ec", "MoreOptionsLayer::init @ 0x10087d9f0", "sub_1008C8B30 @ 0x1008c8f1b", "sub_1008C8B30 @ 0x1008c91c7", "sub_1008F0380 @ 0x1008f0568", "sub_1008F3770 @ 0x1008f5416", "sub_1008FD5B0 @ 0x1008fd994", "IDNameBrowserPopup::init @ 0x100909baf", "IDNameBrowserPopup::init @ 0x10090a163", "IDNameBrowserPopup::init @ 0x10090a5c6", "IDNameInput::initCore @ 0x100913a0c", "NewThreadPopup::init @ 0x100944e9a", "sub_10094F400 @ 0x10094f7c5", "ThreadSearchPopup::init @ 0x100950fa7", "SFXFolderPickerPopup::init @ 0x100971e2a", "sub_100993790 @ 0x100993f26", "sub_1009A4C50 @ 0x1009a5308"], "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"}