{"type": "func", "start": 8810344, "end": 8810916, "name": "ColorSelectPopup::updateColorLabels", "pseudocode": "// \n// ColorSelectPopup::updateColorLabels from 0x866f68 to 0x8671a4 (572 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x867224\n// > <???> @ 0x778c0\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:55:40 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::updateColorLabels(ColorSelectPopup *this)\n{\n  __int64 v2; // x2\n  const char *v3; // x1\n  char v4; // w23\n  _QWORD *v5; // x24\n  cocos2d::CCString *v6; // x0\n  size_t v7; // x0\n  _QWORD *v8; // x24\n  cocos2d::CCString *v9; // x0\n  const char *v10; // x0\n  size_t v11; // x0\n  _QWORD *v12; // x22\n  cocos2d::CCString *v13; // x0\n  const char *v14; // x0\n  size_t v15; // x0\n  _QWORD *v16; // x24\n  char *v17; // x22\n  size_t v18; // x0\n  char *CString; // [xsp+48h] [xbp+48h]\n  char *v21; // [xsp+48h] [xbp+48h]\n  char *v22; // [xsp+48h] [xbp+48h]\n  char v23; // [xsp+58h] [xbp+58h] BYREF\n  _BYTE v24[7]; // [xsp+59h] [xbp+59h] BYREF\n  void *v25; // [xsp+68h] [xbp+68h]\n  __int64 v26; // [xsp+70h] [xbp+70h] BYREF\n  __int64 v27; // [xsp+78h] [xbp+78h]\n  void *v28; // [xsp+80h] [xbp+80h]\n  __int64 v29; // [xsp+88h] [xbp+88h]\n\n  v2 = _stack_chk_guard;\n  v3 = (const char *)*((unsigned __int8 *)this + 1112);\n  v4 = *((_BYTE *)this + 744);\n  *((_BYTE *)this + 744) = 1;\n  v29 = v2;\n  v5 = *((_QWORD **)this + 158);\n  v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v3);\n  v26 = 0;\n  CString = (char *)cocos2d::CCString::getCString(v6);\n  v27 = 0;\n  v28 = nullptr;\n  v7 = strlen(CString);\n  std::string::__init(&v26, CString, v7);\n  CCTextInputNode::setString(v5, (char *)&v26);\n  if ( (v26 & 1) != 0 )\n    operator delete(v28);\n  v8 = *((_QWORD **)this + 159);\n  v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"%i\",\n                              (const char *)*((unsigned __int8 *)this + 1113));\n  v10 = (const char *)cocos2d::CCString::getCString(v9);\n  v26 = 0;\n  v21 = (char *)v10;\n  v27 = 0;\n  v28 = nullptr;\n  v11 = strlen(v10);\n  std::string::__init(&v26, v21, v11);\n  CCTextInputNode::setString(v8, (char *)&v26);\n  if ( (v26 & 1) != 0 )\n    operator delete(v28);\n  v12 = *((_QWORD **)this + 160);\n  v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%i\",\n                               (const char *)*((unsigned __int8 *)this + 1114));\n  v14 = (const char *)cocos2d::CCString::getCString(v13);\n  v26 = 0;\n  v22 = (char *)v14;\n  v27 = 0;\n  v28 = nullptr;\n  v15 = strlen(v14);\n  std::string::__init(&v26, v22, v15);\n  CCTextInputNode::setString(v12, (char *)&v26);\n  if ( (v26 & 1) != 0 )\n    operator delete(v28);\n  v16 = *((_QWORD **)this + 161);\n  v17 = v24;\n  ColorSelectPopup::colorToHex(*((_QWORD *)this + 139), (__int64)&v23);\n  if ( (v23 & 1) != 0 )\n    v17 = (char *)v25;\n  v26 = 0;\n  v27 = 0;\n  v28 = nullptr;\n  v18 = strlen(v17);\n  std::string::__init(&v26, v17, v18);\n  CCTextInputNode::setString(v16, (char *)&v26);\n  if ( (v26 & 1) != 0 )\n    operator delete(v28);\n  if ( (v23 & 1) != 0 )\n    operator delete(v25);\n  *((_BYTE *)this + 744) = v4;\n  return _stack_chk_guard;\n}", "assembly": "; \n; ColorSelectPopup::updateColorLabels from 0x866f68 to 0x8671a4 (572 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x867224\n; > <???> @ 0x778c0\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:55:40 +0000\n; \nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x866f68\nMOV             W3, #1                                                 ; +0x4, 0x866f6c\nMOV             X29, SP                                                ; +0x8, 0x866f70\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0xc, 0x866f74\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x866f78\nADRP            X22, #(aSongidI+8)@PAGE; \"%i\"                          ; +0x14, 0x866f7c\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x18, 0x866f80\nMOV             X19, X0                                                ; +0x1c, 0x866f84\nADD             X0, X22, #(aSongidI+8)@PAGEOFF; this                   ; +0x20, 0x866f88\nLDR             X2, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x866f8c\nADD             X20, X29, #0x90+var_20                                 ; +0x28, 0x866f90\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x2c, 0x866f94\nLDR             X2, [X2]                                               ; +0x30, 0x866f98\nLDRB            W1, [X19,#0x458]; char *                               ; +0x34, 0x866f9c\nLDRB            W23, [X19,#0x2E8]                                      ; +0x38, 0x866fa0\nSTRB            W3, [X19,#0x2E8]                                       ; +0x3c, 0x866fa4\nSTR             X2, [X29,#0x90+var_8]                                  ; +0x40, 0x866fa8\nLDR             X24, [X19,#0x4F0]                                      ; +0x44, 0x866fac\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x866fb0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0x866fb4\nSTR             XZR, [X29,#0x90+var_20]                                ; +0x50, 0x866fb8\nSTR             X0, [X29,#0x90+var_48]                                 ; +0x54, 0x866fbc\nSTR             XZR, [X29,#0x90+var_18]                                ; +0x58, 0x866fc0\nSTR             XZR, [X29,#0x90+var_10]                                ; +0x5c, 0x866fc4\nBL              .strlen                                                ; +0x60, 0x866fc8\nLDR             X1, [X29,#0x90+var_48]                                 ; +0x64, 0x866fcc\nMOV             X2, X0                                                 ; +0x68, 0x866fd0\nMOV             X0, X20                                                ; +0x6c, 0x866fd4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x70, 0x866fd8\nMOV             X0, X24                                                ; +0x74, 0x866fdc\nMOV             X1, X20                                                ; +0x78, 0x866fe0\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x7c, 0x866fe4\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0x80, 0x866fe8\nTBNZ            W0, #0, loc_867140                                     ; +0x84, 0x866fec\nLDRB            W1, [X19,#0x459]; char *                               ; +0x88, 0x866ff0\nADD             X0, X22, #(aSongidI+8)@PAGEOFF; this                   ; +0x8c, 0x866ff4\nLDR             X24, [X19,#0x4F8]                                      ; +0x90, 0x866ff8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x94, 0x866ffc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x98, 0x867000\nSTR             XZR, [X29,#0x90+var_20]                                ; +0x9c, 0x867004\nSTR             X0, [X29,#0x90+var_48]                                 ; +0xa0, 0x867008\nSTR             XZR, [X29,#0x90+var_18]                                ; +0xa4, 0x86700c\nSTR             XZR, [X29,#0x90+var_10]                                ; +0xa8, 0x867010\nBL              .strlen                                                ; +0xac, 0x867014\nLDR             X1, [X29,#0x90+var_48]                                 ; +0xb0, 0x867018\nMOV             X2, X0                                                 ; +0xb4, 0x86701c\nMOV             X0, X20                                                ; +0xb8, 0x867020\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xbc, 0x867024\nMOV             X0, X24                                                ; +0xc0, 0x867028\nMOV             X1, X20                                                ; +0xc4, 0x86702c\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0xc8, 0x867030\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0xcc, 0x867034\nTBNZ            W0, #0, loc_867134                                     ; +0xd0, 0x867038\nLDRB            W1, [X19,#0x45A]; char *                               ; +0xd4, 0x86703c\nADD             X0, X22, #(aSongidI+8)@PAGEOFF; this                   ; +0xd8, 0x867040\nLDR             X22, [X19,#0x500]                                      ; +0xdc, 0x867044\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xe0, 0x867048\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xe4, 0x86704c\nSTR             XZR, [X29,#0x90+var_20]                                ; +0xe8, 0x867050\nSTR             X0, [X29,#0x90+var_48]                                 ; +0xec, 0x867054\nSTR             XZR, [X29,#0x90+var_18]                                ; +0xf0, 0x867058\nSTR             XZR, [X29,#0x90+var_10]                                ; +0xf4, 0x86705c\nBL              .strlen                                                ; +0xf8, 0x867060\nLDR             X1, [X29,#0x90+var_48]                                 ; +0xfc, 0x867064\nMOV             X2, X0                                                 ; +0x100, 0x867068\nMOV             X0, X20                                                ; +0x104, 0x86706c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x108, 0x867070\nMOV             X0, X22                                                ; +0x10c, 0x867074\nMOV             X1, X20                                                ; +0x110, 0x867078\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x114, 0x86707c\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0x118, 0x867080\nTBNZ            W0, #0, loc_867128                                     ; +0x11c, 0x867084\nLDR             X0, [X19,#0x458]                                       ; +0x120, 0x867088\nADD             X8, X29, #0x90+var_38                                  ; +0x124, 0x86708c\nLDR             X24, [X19,#0x508]                                      ; +0x128, 0x867090\nADD             X22, X8, #1                                            ; +0x12c, 0x867094\nBL              _ZN16ColorSelectPopup10colorToHexEN7cocos2d10_ccColor3BE; ColorSelectPopup::colorToHex(cocos2d::_ccColor3B) ; +0x130, 0x867098\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0x134, 0x86709c\nTBZ             W0, #0, loc_8670A8                                     ; +0x138, 0x8670a0\nLDR             X22, [X29,#0x90+var_28]                                ; +0x13c, 0x8670a4\nMOV             X0, X22; char *                                        ; +0x140, 0x8670a8\nSTR             XZR, [X29,#0x90+var_20]                                ; +0x144, 0x8670ac\nSTR             XZR, [X29,#0x90+var_18]                                ; +0x148, 0x8670b0\nSTR             XZR, [X29,#0x90+var_10]                                ; +0x14c, 0x8670b4\nBL              .strlen                                                ; +0x150, 0x8670b8\nMOV             X1, X22                                                ; +0x154, 0x8670bc\nMOV             X2, X0                                                 ; +0x158, 0x8670c0\nMOV             X0, X20                                                ; +0x15c, 0x8670c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x160, 0x8670c8\nMOV             X0, X24                                                ; +0x164, 0x8670cc\nMOV             X1, X20                                                ; +0x168, 0x8670d0\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x16c, 0x8670d4\nLDRB            W0, [X29,#0x90+var_20]                                 ; +0x170, 0x8670d8\nTBNZ            W0, #0, loc_86711C                                     ; +0x174, 0x8670dc\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0x178, 0x8670e0\nTBZ             W0, #0, loc_8670F0                                     ; +0x17c, 0x8670e4\nLDR             X0, [X29,#0x90+var_28]; void *                         ; +0x180, 0x8670e8\nBL              _ZdlPv; operator delete(void *)                        ; +0x184, 0x8670ec\nSTRB            W23, [X19,#0x2E8]                                      ; +0x188, 0x8670f0\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x18c, 0x8670f4\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x190, 0x8670f8\nLDR             X0, [X21]                                              ; +0x194, 0x8670fc\nCMP             X1, X0                                                 ; +0x198, 0x867100\nB.NE            loc_86714C                                             ; +0x19c, 0x867104\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x1a0, 0x867108\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x1a4, 0x86710c\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x1a8, 0x867110\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x1ac, 0x867114\nRET                                                                    ; +0x1b0, 0x867118\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1b4, 0x86711c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1b8, 0x867120\nB               loc_8670E0                                             ; +0x1bc, 0x867124\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1c0, 0x867128\nBL              _ZdlPv; operator delete(void *)                        ; +0x1c4, 0x86712c\nB               loc_867088                                             ; +0x1c8, 0x867130\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1cc, 0x867134\nBL              _ZdlPv; operator delete(void *)                        ; +0x1d0, 0x867138\nB               loc_86703C                                             ; +0x1d4, 0x86713c\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1d8, 0x867140\nBL              _ZdlPv; operator delete(void *)                        ; +0x1dc, 0x867144\nB               loc_866FF0                                             ; +0x1e0, 0x867148\nBL              .__stack_chk_fail                                      ; +0x1e4, 0x86714c\nLDRB            W1, [X29,#0x90+var_20]                                 ; +0x1e8, 0x867150\nMOV             X19, X0                                                ; +0x1ec, 0x867154\nTBZ             W1, #0, loc_867164                                     ; +0x1f0, 0x867158\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x1f4, 0x86715c\nBL              _ZdlPv; operator delete(void *)                        ; +0x1f8, 0x867160\nMOV             X0, X19                                                ; +0x1fc, 0x867164\nBL              _Unwind_Resume                                         ; +0x200, 0x867168\nB               loc_867150                                             ; +0x204, 0x86716c\nB               loc_867150                                             ; +0x208, 0x867170\nLDRB            W1, [X29,#0x90+var_20]                                 ; +0x20c, 0x867174\nMOV             X19, X0                                                ; +0x210, 0x867178\nTBZ             W1, #0, loc_867188                                     ; +0x214, 0x86717c\nLDR             X0, [X29,#0x90+var_10]; void *                         ; +0x218, 0x867180\nBL              _ZdlPv; operator delete(void *)                        ; +0x21c, 0x867184\nLDRB            W0, [X29,#0x90+var_38]                                 ; +0x220, 0x867188\nTBZ             W0, #0, loc_867164                                     ; +0x224, 0x86718c\nLDR             X0, [X29,#0x90+var_28]; void *                         ; +0x228, 0x867190\nBL              _ZdlPv; operator delete(void *)                        ; +0x22c, 0x867194\nB               loc_867164                                             ; +0x230, 0x867198\nMOV             X19, X0                                                ; +0x234, 0x86719c\nB               loc_867188                                             ; +0x238, 0x8671a0", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x867224", "<???> @ 0x778c0"], "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"}