{"type": "func", "start": 4297999420, "end": 4297999668, "name": "LevelListLayer::textInputClosed", "pseudocode": "// \n// LevelListLayer::textInputClosed from 0x1002e443c to 0x1002e4534 (248 bytes)\n// \n// 2 xrefs:\n// > sub_1002E4598 @ 0x1002e459c\n// > <???> @ 0x100923a58\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::textInputClosed(__int64 a1, __int64 a2)\n{\n  std::string *v4; // x20\n  char *v5; // x1\n  void *v6[2]; // [xsp+0h] [xbp-70h] BYREF\n  char v7; // [xsp+17h] [xbp-59h]\n  std::string __p; // [xsp+18h] [xbp-58h] BYREF\n  std::string __str; // [xsp+30h] [xbp-40h] BYREF\n  std::string v10; // [xsp+48h] [xbp-28h] BYREF\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1002 )\n  {\n    CCTextInputNode::getString(a2, &v10);\n    v4 = *(std::string **)(a1 + 912);\n    if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )\n      sub_1000097D0(&__str, v10.__r_.__value_.__l.__data_, v10.__r_.__value_.__l.__size_);\n    else\n      __str = v10;\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    CCTextInputNode::getString(a2, v6);\n    if ( v7 >= 0 )\n      v5 = (char *)v6;\n    else\n      v5 = (char *)v6[0];\n    sub_100009900(&__p, v5);\n    CCTextInputNode::updateLabel(a2, &__p);\n    if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__p.__r_.__value_.__l.__data_);\n    if ( v7 < 0 )\n      operator delete(v6[0]);\n    if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(v10.__r_.__value_.__l.__data_);\n  }\n}", "assembly": "; \n; LevelListLayer::textInputClosed from 0x1002e443c to 0x1002e4534 (248 bytes)\n; \n; 2 xrefs:\n; > sub_1002E4598 @ 0x1002e459c\n; > <???> @ 0x100923a58\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, #0x80                                          ; +0x0, 0x1002e443c\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x4, 0x1002e4440\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x8, 0x1002e4444\nADD             X29, SP, #0x70                                         ; +0xc, 0x1002e4448\nMOV             X19, X1                                                ; +0x10, 0x1002e444c\nMOV             X20, X0                                                ; +0x14, 0x1002e4450\nLDR             X8, [X1]                                               ; +0x18, 0x1002e4454\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1002e4458\nMOV             X0, X1                                                 ; +0x20, 0x1002e445c\nBLR             X8                                                     ; +0x24, 0x1002e4460\nCMP             W0, #0x3EA                                             ; +0x28, 0x1002e4464\nB.NE            loc_1002E4524                                          ; +0x2c, 0x1002e4468\nSUB             X8, X29, #-var_28                                      ; +0x30, 0x1002e446c\nMOV             X0, X19                                                ; +0x34, 0x1002e4470\nBL              CCTextInputNode__getString                             ; +0x38, 0x1002e4474\nLDR             X20, [X20,#0x390]                                      ; +0x3c, 0x1002e4478\nLDURSB          W8, [X29,#var_11]                                      ; +0x40, 0x1002e447c\nTBNZ            W8, #0x1F, loc_1002E4498                               ; +0x44, 0x1002e4480\nLDUR            Q0, [X29,#var_28]                                      ; +0x48, 0x1002e4484\nSTR             Q0, [SP,#0x70+__str]                                   ; +0x4c, 0x1002e4488\nLDUR            X8, [X29,#-0x18]                                       ; +0x50, 0x1002e448c\nSTR             X8, [SP,#0x70+__str.__r_.__value_+0x10]                ; +0x54, 0x1002e4490\nB               loc_1002E44A4                                          ; +0x58, 0x1002e4494\nLDP             X1, X2, [X29,#var_28]; __src                           ; +0x5c, 0x1002e4498\nADD             X0, SP, #0x70+__str; __dst                             ; +0x60, 0x1002e449c\nBL              sub_1000097D0                                          ; +0x64, 0x1002e44a0\nADD             X0, X20, #0x1B0; this                                  ; +0x68, 0x1002e44a4\nADD             X1, SP, #0x70+__str; __str                             ; +0x6c, 0x1002e44a8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x70, 0x1002e44ac\nLDRSB           W8, [SP,#0x70+__str.__r_.__value_+0x17]                ; +0x74, 0x1002e44b0\nTBZ             W8, #0x1F, loc_1002E44C0                               ; +0x78, 0x1002e44b4\nLDR             X0, [SP,#0x70+__str]; __p                              ; +0x7c, 0x1002e44b8\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x1002e44bc\nMOV             X20, SP                                                ; +0x84, 0x1002e44c0\nMOV             X8, SP                                                 ; +0x88, 0x1002e44c4\nMOV             X0, X19                                                ; +0x8c, 0x1002e44c8\nBL              CCTextInputNode__getString                             ; +0x90, 0x1002e44cc\nLDRSB           W8, [SP,#0x70+var_59]                                  ; +0x94, 0x1002e44d0\nLDR             X9, [SP,#0x70+var_70]                                  ; +0x98, 0x1002e44d4\nCMP             W8, #0                                                 ; +0x9c, 0x1002e44d8\nCSEL            X1, X9, X20, LT; __s                                   ; +0xa0, 0x1002e44dc\nADD             X0, SP, #0x70+__p; int                                 ; +0xa4, 0x1002e44e0\nBL              sub_100009900                                          ; +0xa8, 0x1002e44e4\nADD             X1, SP, #0x70+__p                                      ; +0xac, 0x1002e44e8\nMOV             X0, X19                                                ; +0xb0, 0x1002e44ec\nBL              CCTextInputNode__updateLabel                           ; +0xb4, 0x1002e44f0\nLDRSB           W8, [SP,#0x70+var_41]                                  ; +0xb8, 0x1002e44f4\nTBZ             W8, #0x1F, loc_1002E4504                               ; +0xbc, 0x1002e44f8\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0xc0, 0x1002e44fc\nBL              __ZdlPv; operator delete(void *)                       ; +0xc4, 0x1002e4500\nLDRSB           W8, [SP,#0x70+var_59]                                  ; +0xc8, 0x1002e4504\nTBZ             W8, #0x1F, loc_1002E4514                               ; +0xcc, 0x1002e4508\nLDR             X0, [SP,#0x70+var_70]; __p                             ; +0xd0, 0x1002e450c\nBL              __ZdlPv; operator delete(void *)                       ; +0xd4, 0x1002e4510\nLDURSB          W8, [X29,#var_11]                                      ; +0xd8, 0x1002e4514\nTBZ             W8, #0x1F, loc_1002E4524                               ; +0xdc, 0x1002e4518\nLDUR            X0, [X29,#var_28]; __p                                 ; +0xe0, 0x1002e451c\nBL              __ZdlPv; operator delete(void *)                       ; +0xe4, 0x1002e4520\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0xe8, 0x1002e4524\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0xec, 0x1002e4528\nADD             SP, SP, #0x80                                          ; +0xf0, 0x1002e452c\nRET                                                                    ; +0xf4, 0x1002e4530", "xrefs": ["sub_1002E4598 @ 0x1002e459c", "<???> @ 0x100923a58"], "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"}