{"type": "func", "start": 4296088368, "end": 4296088664, "name": "EditLevelLayer::textChanged", "pseudocode": "// \n// EditLevelLayer::textChanged from 0x100111b30 to 0x100111c58 (296 bytes)\n// \n// 2 xrefs:\n// > sub_100111CA4 @ 0x100111ca8\n// > <???> @ 0x1008d0158\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 10:59:08 +0000\n// \n\nvoid __fastcall EditLevelLayer::textChanged(__int64 a1, __int64 a2)\n{\n  int v4; // w0\n  _QWORD *String; // x0\n  __int64 v6; // x0\n  int v7; // w8\n  std::string *v8; // x0\n  __int64 v9; // x20\n  std::string *v10; // x1\n  void *v11; // x0\n  std::string __str; // [xsp+8h] [xbp-68h] BYREF\n  void *__p[2]; // [xsp+20h] [xbp-50h] BYREF\n  __int64 v14; // [xsp+30h] [xbp-40h]\n  std::string v15; // [xsp+38h] [xbp-38h] BYREF\n\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( v4 == 1 )\n  {\n    v9 = *(_QWORD *)(a1 + 472);\n    CCTextInputNode::getString(&v15);\n    if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n      v10 = &v15;\n    else\n      v10 = (std::string *)v15.__r_.__value_.__r.__words[0];\n    sub_100009900(&__str, (char *)v10);\n    std::string::operator=((std::string *)(v9 + 344), &__str);\n    if ( (SHIBYTE(__str.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )\n      goto LABEL_16;\n    v11 = (void *)__str.__r_.__value_.__r.__words[0];\n  }\n  else\n  {\n    if ( v4 != 2 )\n      return;\n    String = CCTextInputNode::getString(&v15);\n    v6 = EmoteSprite::maxEmotesComment(String);\n    v7 = EmoteSprite::effectiveLength(&v15, v6);\n    v8 = (std::string *)(a1 + 560);\n    if ( v7 < 181 )\n    {\n      std::string::operator=(v8, &v15);\n      goto LABEL_16;\n    }\n    if ( *(char *)(a1 + 583) < 0 )\n    {\n      sub_1000097D0(__p, *(void **)(a1 + 560), *(_QWORD *)(a1 + 568));\n    }\n    else\n    {\n      *(_OWORD *)__p = *(_OWORD *)&v8->__r_.__value_.__l.__data_;\n      v14 = *(_QWORD *)(a1 + 576);\n    }\n    CCTextInputNode::setString(a2, __p);\n    if ( (SHIBYTE(v14) & 0x80000000) == 0 )\n      goto LABEL_16;\n    v11 = __p[0];\n  }\n  operator delete(v11);\nLABEL_16:\n  if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v15.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; EditLevelLayer::textChanged from 0x100111b30 to 0x100111c58 (296 bytes)\n; \n; 2 xrefs:\n; > sub_100111CA4 @ 0x100111ca8\n; > <???> @ 0x1008d0158\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 10:59:08 +0000\n; \nSUB             SP, SP, #0x80                                          ; +0x0, 0x100111b30\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x4, 0x100111b34\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x8, 0x100111b38\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0xc, 0x100111b3c\nADD             X29, SP, #0x70                                         ; +0x10, 0x100111b40\nMOV             X19, X1                                                ; +0x14, 0x100111b44\nMOV             X20, X0                                                ; +0x18, 0x100111b48\nLDR             X8, [X1]                                               ; +0x1c, 0x100111b4c\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x100111b50\nMOV             X0, X1                                                 ; +0x24, 0x100111b54\nBLR             X8                                                     ; +0x28, 0x100111b58\nCMP             W0, #1                                                 ; +0x2c, 0x100111b5c\nB.EQ            loc_100111BB4                                          ; +0x30, 0x100111b60\nCMP             W0, #2                                                 ; +0x34, 0x100111b64\nB.NE            loc_100111C44                                          ; +0x38, 0x100111b68\nADD             X8, SP, #0x70+var_38                                   ; +0x3c, 0x100111b6c\nMOV             X0, X19                                                ; +0x40, 0x100111b70\nBL              CCTextInputNode__getString                             ; +0x44, 0x100111b74\nBL              EmoteSprite__maxEmotesComment                          ; +0x48, 0x100111b78\nMOV             X1, X0                                                 ; +0x4c, 0x100111b7c\nADD             X0, SP, #0x70+var_38                                   ; +0x50, 0x100111b80\nBL              EmoteSprite__effectiveLength                           ; +0x54, 0x100111b84\nMOV             X8, X0                                                 ; +0x58, 0x100111b88\nADD             X0, X20, #0x230; this                                  ; +0x5c, 0x100111b8c\nCMP             W8, #0xB5                                              ; +0x60, 0x100111b90\nB.LT            loc_100111BFC                                          ; +0x64, 0x100111b94\nLDRSB           W8, [X20,#0x247]                                       ; +0x68, 0x100111b98\nTBNZ            W8, #0x1F, loc_100111C08                               ; +0x6c, 0x100111b9c\nLDR             Q0, [X0]                                               ; +0x70, 0x100111ba0\nSTR             Q0, [SP,#0x70+__p]                                     ; +0x74, 0x100111ba4\nLDR             X8, [X0,#0x10]                                         ; +0x78, 0x100111ba8\nSTR             X8, [SP,#0x70+var_40]                                  ; +0x7c, 0x100111bac\nB               loc_100111C18                                          ; +0x80, 0x100111bb0\nLDR             X20, [X20,#0x1D8]                                      ; +0x84, 0x100111bb4\nADD             X21, SP, #0x70+var_38                                  ; +0x88, 0x100111bb8\nADD             X8, SP, #0x70+var_38                                   ; +0x8c, 0x100111bbc\nMOV             X0, X19                                                ; +0x90, 0x100111bc0\nBL              CCTextInputNode__getString                             ; +0x94, 0x100111bc4\nLDRSB           W8, [SP,#0x70+var_38.__r_.__value_+0x17]               ; +0x98, 0x100111bc8\nLDR             X9, [SP,#0x70+var_38]                                  ; +0x9c, 0x100111bcc\nCMP             W8, #0                                                 ; +0xa0, 0x100111bd0\nCSEL            X1, X9, X21, LT; __s                                   ; +0xa4, 0x100111bd4\nADD             X0, SP, #0x70+__str; int                               ; +0xa8, 0x100111bd8\nBL              sub_100009900                                          ; +0xac, 0x100111bdc\nADD             X0, X20, #0x158; this                                  ; +0xb0, 0x100111be0\nADD             X1, SP, #0x70+__str; __str                             ; +0xb4, 0x100111be4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xb8, 0x100111be8\nLDRSB           W8, [SP,#0x70+__str.__r_.__value_+0x17]                ; +0xbc, 0x100111bec\nTBZ             W8, #0x1F, loc_100111C34                               ; +0xc0, 0x100111bf0\nLDR             X0, [SP,#0x70+__str]                                   ; +0xc4, 0x100111bf4\nB               loc_100111C30                                          ; +0xc8, 0x100111bf8\nADD             X1, SP, #0x70+var_38; __str                            ; +0xcc, 0x100111bfc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xd0, 0x100111c00\nB               loc_100111C34                                          ; +0xd4, 0x100111c04\nLDR             X1, [X20,#0x230]; __src                                ; +0xd8, 0x100111c08\nLDR             X2, [X20,#0x238]                                       ; +0xdc, 0x100111c0c\nADD             X0, SP, #0x70+__p; __dst                               ; +0xe0, 0x100111c10\nBL              sub_1000097D0                                          ; +0xe4, 0x100111c14\nADD             X1, SP, #0x70+__p                                      ; +0xe8, 0x100111c18\nMOV             X0, X19                                                ; +0xec, 0x100111c1c\nBL              CCTextInputNode__setString                             ; +0xf0, 0x100111c20\nLDRSB           W8, [SP,#0x70+var_40+7]                                ; +0xf4, 0x100111c24\nTBZ             W8, #0x1F, loc_100111C34                               ; +0xf8, 0x100111c28\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0xfc, 0x100111c2c\nBL              __ZdlPv; operator delete(void *)                       ; +0x100, 0x100111c30\nLDRSB           W8, [SP,#0x70+var_38.__r_.__value_+0x17]               ; +0x104, 0x100111c34\nTBZ             W8, #0x1F, loc_100111C44                               ; +0x108, 0x100111c38\nLDR             X0, [SP,#0x70+var_38]; __p                             ; +0x10c, 0x100111c3c\nBL              __ZdlPv; operator delete(void *)                       ; +0x110, 0x100111c40\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x114, 0x100111c44\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x118, 0x100111c48\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x11c, 0x100111c4c\nADD             SP, SP, #0x80                                          ; +0x120, 0x100111c50\nRET                                                                    ; +0x124, 0x100111c54", "xrefs": ["sub_100111CA4 @ 0x100111ca8", "<???> @ 0x1008d0158"], "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"}