{"type": "func", "start": 4074772, "end": 4074904, "name": "CCTextInputNode::setAllowedChars", "pseudocode": "// \n// CCTextInputNode::setAllowedChars from 0x3e2d14 to 0x3e2d98 (132 bytes)\n// \n// 78 xrefs:\n// > CreateGuidelinesLayer::init @ 0x3f87c2\n// > MoreSearchLayer::init @ 0x497cb4\n// > LevelSearchLayer::init @ 0x4987dc\n// > EditLevelLayer::init @ 0x4a1400\n// > ColorSelectPopup::init @ 0x4dfe9a\n// > ColorSelectPopup::init @ 0x4e0c42\n// > ColorSelectPopup::init @ 0x4e1076\n// > ColorSelectPopup::init @ 0x4e1586\n// > GJGarageLayer::init @ 0x51023c\n// > MoreOptionsLayer::init @ 0x5338be\n// > ShareCommentLayer::init @ 0x541cd4\n// > CustomSongLayer::init @ 0x57c9ac\n// > SongOptionsLayer::init @ 0x57d518\n// > CustomizeObjectLayer::init @ 0x580282\n// > CustomizeObjectLayer::init @ 0x580960\n// > AccountRegisterLayer::init @ 0x586d8e\n// > AccountRegisterLayer::init @ 0x586f6c\n// > AccountRegisterLayer::init @ 0x58705a\n// > AccountRegisterLayer::init @ 0x587152\n// > AccountRegisterLayer::init @ 0x587234\n// > AccountLoginLayer::init @ 0x5876f6\n// > AccountLoginLayer::init @ 0x58783a\n// > KeybindingsLayer::init @ 0x58aadc\n// > SetIDPopup::init @ 0x5da9f4\n// > SetTextPopup::init @ 0x5de71a\n// > GJWriteMessagePopup::init @ 0x5dfb8e\n// > GJWriteMessagePopup::init @ 0x5dfe12\n// > SocialLinksPopup::init @ 0x5e2c8e\n// > ConfigureHSVWidget::createTextInputNode @ 0x5e5186\n// > SetupOpacityPopup::init @ 0x5e9c40\n// > SetupPulsePopup::init @ 0x5ed41e\n// > SetupPulsePopup::init @ 0x5ed6f8\n// > SetupPulsePopup::init @ 0x5ed9d0\n// > SetupPulsePopup::init @ 0x5eeb90\n// > SetupPulsePopup::init @ 0x5eee6e\n// > SecretLayer::init @ 0x5ff00c\n// > ConfigureValuePopup::init @ 0x603060\n// > ConfigureValuePopup::init @ 0x603074\n// > SecretLayer2::init @ 0x61f74a\n// > SecretLayer4::init @ 0x623016\n// > SetupAnimationPopup::init @ 0x624c2a\n// > SetupInstantCountPopup::init @ 0x628088\n// > SetupShakePopup::init @ 0x62a104\n// > SetupCameraOffsetTrigger::init @ 0x6331a4\n// > SetupCameraOffsetTrigger::init @ 0x633816\n// > SetupRandTriggerPopup::init @ 0x636322\n// > SetGroupIDLayer::createTextInput @ 0x63ce64\n// > SetGroupIDLayer::createTextInput @ 0x63ce78\n// > SetupCameraRotatePopup::init @ 0x65a984\n// > SetupCameraRotatePopup::init @ 0x65afb4\n// > SetupRandAdvTriggerPopup::init @ 0x65c576\n// > CreateParticlePopup::createParticleSlider @ 0x666f18\n// > SetupTriggerPopup::createValueControlAdvanced @ 0x67a788\n// > SetupTriggerPopup::createValueControlAdvanced @ 0x67a79c\n// > SetupTriggerPopup::createValueControlAdvanced @ 0x67a7b0\n// > SetupTriggerPopup::createValueControlAdvanced @ 0x67a7f2\n// > SetupMGTrigger::init @ 0x69af00\n// > SetupMGTrigger::init @ 0x69b53c\n// > LevelSettingsLayer::init @ 0x6ac61e\n// > LevelSettingsLayer::init @ 0x6ac846\n// > SecretLayer5::init @ 0x6e5ee2\n// > GJScaleControl::createScaleInput @ 0x6ee7f8\n// > GJRotationControl::init @ 0x6ef2e6\n// > SFXFolderPickerPopup::init @ 0x730722\n// > AdminActionConfirmPopup::init @ 0x731762\n// > ReviewChoiceSheet::init @ 0x7335b8\n// > RenameThreadPopup::init @ 0x74de4c\n// > ThreadSearchPopup::init @ 0x74e6a2\n// > NewThreadPopup::init @ 0x756a6e\n// > DeathStatsPopup::init @ 0x76f528\n// > DeathStatsPopup::init @ 0x76f76c\n// > EditorSoundBrowserLayer::onSelectMode @ 0x783508\n// > EditorSoundConfigInfoLayer::init @ 0x7874a2\n// > EditorSoundsLayer::init @ 0x78ae4a\n// > IDNameBrowserPopup::init @ 0x792818\n// > IDNameBrowserPopup::init @ 0x792c4e\n// > IDNameBrowserPopup::init @ 0x792f7e\n// > IDNameInput::initCore @ 0x79413e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:02 +0000\n// \n\nunsigned __int8 *__fastcall CCTextInputNode::setAllowedChars(int a1, unsigned __int8 *a2)\n{\n  unsigned __int8 *result; // r0\n  unsigned int v5; // r3\n  int v6; // r2\n  int v7; // r7\n  int v8; // r6\n  int v9; // lr\n  unsigned int v10; // r2\n  unsigned __int8 *v11; // r1\n  int v12; // r1\n  int v13; // r3\n\n  result = std::string::operator=((unsigned __int8 *)(a1 + 356), a2);\n  v5 = *(_DWORD *)(a1 + 504);\n  if ( v5 )\n    return result;\n  v6 = *a2;\n  v7 = 0;\n  v8 = 0;\n  result = nullptr;\n  v9 = v6 & 1;\n  v10 = v6 >> 1;\n  while ( v9 )\n  {\n    if ( v5 >= *((_DWORD *)a2 + 1) )\n      goto LABEL_15;\n    v11 = *((unsigned __int8 **)a2 + 2);\nLABEL_8:\n    v12 = v11[v5];\n    if ( (unsigned int)(v12 - 48) <= 9 )\n    {\n      result = (_BYTE *)(&dword_0 + 1);\n    }\n    else if ( v12 == 45 )\n    {\n      v8 = 1;\n    }\n    else\n    {\n      if ( v12 != 46 )\n        return result;\n      v7 = 1;\n    }\n    ++v5;\n  }\n  if ( v5 < v10 )\n  {\n    v11 = a2 + 1;\n    goto LABEL_8;\n  }\nLABEL_15:\n  if ( result )\n  {\n    if ( v7 )\n    {\n      *(_DWORD *)(a1 + 504) = 1;\n      if ( *(int *)(a1 + 508) <= 0 )\n        *(_DWORD *)(a1 + 508) = 2;\n    }\n    else\n    {\n      if ( v8 )\n        v13 = 2;\n      else\n        v13 = 3;\n      *(_DWORD *)(a1 + 504) = v13;\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCTextInputNode::setAllowedChars from 0x3e2d14 to 0x3e2d98 (132 bytes)\n; \n; 78 xrefs:\n; > CreateGuidelinesLayer::init @ 0x3f87c2\n; > MoreSearchLayer::init @ 0x497cb4\n; > LevelSearchLayer::init @ 0x4987dc\n; > EditLevelLayer::init @ 0x4a1400\n; > ColorSelectPopup::init @ 0x4dfe9a\n; > ColorSelectPopup::init @ 0x4e0c42\n; > ColorSelectPopup::init @ 0x4e1076\n; > ColorSelectPopup::init @ 0x4e1586\n; > GJGarageLayer::init @ 0x51023c\n; > MoreOptionsLayer::init @ 0x5338be\n; > ShareCommentLayer::init @ 0x541cd4\n; > CustomSongLayer::init @ 0x57c9ac\n; > SongOptionsLayer::init @ 0x57d518\n; > CustomizeObjectLayer::init @ 0x580282\n; > CustomizeObjectLayer::init @ 0x580960\n; > AccountRegisterLayer::init @ 0x586d8e\n; > AccountRegisterLayer::init @ 0x586f6c\n; > AccountRegisterLayer::init @ 0x58705a\n; > AccountRegisterLayer::init @ 0x587152\n; > AccountRegisterLayer::init @ 0x587234\n; > AccountLoginLayer::init @ 0x5876f6\n; > AccountLoginLayer::init @ 0x58783a\n; > KeybindingsLayer::init @ 0x58aadc\n; > SetIDPopup::init @ 0x5da9f4\n; > SetTextPopup::init @ 0x5de71a\n; > GJWriteMessagePopup::init @ 0x5dfb8e\n; > GJWriteMessagePopup::init @ 0x5dfe12\n; > SocialLinksPopup::init @ 0x5e2c8e\n; > ConfigureHSVWidget::createTextInputNode @ 0x5e5186\n; > SetupOpacityPopup::init @ 0x5e9c40\n; > SetupPulsePopup::init @ 0x5ed41e\n; > SetupPulsePopup::init @ 0x5ed6f8\n; > SetupPulsePopup::init @ 0x5ed9d0\n; > SetupPulsePopup::init @ 0x5eeb90\n; > SetupPulsePopup::init @ 0x5eee6e\n; > SecretLayer::init @ 0x5ff00c\n; > ConfigureValuePopup::init @ 0x603060\n; > ConfigureValuePopup::init @ 0x603074\n; > SecretLayer2::init @ 0x61f74a\n; > SecretLayer4::init @ 0x623016\n; > SetupAnimationPopup::init @ 0x624c2a\n; > SetupInstantCountPopup::init @ 0x628088\n; > SetupShakePopup::init @ 0x62a104\n; > SetupCameraOffsetTrigger::init @ 0x6331a4\n; > SetupCameraOffsetTrigger::init @ 0x633816\n; > SetupRandTriggerPopup::init @ 0x636322\n; > SetGroupIDLayer::createTextInput @ 0x63ce64\n; > SetGroupIDLayer::createTextInput @ 0x63ce78\n; > SetupCameraRotatePopup::init @ 0x65a984\n; > SetupCameraRotatePopup::init @ 0x65afb4\n; > SetupRandAdvTriggerPopup::init @ 0x65c576\n; > CreateParticlePopup::createParticleSlider @ 0x666f18\n; > SetupTriggerPopup::createValueControlAdvanced @ 0x67a788\n; > SetupTriggerPopup::createValueControlAdvanced @ 0x67a79c\n; > SetupTriggerPopup::createValueControlAdvanced @ 0x67a7b0\n; > SetupTriggerPopup::createValueControlAdvanced @ 0x67a7f2\n; > SetupMGTrigger::init @ 0x69af00\n; > SetupMGTrigger::init @ 0x69b53c\n; > LevelSettingsLayer::init @ 0x6ac61e\n; > LevelSettingsLayer::init @ 0x6ac846\n; > SecretLayer5::init @ 0x6e5ee2\n; > GJScaleControl::createScaleInput @ 0x6ee7f8\n; > GJRotationControl::init @ 0x6ef2e6\n; > SFXFolderPickerPopup::init @ 0x730722\n; > AdminActionConfirmPopup::init @ 0x731762\n; > ReviewChoiceSheet::init @ 0x7335b8\n; > RenameThreadPopup::init @ 0x74de4c\n; > ThreadSearchPopup::init @ 0x74e6a2\n; > NewThreadPopup::init @ 0x756a6e\n; > DeathStatsPopup::init @ 0x76f528\n; > DeathStatsPopup::init @ 0x76f76c\n; > EditorSoundBrowserLayer::onSelectMode @ 0x783508\n; > EditorSoundConfigInfoLayer::init @ 0x7874a2\n; > EditorSoundsLayer::init @ 0x78ae4a\n; > IDNameBrowserPopup::init @ 0x792818\n; > IDNameBrowserPopup::init @ 0x792c4e\n; > IDNameBrowserPopup::init @ 0x792f7e\n; > IDNameInput::initCore @ 0x79413e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:47:02 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x3e2d14\nMOV             R4, R0                                                 ; +0x2, 0x3e2d16\nADD.W           R0, R0, #0x164                                         ; +0x4, 0x3e2d18\nMOV             R5, R1                                                 ; +0x8, 0x3e2d1c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xa, 0x3e2d1e\nLDR.W           R3, [R4,#0x1F8]                                        ; +0xe, 0x3e2d22\nCBNZ            R3, locret_3E2D96                                      ; +0x12, 0x3e2d26\nLDRB            R2, [R5]                                               ; +0x14, 0x3e2d28\nMOV             R7, R3                                                 ; +0x16, 0x3e2d2a\nMOV             R6, R3                                                 ; +0x18, 0x3e2d2c\nMOV             R0, R3                                                 ; +0x1a, 0x3e2d2e\nAND.W           LR, R2, #1                                             ; +0x1c, 0x3e2d30\nASRS            R2, R2, #1                                             ; +0x20, 0x3e2d34\nCMP.W           LR, #0                                                 ; +0x22, 0x3e2d36\nBEQ             loc_3E2D46                                             ; +0x26, 0x3e2d3a\nLDR             R1, [R5,#4]                                            ; +0x28, 0x3e2d3c\nCMP             R3, R1                                                 ; +0x2a, 0x3e2d3e\nBCS             loc_3E2D6E                                             ; +0x2c, 0x3e2d40\nLDR             R1, [R5,#8]                                            ; +0x2e, 0x3e2d42\nB               loc_3E2D4C                                             ; +0x30, 0x3e2d44\nCMP             R3, R2                                                 ; +0x32, 0x3e2d46\nBCS             loc_3E2D6E                                             ; +0x34, 0x3e2d48\nADDS            R1, R5, #1                                             ; +0x36, 0x3e2d4a\nLDRB            R1, [R1,R3]                                            ; +0x38, 0x3e2d4c\nSUB.W           R12, R1, #0x30 ; '0'                                   ; +0x3a, 0x3e2d4e\nCMP.W           R12, #9                                                ; +0x3e, 0x3e2d52\nBLS             loc_3E2D64                                             ; +0x42, 0x3e2d56\nCMP             R1, #0x2D ; '-'                                        ; +0x44, 0x3e2d58\nBEQ             loc_3E2D68                                             ; +0x46, 0x3e2d5a\nCMP             R1, #0x2E ; '.'                                        ; +0x48, 0x3e2d5c\nBNE             locret_3E2D96                                          ; +0x4a, 0x3e2d5e\nMOVS            R7, #1                                                 ; +0x4c, 0x3e2d60\nB               loc_3E2D6A                                             ; +0x4e, 0x3e2d62\nMOVS            R0, #1                                                 ; +0x50, 0x3e2d64\nB               loc_3E2D6A                                             ; +0x52, 0x3e2d66\nMOVS            R6, #1                                                 ; +0x54, 0x3e2d68\nADDS            R3, #1                                                 ; +0x56, 0x3e2d6a\nB               loc_3E2D36                                             ; +0x58, 0x3e2d6c\nCBZ             R0, locret_3E2D96                                      ; +0x5a, 0x3e2d6e\nCBZ             R7, loc_3E2D88                                         ; +0x5c, 0x3e2d70\nMOVS            R3, #1                                                 ; +0x5e, 0x3e2d72\nSTR.W           R3, [R4,#0x1F8]                                        ; +0x60, 0x3e2d74\nLDR.W           R3, [R4,#0x1FC]                                        ; +0x64, 0x3e2d78\nCMP             R3, #0                                                 ; +0x68, 0x3e2d7c\nBGT             locret_3E2D96                                          ; +0x6a, 0x3e2d7e\nMOVS            R3, #2                                                 ; +0x6c, 0x3e2d80\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x6e, 0x3e2d82\nPOP             {R3-R7,PC}                                             ; +0x72, 0x3e2d86\nCBZ             R6, loc_3E2D8E                                         ; +0x74, 0x3e2d88\nMOVS            R3, #2                                                 ; +0x76, 0x3e2d8a\nB               loc_3E2D90                                             ; +0x78, 0x3e2d8c\nMOVS            R3, #3                                                 ; +0x7a, 0x3e2d8e\nSTR.W           R3, [R4,#0x1F8]                                        ; +0x7c, 0x3e2d90\nPOP             {R3-R7,PC}                                             ; +0x80, 0x3e2d94\nPOP             {R3-R7,PC}                                             ; +0x82, 0x3e2d96", "xrefs": ["CreateGuidelinesLayer::init @ 0x3f87c2", "MoreSearchLayer::init @ 0x497cb4", "LevelSearchLayer::init @ 0x4987dc", "EditLevelLayer::init @ 0x4a1400", "ColorSelectPopup::init @ 0x4dfe9a", "ColorSelectPopup::init @ 0x4e0c42", "ColorSelectPopup::init @ 0x4e1076", "ColorSelectPopup::init @ 0x4e1586", "GJGarageLayer::init @ 0x51023c", "MoreOptionsLayer::init @ 0x5338be", "ShareCommentLayer::init @ 0x541cd4", "CustomSongLayer::init @ 0x57c9ac", "SongOptionsLayer::init @ 0x57d518", "CustomizeObjectLayer::init @ 0x580282", "CustomizeObjectLayer::init @ 0x580960", "AccountRegisterLayer::init @ 0x586d8e", "AccountRegisterLayer::init @ 0x586f6c", "AccountRegisterLayer::init @ 0x58705a", "AccountRegisterLayer::init @ 0x587152", "AccountRegisterLayer::init @ 0x587234", "AccountLoginLayer::init @ 0x5876f6", "AccountLoginLayer::init @ 0x58783a", "KeybindingsLayer::init @ 0x58aadc", "SetIDPopup::init @ 0x5da9f4", "SetTextPopup::init @ 0x5de71a", "GJWriteMessagePopup::init @ 0x5dfb8e", "GJWriteMessagePopup::init @ 0x5dfe12", "SocialLinksPopup::init @ 0x5e2c8e", "ConfigureHSVWidget::createTextInputNode @ 0x5e5186", "SetupOpacityPopup::init @ 0x5e9c40", "SetupPulsePopup::init @ 0x5ed41e", "SetupPulsePopup::init @ 0x5ed6f8", "SetupPulsePopup::init @ 0x5ed9d0", "SetupPulsePopup::init @ 0x5eeb90", "SetupPulsePopup::init @ 0x5eee6e", "SecretLayer::init @ 0x5ff00c", "ConfigureValuePopup::init @ 0x603060", "ConfigureValuePopup::init @ 0x603074", "SecretLayer2::init @ 0x61f74a", "SecretLayer4::init @ 0x623016", "SetupAnimationPopup::init @ 0x624c2a", "SetupInstantCountPopup::init @ 0x628088", "SetupShakePopup::init @ 0x62a104", "SetupCameraOffsetTrigger::init @ 0x6331a4", "SetupCameraOffsetTrigger::init @ 0x633816", "SetupRandTriggerPopup::init @ 0x636322", "SetGroupIDLayer::createTextInput @ 0x63ce64", "SetGroupIDLayer::createTextInput @ 0x63ce78", "SetupCameraRotatePopup::init @ 0x65a984", "SetupCameraRotatePopup::init @ 0x65afb4", "SetupRandAdvTriggerPopup::init @ 0x65c576", "CreateParticlePopup::createParticleSlider @ 0x666f18", "SetupTriggerPopup::createValueControlAdvanced @ 0x67a788", "SetupTriggerPopup::createValueControlAdvanced @ 0x67a79c", "SetupTriggerPopup::createValueControlAdvanced @ 0x67a7b0", "SetupTriggerPopup::createValueControlAdvanced @ 0x67a7f2", "SetupMGTrigger::init @ 0x69af00", "SetupMGTrigger::init @ 0x69b53c", "LevelSettingsLayer::init @ 0x6ac61e", "LevelSettingsLayer::init @ 0x6ac846", "SecretLayer5::init @ 0x6e5ee2", "GJScaleControl::createScaleInput @ 0x6ee7f8", "GJRotationControl::init @ 0x6ef2e6", "SFXFolderPickerPopup::init @ 0x730722", "AdminActionConfirmPopup::init @ 0x731762", "ReviewChoiceSheet::init @ 0x7335b8", "RenameThreadPopup::init @ 0x74de4c", "ThreadSearchPopup::init @ 0x74e6a2", "NewThreadPopup::init @ 0x756a6e", "DeathStatsPopup::init @ 0x76f528", "DeathStatsPopup::init @ 0x76f76c", "EditorSoundBrowserLayer::onSelectMode @ 0x783508", "EditorSoundConfigInfoLayer::init @ 0x7874a2", "EditorSoundsLayer::init @ 0x78ae4a", "IDNameBrowserPopup::init @ 0x792818", "IDNameBrowserPopup::init @ 0x792c4e", "IDNameBrowserPopup::init @ 0x792f7e", "IDNameInput::initCore @ 0x79413e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}