{"type": "func", "start": 4295932832, "end": 4295933016, "name": "EditLevelLayer::textChanged", "pseudocode": "// \n// EditLevelLayer::textChanged from 0x1000ebba0 to 0x1000ebc58 (184 bytes)\n// \n// 2 xrefs:\n// > sub_1000EBC8C @ 0x1000ebc90\n// > <???> @ 0x1007824a8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall EditLevelLayer::textChanged(EditLevelLayer *a1, CCTextInputNode *a2)\n{\n  int v4; // w0\n  GJGameLevel *m_level; // x20\n  char *v6; // x1\n  std::string __p; // [xsp+0h] [xbp-50h] BYREF\n  void *v8[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v9; // [xsp+2Fh] [xbp-21h]\n\n  v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);\n  if ( v4 == 1 )\n  {\n    m_level = a1->m_level;\n    CCTextInputNode::getString(v8, a2);\n    if ( v9 >= 0 )\n      v6 = (char *)v8;\n    else\n      v6 = (char *)v8[0];\n    sub_100009900(&__p, v6);\n    std::string::operator=((std::string *)&m_level->m_levelName, &__p);\n    if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__p.__r_.__value_.__l.__data_);\n  }\n  else\n  {\n    if ( v4 != 2 )\n      return;\n    CCTextInputNode::getString(v8, a2);\n  }\n  if ( v9 < 0 )\n    operator delete(v8[0]);\n}", "assembly": "; \n; EditLevelLayer::textChanged from 0x1000ebba0 to 0x1000ebc58 (184 bytes)\n; \n; 2 xrefs:\n; > sub_1000EBC8C @ 0x1000ebc90\n; > <???> @ 0x1007824a8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x60                                          ; +0x0, 0x1000ebba0\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x1000ebba4\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x1000ebba8\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x1000ebbac\nADD             X29, SP, #0x50                                         ; +0x10, 0x1000ebbb0\nMOV             X19, X1                                                ; +0x14, 0x1000ebbb4\nMOV             X20, X0                                                ; +0x18, 0x1000ebbb8\nLDR             X8, [X1]                                               ; +0x1c, 0x1000ebbbc\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x1000ebbc0\nMOV             X0, X1                                                 ; +0x24, 0x1000ebbc4\nBLR             X8                                                     ; +0x28, 0x1000ebbc8\nCMP             W0, #1                                                 ; +0x2c, 0x1000ebbcc\nB.EQ            loc_1000EBBEC                                          ; +0x30, 0x1000ebbd0\nCMP             W0, #2                                                 ; +0x34, 0x1000ebbd4\nB.NE            loc_1000EBC44                                          ; +0x38, 0x1000ebbd8\nADD             X8, SP, #0x50+var_38                                   ; +0x3c, 0x1000ebbdc\nMOV             X0, X19                                                ; +0x40, 0x1000ebbe0\nBL              CCTextInputNode__getString                             ; +0x44, 0x1000ebbe4\nB               loc_1000EBC34                                          ; +0x48, 0x1000ebbe8\nLDR             X20, [X20,#0x1C8]                                      ; +0x4c, 0x1000ebbec\nADD             X21, SP, #0x50+var_38                                  ; +0x50, 0x1000ebbf0\nADD             X8, SP, #0x50+var_38                                   ; +0x54, 0x1000ebbf4\nMOV             X0, X19                                                ; +0x58, 0x1000ebbf8\nBL              CCTextInputNode__getString                             ; +0x5c, 0x1000ebbfc\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x60, 0x1000ebc00\nLDR             X9, [SP,#0x50+var_38]                                  ; +0x64, 0x1000ebc04\nCMP             W8, #0                                                 ; +0x68, 0x1000ebc08\nCSEL            X1, X9, X21, LT; __s                                   ; +0x6c, 0x1000ebc0c\nMOV             X0, SP; int                                            ; +0x70, 0x1000ebc10\nBL              sub_100009900                                          ; +0x74, 0x1000ebc14\nADD             X0, X20, #0x158; this                                  ; +0x78, 0x1000ebc18\nMOV             X1, SP; __str                                          ; +0x7c, 0x1000ebc1c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x80, 0x1000ebc20\nLDRSB           W8, [SP,#0x50+var_39]                                  ; +0x84, 0x1000ebc24\nTBZ             W8, #0x1F, loc_1000EBC34                               ; +0x88, 0x1000ebc28\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x8c, 0x1000ebc2c\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x1000ebc30\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x94, 0x1000ebc34\nTBZ             W8, #0x1F, loc_1000EBC44                               ; +0x98, 0x1000ebc38\nLDR             X0, [SP,#0x50+var_38]; __p                             ; +0x9c, 0x1000ebc3c\nBL              __ZdlPv; operator delete(void *)                       ; +0xa0, 0x1000ebc40\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xa4, 0x1000ebc44\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xa8, 0x1000ebc48\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xac, 0x1000ebc4c\nADD             SP, SP, #0x60 ; '`'                                    ; +0xb0, 0x1000ebc50\nRET                                                                    ; +0xb4, 0x1000ebc54", "xrefs": ["sub_1000EBC8C @ 0x1000ebc90", "<???> @ 0x1007824a8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}