{"type": "func", "start": 8320672, "end": 8321200, "name": "EditLevelLayer::textChanged", "pseudocode": "// \n// EditLevelLayer::textChanged from 0x7ef6a0 to 0x7ef8b0 (528 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'EditLevelLayer::textChanged @ 0x7ef8b4\n// > <???> @ 0xec9f8\n// > <???> @ 0x143c960\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 12:54:34 +0000\n// \n\n__int64 __fastcall EditLevelLayer::textChanged(EditLevelLayer *this, CCTextInputNode *a2)\n{\n  int v4; // w0\n  __int64 *String; // x0\n  int v6; // w0\n  char v7; // w0\n  char *v8; // x21\n  __int64 v9; // x0\n  size_t v10; // x1\n  CCTextInputNode *v12; // x0\n  __int64 v13; // x20\n  char *v14; // x21\n  size_t v15; // x0\n  __int64 *v16; // x0\n  char *v17; // x1\n  size_t v18; // x2\n  char *v19; // x1\n  __int64 v20[2]; // [xsp+38h] [xbp+38h] BYREF\n  char *v21; // [xsp+48h] [xbp+48h]\n  __int64 v22; // [xsp+50h] [xbp+50h] BYREF\n  size_t v23; // [xsp+58h] [xbp+58h]\n  void *v24; // [xsp+60h] [xbp+60h]\n\n  v4 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( v4 != 1 )\n  {\n    if ( v4 != 2 )\n      return _stack_chk_guard;\n    String = CCTextInputNode::getString(a2, v20);\n    v6 = EmoteSprite::maxEmotesComment((EmoteSprite *)String);\n    if ( (int)EmoteSprite::effectiveLength((char *)v20, v6) <= 180 )\n    {\n      if ( (__int64 *)((char *)this + 560) != v20 )\n      {\n        if ( (v20[0] & 1) != 0 )\n        {\n          v17 = v21;\n          v18 = v20[1];\n        }\n        else\n        {\n          v18 = LOBYTE(v20[0]) >> 1;\n          v17 = (char *)v20 + 1;\n        }\n        std::string::assign((__int64 *)this + 70, v17, v18);\n      }\n      v19 = (char *)v20 + 1;\n      if ( (v20[0] & 1) != 0 )\n        v19 = v21;\n      EditLevelLayer::updateDescText(this, v19);\n      goto LABEL_8;\n    }\n    v7 = *((_BYTE *)this + 560);\n    v22 = 0;\n    v8 = (char *)this + 560;\n    v23 = 0;\n    v24 = nullptr;\n    if ( (v7 & 1) != 0 )\n    {\n      std::string::__init(&v22, *((void **)v8 + 2), *((_QWORD *)v8 + 1));\n    }\n    else\n    {\n      v9 = *(_QWORD *)v8;\n      v10 = *((_QWORD *)v8 + 1);\n      v24 = *((void **)v8 + 2);\n      v22 = v9;\n      v23 = v10;\n    }\n    CCTextInputNode::setString(a2, (char *)&v22);\nLABEL_7:\n    if ( (v22 & 1) == 0 )\n      goto LABEL_8;\n    goto LABEL_17;\n  }\n  v12 = a2;\n  v13 = *((_QWORD *)this + 59);\n  v14 = (char *)v20 + 1;\n  CCTextInputNode::getString(v12, v20);\n  if ( (v20[0] & 1) != 0 )\n    v14 = v21;\n  v22 = 0;\n  v23 = 0;\n  v24 = nullptr;\n  v15 = strlen(v14);\n  std::string::__init(&v22, v14, v15);\n  v16 = (__int64 *)(v13 + 344);\n  if ( (__int64 *)(v13 + 344) == &v22 )\n    goto LABEL_7;\n  if ( (v22 & 1) != 0 )\n    std::string::assign(v16, v24, v23);\n  else\n    std::string::assign(v16, (char *)&v22 + 1, (unsigned __int8)v22 >> 1);\n  if ( (v22 & 1) == 0 )\n    goto LABEL_8;\nLABEL_17:\n  operator delete(v24);\nLABEL_8:\n  if ( (v20[0] & 1) != 0 )\n    operator delete(v21);\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditLevelLayer::textChanged from 0x7ef6a0 to 0x7ef8b0 (528 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'EditLevelLayer::textChanged @ 0x7ef8b4\n; > <???> @ 0xec9f8\n; > <???> @ 0x143c960\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 12:54:34 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x7ef6a0\nMOV             X29, SP                                                ; +0x4, 0x7ef6a4\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x7ef6a8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7ef6ac\nMOV             X20, X1                                                ; +0x10, 0x7ef6b0\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0x7ef6b4\nMOV             X21, X0                                                ; +0x18, 0x7ef6b8\nMOV             X0, X1                                                 ; +0x1c, 0x7ef6bc\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7ef6c0\nLDR             X1, [X1]                                               ; +0x24, 0x7ef6c4\nLDR             X2, [X2]                                               ; +0x28, 0x7ef6c8\nLDR             X1, [X1,#0x40]                                         ; +0x2c, 0x7ef6cc\nSTR             X2, [X29,#0x70+var_8]                                  ; +0x30, 0x7ef6d0\nBLR             X1                                                     ; +0x34, 0x7ef6d4\nCMP             W0, #1                                                 ; +0x38, 0x7ef6d8\nB.EQ            loc_7EF784                                             ; +0x3c, 0x7ef6dc\nCMP             W0, #2                                                 ; +0x40, 0x7ef6e0\nB.NE            loc_7EF760                                             ; +0x44, 0x7ef6e4\nADD             X22, X29, #0x70+var_38                                 ; +0x48, 0x7ef6e8\nMOV             X0, X20; this                                          ; +0x4c, 0x7ef6ec\nMOV             X8, X22                                                ; +0x50, 0x7ef6f0\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x54, 0x7ef6f4\nBL              _ZN11EmoteSprite16maxEmotesCommentEv; EmoteSprite::maxEmotesComment(void) ; +0x58, 0x7ef6f8\nMOV             W1, W0                                                 ; +0x5c, 0x7ef6fc\nMOV             X0, X22                                                ; +0x60, 0x7ef700\nBL              _ZN11EmoteSprite15effectiveLengthERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; EmoteSprite::effectiveLength(std::string const&,int) ; +0x64, 0x7ef704\nCMP             W0, #0xB4                                              ; +0x68, 0x7ef708\nB.LE            loc_7EF804                                             ; +0x6c, 0x7ef70c\nLDRB            W0, [X21,#0x230]                                       ; +0x70, 0x7ef710\nADD             X22, X29, #0x70+var_20                                 ; +0x74, 0x7ef714\nSTR             XZR, [X29,#0x70+var_20]                                ; +0x78, 0x7ef718\nADD             X21, X21, #0x230                                       ; +0x7c, 0x7ef71c\nSTR             XZR, [X29,#0x70+var_18]                                ; +0x80, 0x7ef720\nSTR             XZR, [X29,#0x70+var_10]                                ; +0x84, 0x7ef724\nTBNZ            W0, #0, loc_7EF85C                                     ; +0x88, 0x7ef728\nLDP             X0, X1, [X21]                                          ; +0x8c, 0x7ef72c\nLDR             X2, [X21,#0x10]                                        ; +0x90, 0x7ef730\nSTR             X2, [X29,#0x70+var_10]                                 ; +0x94, 0x7ef734\nSTP             X0, X1, [X29,#0x70+var_20]                             ; +0x98, 0x7ef738\nMOV             X0, X20                                                ; +0x9c, 0x7ef73c\nMOV             X1, X22                                                ; +0xa0, 0x7ef740\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0xa4, 0x7ef744\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0xa8, 0x7ef748\nTBNZ            W0, #0, loc_7EF7F0                                     ; +0xac, 0x7ef74c\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0xb0, 0x7ef750\nTBZ             W0, #0, loc_7EF760                                     ; +0xb4, 0x7ef754\nLDR             X0, [X29,#0x70+var_28]; void *                         ; +0xb8, 0x7ef758\nBL              _ZdlPv; operator delete(void *)                        ; +0xbc, 0x7ef75c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc0, 0x7ef760\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xc4, 0x7ef764\nLDR             X0, [X19]                                              ; +0xc8, 0x7ef768\nCMP             X1, X0                                                 ; +0xcc, 0x7ef76c\nB.NE            loc_7EF870                                             ; +0xd0, 0x7ef770\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xd4, 0x7ef774\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xd8, 0x7ef778\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xdc, 0x7ef77c\nRET                                                                    ; +0xe0, 0x7ef780\nMOV             X0, X20; this                                          ; +0xe4, 0x7ef784\nADD             X8, X29, #0x70+var_38                                  ; +0xe8, 0x7ef788\nLDR             X20, [X21,#0x1D8]                                      ; +0xec, 0x7ef78c\nADD             X21, X8, #1                                            ; +0xf0, 0x7ef790\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0xf4, 0x7ef794\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0xf8, 0x7ef798\nTBNZ            W0, #0, loc_7EF7FC                                     ; +0xfc, 0x7ef79c\nMOV             X0, X21; char *                                        ; +0x100, 0x7ef7a0\nADD             X22, X29, #0x70+var_20                                 ; +0x104, 0x7ef7a4\nSTR             XZR, [X29,#0x70+var_20]                                ; +0x108, 0x7ef7a8\nSTR             XZR, [X29,#0x70+var_18]                                ; +0x10c, 0x7ef7ac\nSTR             XZR, [X29,#0x70+var_10]                                ; +0x110, 0x7ef7b0\nBL              .strlen                                                ; +0x114, 0x7ef7b4\nMOV             X1, X21                                                ; +0x118, 0x7ef7b8\nMOV             X2, X0                                                 ; +0x11c, 0x7ef7bc\nMOV             X0, X22                                                ; +0x120, 0x7ef7c0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x124, 0x7ef7c4\nADD             X0, X20, #0x158; int                                   ; +0x128, 0x7ef7c8\nCMP             X0, X22                                                ; +0x12c, 0x7ef7cc\nB.EQ            loc_7EF748                                             ; +0x130, 0x7ef7d0\nLDRB            W2, [X29,#0x70+var_20]                                 ; +0x134, 0x7ef7d4\nTBZ             W2, #0, loc_7EF840                                     ; +0x138, 0x7ef7d8\nLDR             X1, [X22,#0x10]; int                                   ; +0x13c, 0x7ef7dc\nLDR             X2, [X22,#8]; size_t                                   ; +0x140, 0x7ef7e0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x144, 0x7ef7e4\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0x148, 0x7ef7e8\nTBZ             W0, #0, loc_7EF750                                     ; +0x14c, 0x7ef7ec\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x150, 0x7ef7f0\nBL              _ZdlPv; operator delete(void *)                        ; +0x154, 0x7ef7f4\nB               loc_7EF750                                             ; +0x158, 0x7ef7f8\nLDR             X21, [X29,#0x70+var_28]                                ; +0x15c, 0x7ef7fc\nB               loc_7EF7A0                                             ; +0x160, 0x7ef800\nADD             X0, X21, #0x230; int                                   ; +0x164, 0x7ef804\nCMP             X0, X22                                                ; +0x168, 0x7ef808\nB.EQ            loc_7EF824                                             ; +0x16c, 0x7ef80c\nLDRB            W2, [X29,#0x70+var_38]                                 ; +0x170, 0x7ef810\nTBZ             W2, #0, loc_7EF850                                     ; +0x174, 0x7ef814\nLDR             X1, [X22,#0x10]; int                                   ; +0x178, 0x7ef818\nLDR             X2, [X22,#8]; size_t                                   ; +0x17c, 0x7ef81c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x180, 0x7ef820\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0x184, 0x7ef824\nADD             X1, X22, #1                                            ; +0x188, 0x7ef828\nTBZ             W0, #0, loc_7EF834                                     ; +0x18c, 0x7ef82c\nLDR             X1, [X29,#0x70+var_28]; char *                         ; +0x190, 0x7ef830\nMOV             X0, X21; this                                          ; +0x194, 0x7ef834\nBL              _ZN14EditLevelLayer14updateDescTextEPKc; EditLevelLayer::updateDescText(char const*) ; +0x198, 0x7ef838\nB               loc_7EF750                                             ; +0x19c, 0x7ef83c\nUBFX            X2, X2, #1, #7; size_t                                 ; +0x1a0, 0x7ef840\nADD             X1, X22, #1; int                                       ; +0x1a4, 0x7ef844\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x1a8, 0x7ef848\nB               loc_7EF7E8                                             ; +0x1ac, 0x7ef84c\nUBFX            X2, X2, #1, #7                                         ; +0x1b0, 0x7ef850\nADD             X1, X22, #1                                            ; +0x1b4, 0x7ef854\nB               loc_7EF820                                             ; +0x1b8, 0x7ef858\nLDR             X1, [X21,#0x10]                                        ; +0x1bc, 0x7ef85c\nMOV             X0, X22                                                ; +0x1c0, 0x7ef860\nLDR             X2, [X21,#8]                                           ; +0x1c4, 0x7ef864\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x1c8, 0x7ef868\nB               loc_7EF73C                                             ; +0x1cc, 0x7ef86c\nBL              .__stack_chk_fail                                      ; +0x1d0, 0x7ef870\nMOV             X19, X0                                                ; +0x1d4, 0x7ef874\nLDRB            W0, [X29,#0x70+var_38]                                 ; +0x1d8, 0x7ef878\nTBZ             W0, #0, loc_7EF888                                     ; +0x1dc, 0x7ef87c\nLDR             X0, [X29,#0x70+var_28]; void *                         ; +0x1e0, 0x7ef880\nBL              _ZdlPv; operator delete(void *)                        ; +0x1e4, 0x7ef884\nMOV             X0, X19                                                ; +0x1e8, 0x7ef888\nBL              _Unwind_Resume                                         ; +0x1ec, 0x7ef88c\nB               loc_7EF874                                             ; +0x1f0, 0x7ef890\nLDRB            W1, [X29,#0x70+var_20]                                 ; +0x1f4, 0x7ef894\nMOV             X19, X0                                                ; +0x1f8, 0x7ef898\nTBZ             W1, #0, loc_7EF878                                     ; +0x1fc, 0x7ef89c\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x200, 0x7ef8a0\nBL              _ZdlPv; operator delete(void *)                        ; +0x204, 0x7ef8a4\nB               loc_7EF878                                             ; +0x208, 0x7ef8a8\nB               loc_7EF894                                             ; +0x20c, 0x7ef8ac", "xrefs": ["`non-virtual thunk to'EditLevelLayer::textChanged @ 0x7ef8b4", "<???> @ 0xec9f8", "<???> @ 0x143c960"], "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"}