{"type": "func", "start": 5763744, "end": 5763998, "name": "CustomizeObjectLayer::textChanged", "pseudocode": "// \n// CustomizeObjectLayer::textChanged from 0x57f2a0 to 0x57f39e (254 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x57f3ac\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::textChanged(int this, CCTextInputNode *a2)\n{\n  int v2; // r4\n  char *v3; // r5\n  char *v4; // r0\n  cocos2d::CCString *v5; // r0\n  char *CString; // r0\n  _BYTE *v7; // r8\n  size_t v8; // r0\n  char v9; // [sp+4h] [bp-1Ch] BYREF\n  char v10; // [sp+5h] [bp-1Bh] BYREF\n  char *v11; // [sp+Ch] [bp-14h]\n  int v12[2]; // [sp+10h] [bp-10h] BYREF\n  char *v13; // [sp+18h] [bp-8h]\n\n  v2 = this;\n  v3 = (char *)a2;\n  if ( !*(_BYTE *)(this + 654) )\n  {\n    this = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2);\n    if ( this )\n    {\n      if ( this == 1 )\n      {\n        v7 = *(_BYTE **)(v2 + 532);\n        CCTextInputNode::getString((CCTextInputNode *)&v9, (int)v3);\n        if ( (v9 & 1) == 0 )\n          v3 = &v10;\n        v12[0] = 0;\n        if ( (v9 & 1) != 0 )\n          v3 = v11;\n        v12[1] = 0;\n        v13 = nullptr;\n        v8 = strlen(v3);\n        std::string::__init(v12, v3, v8);\n        TextGameObject::updateTextObject(v7, (unsigned __int8 *)v12, 0);\n        std::string::~string((int)v12);\n        return std::string::~string((int)&v9);\n      }\n    }\n    else\n    {\n      CCTextInputNode::getString((CCTextInputNode *)v12, (int)v3);\n      if ( (v12[0] & 1) != 0 )\n        v4 = v13;\n      else\n        v4 = (char *)v12 + 1;\n      *(_DWORD *)(v2 + 564) = atoi(v4);\n      std::string::~string((int)v12);\n      v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                  (cocos2d::CCString *)\"%i\",\n                                  *(const char **)(v2 + 564));\n      CString = (char *)cocos2d::CCString::getCString(v5);\n      ButtonSprite::setString(*(_DWORD *)(v2 + 620), CString);\n      CustomizeObjectLayer::updateSelected((CustomizeObjectLayer *)v2, *(_DWORD *)(v2 + 564));\n      CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)v2);\n      return CustomizeObjectLayer::updateChannelLabel((CustomizeObjectLayer *)v2, *(GJSpecialColorSelect **)(v2 + 564));\n    }\n  }\n  return this;\n}", "assembly": "; \n; CustomizeObjectLayer::textChanged from 0x57f2a0 to 0x57f39e (254 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x57f3ac\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:51 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x57F2AA)                ; +0x0, 0x57f2a0\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x57f2a2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x57f2a6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x57f2a8\nSUB             SP, SP, #0x20                                          ; +0xa, 0x57f2aa\nMOV             R4, R0                                                 ; +0xc, 0x57f2ac\nLDR             R2, [R3]                                               ; +0xe, 0x57f2ae\nMOV             R5, R1                                                 ; +0x10, 0x57f2b0\nMOV             R6, R3                                                 ; +0x12, 0x57f2b2\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x14, 0x57f2b4\nLDRB.W          R2, [R0,#0x28E]                                        ; +0x16, 0x57f2b6\nCMP             R2, #0                                                 ; +0x1a, 0x57f2ba\nBNE             loc_57F38C                                             ; +0x1c, 0x57f2bc\nLDR             R3, [R1]                                               ; +0x1e, 0x57f2be\nMOV             R0, R1                                                 ; +0x20, 0x57f2c0\nLDR             R3, [R3,#0x20]                                         ; +0x22, 0x57f2c2\nBLX             R3                                                     ; +0x24, 0x57f2c4\nCBNZ            R0, loc_57F324                                         ; +0x26, 0x57f2c6\nADD             R7, SP, #0x20+var_10                                   ; +0x28, 0x57f2c8\nMOV             R1, R5                                                 ; +0x2a, 0x57f2ca\nMOV             R0, R7; this                                           ; +0x2c, 0x57f2cc\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x2e, 0x57f2ce\nLDRB.W          R3, [SP,#0x20+var_10]                                  ; +0x32, 0x57f2d2\nLSLS            R2, R3, #0x1F                                          ; +0x36, 0x57f2d6\nITE PL                                                                 ; +0x38, 0x57f2d8\nADDPL.W         R0, SP, #0x20+var_10+1                                 ; +0x3a, 0x57f2da\nLDRMI           R0, [SP,#0x20+var_8]; char *                           ; +0x3e, 0x57f2de\nBLX             atoi                                                   ; +0x40, 0x57f2e0\nSTR.W           R0, [R4,#0x234]                                        ; +0x44, 0x57f2e4\nMOV             R0, R7                                                 ; +0x48, 0x57f2e8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4a, 0x57f2ea\nLDR             R0, =(aI - 0x57F2F8); \"%i\"                             ; +0x4e, 0x57f2ee\nLDR.W           R1, [R4,#0x234]; char *                                ; +0x50, 0x57f2f0\nADD             R0, PC; \"%i\"                                           ; +0x54, 0x57f2f4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x56, 0x57f2f6\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x5a, 0x57f2fa\nMOV             R1, R0; char *                                         ; +0x5e, 0x57f2fe\nLDR.W           R0, [R4,#0x26C]; this                                  ; +0x60, 0x57f300\nBL              _ZN12ButtonSprite9setStringEPKc; ButtonSprite::setString(char const*) ; +0x64, 0x57f304\nLDR.W           R1, [R4,#0x234]; int                                   ; +0x68, 0x57f308\nMOV             R0, R4; this                                           ; +0x6c, 0x57f30c\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x6e, 0x57f30e\nMOV             R0, R4; this                                           ; +0x72, 0x57f312\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x74, 0x57f314\nMOV             R0, R4; this                                           ; +0x78, 0x57f318\nLDR.W           R1, [R4,#0x234]; GJSpecialColorSelect *                ; +0x7a, 0x57f31a\nBL              _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x7e, 0x57f31e\nB               loc_57F38C                                             ; +0x82, 0x57f322\nCMP             R0, #1                                                 ; +0x84, 0x57f324\nBNE             loc_57F38C                                             ; +0x86, 0x57f326\nADD             R7, SP, #0x20+var_1C                                   ; +0x88, 0x57f328\nMOV             R1, R5                                                 ; +0x8a, 0x57f32a\nLDR.W           R8, [R4,#0x214]                                        ; +0x8c, 0x57f32c\nADD             R4, SP, #0x20+var_10                                   ; +0x90, 0x57f330\nMOV             R0, R7; this                                           ; +0x92, 0x57f332\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x94, 0x57f334\nLDRB.W          R3, [SP,#0x20+var_1C]                                  ; +0x98, 0x57f338\nLSLS            R3, R3, #0x1F                                          ; +0x9c, 0x57f33c\nMOV.W           R3, #0                                                 ; +0x9e, 0x57f33e\nIT PL                                                                  ; +0xa2, 0x57f342\nADDPL.W         R5, SP, #0x20+var_1B                                   ; +0xa4, 0x57f344\nSTR             R3, [SP,#0x20+var_10]                                  ; +0xa8, 0x57f348\nIT MI                                                                  ; +0xaa, 0x57f34a\nLDRMI           R5, [SP,#0x20+var_14]                                  ; +0xac, 0x57f34c\nSTR             R3, [SP,#0x20+var_C]                                   ; +0xae, 0x57f34e\nSTR             R3, [SP,#0x20+var_8]                                   ; +0xb0, 0x57f350\nMOV             R0, R5; char *                                         ; +0xb2, 0x57f352\nBLX             strlen                                                 ; +0xb4, 0x57f354\nMOV             R1, R5                                                 ; +0xb8, 0x57f358\nMOV             R2, R0                                                 ; +0xba, 0x57f35a\nMOV             R0, R4                                                 ; +0xbc, 0x57f35c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xbe, 0x57f35e\nMOV             R0, R8                                                 ; +0xc2, 0x57f362\nMOV             R1, R4                                                 ; +0xc4, 0x57f364\nMOVS            R2, #0                                                 ; +0xc6, 0x57f366\nBL              _ZN14TextGameObject16updateTextObjectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEb; TextGameObject::updateTextObject(std::string,bool) ; +0xc8, 0x57f368\nMOV             R0, R4                                                 ; +0xcc, 0x57f36c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xce, 0x57f36e\nMOV             R0, R7                                                 ; +0xd2, 0x57f372\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd4, 0x57f374\nB               loc_57F38C                                             ; +0xd8, 0x57f378\nMOV             R0, R4                                                 ; +0xda, 0x57f37a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xdc, 0x57f37c\nB               loc_57F382                                             ; +0xe0, 0x57f380\nMOV             R0, R7                                                 ; +0xe2, 0x57f382\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xe4, 0x57f384\nBL              __cxa_end_cleanup                                      ; +0xe8, 0x57f388\nLDR             R2, [SP,#0x20+var_4]                                   ; +0xec, 0x57f38c\nLDR             R3, [R6]                                               ; +0xee, 0x57f38e\nCMP             R2, R3                                                 ; +0xf0, 0x57f390\nBEQ             loc_57F398                                             ; +0xf2, 0x57f392\nBLX             __stack_chk_fail                                       ; +0xf4, 0x57f394\nADD             SP, SP, #0x20 ; ' '                                    ; +0xf8, 0x57f398\nPOP.W           {R4-R8,PC}                                             ; +0xfa, 0x57f39a", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::textChanged @ 0x57f3ac"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}