{"type": "func", "start": 4298000028, "end": 4298000188, "name": "LevelListLayer::textChanged", "pseudocode": "// \n// LevelListLayer::textChanged from 0x1002e469c to 0x1002e473c (160 bytes)\n// \n// 2 xrefs:\n// > sub_1002E4770 @ 0x1002e4774\n// > <???> @ 0x100923a60\n// \n// This function is hookable on this platform (idp: arm, 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:02:49 +0000\n// \n\nvoid __fastcall LevelListLayer::textChanged(__int64 a1, __int64 a2)\n{\n  std::string *v4; // x20\n  char *v5; // x1\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  char v7; // [xsp+17h] [xbp-39h]\n  std::string __str; // [xsp+18h] [xbp-38h] BYREF\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1002 )\n  {\n    v4 = *(std::string **)(a1 + 912);\n    CCTextInputNode::getString(a2, __p);\n    if ( v7 >= 0 )\n      v5 = (char *)__p;\n    else\n      v5 = (char *)__p[0];\n    sub_100009900(&__str, v5);\n    std::string::operator=(v4 + 18, &__str);\n    if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    if ( v7 < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; LevelListLayer::textChanged from 0x1002e469c to 0x1002e473c (160 bytes)\n; \n; 2 xrefs:\n; > sub_1002E4770 @ 0x1002e4774\n; > <???> @ 0x100923a60\n; \n; This function is hookable on this platform (idp: arm, 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:02:49 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x1002e469c\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x1002e46a0\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x1002e46a4\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x1002e46a8\nADD             X29, SP, #0x50                                         ; +0x10, 0x1002e46ac\nMOV             X19, X1                                                ; +0x14, 0x1002e46b0\nMOV             X20, X0                                                ; +0x18, 0x1002e46b4\nLDR             X8, [X1]                                               ; +0x1c, 0x1002e46b8\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x1002e46bc\nMOV             X0, X1                                                 ; +0x24, 0x1002e46c0\nBLR             X8                                                     ; +0x28, 0x1002e46c4\nCMP             W0, #0x3EA                                             ; +0x2c, 0x1002e46c8\nB.NE            loc_1002E4728                                          ; +0x30, 0x1002e46cc\nLDR             X20, [X20,#0x390]                                      ; +0x34, 0x1002e46d0\nMOV             X21, SP                                                ; +0x38, 0x1002e46d4\nMOV             X8, SP                                                 ; +0x3c, 0x1002e46d8\nMOV             X0, X19                                                ; +0x40, 0x1002e46dc\nBL              CCTextInputNode__getString                             ; +0x44, 0x1002e46e0\nLDRSB           W8, [SP,#0x50+var_39]                                  ; +0x48, 0x1002e46e4\nLDR             X9, [SP,#0x50+__p]                                     ; +0x4c, 0x1002e46e8\nCMP             W8, #0                                                 ; +0x50, 0x1002e46ec\nCSEL            X1, X9, X21, LT; __s                                   ; +0x54, 0x1002e46f0\nADD             X0, SP, #0x50+__str; int                               ; +0x58, 0x1002e46f4\nBL              sub_100009900                                          ; +0x5c, 0x1002e46f8\nADD             X0, X20, #0x1B0; this                                  ; +0x60, 0x1002e46fc\nADD             X1, SP, #0x50+__str; __str                             ; +0x64, 0x1002e4700\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x68, 0x1002e4704\nLDRSB           W8, [SP,#0x50+__str.__r_.__value_+0x17]                ; +0x6c, 0x1002e4708\nTBZ             W8, #0x1F, loc_1002E4718                               ; +0x70, 0x1002e470c\nLDR             X0, [SP,#0x50+__str]; __p                              ; +0x74, 0x1002e4710\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x1002e4714\nLDRSB           W8, [SP,#0x50+var_39]                                  ; +0x7c, 0x1002e4718\nTBZ             W8, #0x1F, loc_1002E4728                               ; +0x80, 0x1002e471c\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x84, 0x1002e4720\nBL              __ZdlPv; operator delete(void *)                       ; +0x88, 0x1002e4724\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8c, 0x1002e4728\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x90, 0x1002e472c\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x94, 0x1002e4730\nADD             SP, SP, #0x60 ; '`'                                    ; +0x98, 0x1002e4734\nRET                                                                    ; +0x9c, 0x1002e4738", "xrefs": ["sub_1002E4770 @ 0x1002e4774", "<???> @ 0x100923a60"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}