{"type": "func", "start": 9980168, "end": 9980608, "name": "CustomizeObjectLayer::textChanged", "pseudocode": "// \n// CustomizeObjectLayer::textChanged from 0x984908 to 0x984ac0 (440 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x984ac4\n// > <???> @ 0x69f40\n// > <???> @ 0x14719f0\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:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::textChanged(CustomizeObjectLayer *this, CCTextInputNode *a2)\n{\n  int v4; // w0\n  _BYTE *v5; // x22\n  char *v6; // x20\n  size_t v7; // x0\n  char *v8; // x21\n  cocos2d::CCString *v9; // x0\n  const char *CString; // x0\n  unsigned int v11; // w0\n  __int64 v13[2]; // [xsp+48h] [xbp+48h] BYREF\n  void *v14; // [xsp+58h] [xbp+58h]\n  __int64 v15[2]; // [xsp+60h] [xbp+60h] BYREF\n  char *v16; // [xsp+70h] [xbp+70h]\n\n  if ( !*((_BYTE *)this + 922) )\n  {\n    v4 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2);\n    if ( v4 )\n    {\n      if ( v4 == 1 )\n      {\n        v5 = *((_BYTE **)this + 86);\n        v6 = (char *)v13 + 1;\n        CCTextInputNode::getString(a2, v13);\n        if ( (v13[0] & 1) != 0 )\n          v6 = (char *)v14;\n        v15[0] = 0;\n        v15[1] = 0;\n        v16 = nullptr;\n        v7 = strlen(v6);\n        std::string::__init(v15, v6, v7);\n        TextGameObject::updateTextObject(v5, (unsigned __int8 *)v15, 0);\n        if ( (v15[0] & 1) != 0 )\n          operator delete(v16);\n        if ( (v13[0] & 1) != 0 )\n          operator delete(v14);\n      }\n    }\n    else\n    {\n      CCTextInputNode::getString(a2, v15);\n      if ( (v15[0] & 1) != 0 )\n      {\n        v8 = v16;\n        *((_DWORD *)this + 187) = atoi(v16);\n        operator delete(v8);\n        v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                    (cocos2d::CCString *)\"%i\",\n                                    (const char *)*((unsigned int *)this + 187));\n      }\n      else\n      {\n        v11 = atoi((const char *)v15 + 1);\n        *((_DWORD *)this + 187) = v11;\n        v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)v11);\n      }\n      CString = (const char *)cocos2d::CCString::getCString(v9);\n      ButtonSprite::setString(*((ButtonSprite **)this + 107), CString);\n      CustomizeObjectLayer::updateSelected(this, *((_DWORD *)this + 187));\n      CustomizeObjectLayer::updateColorSprite(this);\n      CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)*((unsigned int *)this + 187));\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomizeObjectLayer::textChanged from 0x984908 to 0x984ac0 (440 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x984ac4\n; > <???> @ 0x69f40\n; > <???> @ 0x14719f0\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:57:52 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x984908\nMOV             X29, SP                                                ; +0x4, 0x98490c\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x984910\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x984914\nMOV             X20, X0                                                ; +0x10, 0x984918\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0x98491c\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x984920\nLDRB            W0, [X0,#0x39A]                                        ; +0x1c, 0x984924\nLDR             X2, [X2]                                               ; +0x20, 0x984928\nSTR             X2, [X29,#0x80+var_8]                                  ; +0x24, 0x98492c\nCBZ             W0, loc_984958                                         ; +0x28, 0x984930\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x984934\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x30, 0x984938\nLDR             X0, [X19]                                              ; +0x34, 0x98493c\nCMP             X1, X0                                                 ; +0x38, 0x984940\nB.NE            loc_984A88                                             ; +0x3c, 0x984944\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x40, 0x984948\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x44, 0x98494c\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x48, 0x984950\nRET                                                                    ; +0x4c, 0x984954\nLDR             X2, [X1]                                               ; +0x50, 0x984958\nMOV             X0, X1                                                 ; +0x54, 0x98495c\nSTR             X1, [X29,#0x80+var_48]                                 ; +0x58, 0x984960\nLDR             X2, [X2,#0x40]                                         ; +0x5c, 0x984964\nBLR             X2                                                     ; +0x60, 0x984968\nLDR             X1, [X29,#0x80+var_48]                                 ; +0x64, 0x98496c\nCBZ             W0, loc_9849EC                                         ; +0x68, 0x984970\nCMP             W0, #1                                                 ; +0x6c, 0x984974\nB.NE            loc_984934                                             ; +0x70, 0x984978\nMOV             X0, X1; this                                           ; +0x74, 0x98497c\nADD             X8, X29, #0x80+var_38                                  ; +0x78, 0x984980\nLDR             X22, [X20,#0x2B0]                                      ; +0x7c, 0x984984\nADD             X20, X8, #1                                            ; +0x80, 0x984988\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x84, 0x98498c\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x88, 0x984990\nTBNZ            W0, #0, loc_984A74                                     ; +0x8c, 0x984994\nMOV             X0, X20; char *                                        ; +0x90, 0x984998\nADD             X21, X29, #0x80+var_20                                 ; +0x94, 0x98499c\nSTR             XZR, [X29,#0x80+var_20]                                ; +0x98, 0x9849a0\nSTR             XZR, [X29,#0x80+var_18]                                ; +0x9c, 0x9849a4\nSTR             XZR, [X29,#0x80+var_10]                                ; +0xa0, 0x9849a8\nBL              .strlen                                                ; +0xa4, 0x9849ac\nMOV             X1, X20                                                ; +0xa8, 0x9849b0\nMOV             X2, X0                                                 ; +0xac, 0x9849b4\nMOV             X0, X21                                                ; +0xb0, 0x9849b8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xb4, 0x9849bc\nMOV             X0, X22                                                ; +0xb8, 0x9849c0\nMOV             X1, X21                                                ; +0xbc, 0x9849c4\nMOV             W2, #0                                                 ; +0xc0, 0x9849c8\nBL              _ZN14TextGameObject16updateTextObjectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEb; TextGameObject::updateTextObject(std::string,bool) ; +0xc4, 0x9849cc\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0xc8, 0x9849d0\nTBNZ            W0, #0, loc_984A7C                                     ; +0xcc, 0x9849d4\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0xd0, 0x9849d8\nTBZ             W0, #0, loc_984934                                     ; +0xd4, 0x9849dc\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0xd8, 0x9849e0\nBL              _ZdlPv; operator delete(void *)                        ; +0xdc, 0x9849e4\nB               loc_984934                                             ; +0xe0, 0x9849e8\nADD             X21, X29, #0x80+var_20                                 ; +0xe4, 0x9849ec\nMOV             X0, X1; this                                           ; +0xe8, 0x9849f0\nMOV             X8, X21                                                ; +0xec, 0x9849f4\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0xf0, 0x9849f8\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0xf4, 0x9849fc\nTBZ             W0, #0, loc_984A60                                     ; +0xf8, 0x984a00\nLDR             X21, [X29,#0x80+var_10]                                ; +0xfc, 0x984a04\nMOV             X0, X21; char *                                        ; +0x100, 0x984a08\nBL              .atoi                                                  ; +0x104, 0x984a0c\nSTR             W0, [X20,#0x2EC]                                       ; +0x108, 0x984a10\nMOV             X0, X21; void *                                        ; +0x10c, 0x984a14\nBL              _ZdlPv; operator delete(void *)                        ; +0x110, 0x984a18\nLDR             W1, [X20,#0x2EC]; char *                               ; +0x114, 0x984a1c\nADRL            X0, (aSongidI+8); this                                 ; +0x118, 0x984a20\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x120, 0x984a28\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x124, 0x984a2c\nMOV             X1, X0; char *                                         ; +0x128, 0x984a30\nLDR             X0, [X20,#0x358]; this                                 ; +0x12c, 0x984a34\nBL              _ZN12ButtonSprite9setStringEPKc; ButtonSprite::setString(char const*) ; +0x130, 0x984a38\nLDR             W1, [X20,#0x2EC]; int                                  ; +0x134, 0x984a3c\nMOV             X0, X20; this                                          ; +0x138, 0x984a40\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x13c, 0x984a44\nMOV             X0, X20; this                                          ; +0x140, 0x984a48\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x144, 0x984a4c\nLDR             W1, [X20,#0x2EC]; GJSpecialColorSelect *               ; +0x148, 0x984a50\nMOV             X0, X20; this                                          ; +0x14c, 0x984a54\nBL              _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x150, 0x984a58\nB               loc_984934                                             ; +0x154, 0x984a5c\nADD             X0, X21, #1; char *                                    ; +0x158, 0x984a60\nBL              .atoi                                                  ; +0x15c, 0x984a64\nMOV             W1, W0                                                 ; +0x160, 0x984a68\nSTR             W0, [X20,#0x2EC]                                       ; +0x164, 0x984a6c\nB               loc_984A20                                             ; +0x168, 0x984a70\nLDR             X20, [X29,#0x80+var_28]                                ; +0x16c, 0x984a74\nB               loc_984998                                             ; +0x170, 0x984a78\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x174, 0x984a7c\nBL              _ZdlPv; operator delete(void *)                        ; +0x178, 0x984a80\nB               loc_9849D8                                             ; +0x17c, 0x984a84\nBL              .__stack_chk_fail                                      ; +0x180, 0x984a88\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x184, 0x984a8c\nMOV             X19, X0                                                ; +0x188, 0x984a90\nTBZ             W1, #0, loc_984AA0                                     ; +0x18c, 0x984a94\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x190, 0x984a98\nBL              _ZdlPv; operator delete(void *)                        ; +0x194, 0x984a9c\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x198, 0x984aa0\nTBZ             W0, #0, loc_984AB0                                     ; +0x19c, 0x984aa4\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x1a0, 0x984aa8\nBL              _ZdlPv; operator delete(void *)                        ; +0x1a4, 0x984aac\nMOV             X0, X19                                                ; +0x1a8, 0x984ab0\nBL              _Unwind_Resume                                         ; +0x1ac, 0x984ab4\nMOV             X19, X0                                                ; +0x1b0, 0x984ab8\nB               loc_984AA0                                             ; +0x1b4, 0x984abc", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x984ac4", "<???> @ 0x69f40", "<???> @ 0x14719f0"], "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"}