{"type": "func", "start": 4299288772, "end": 4299288964, "name": "ColorSelectPopup::updateTextInputLabel", "pseudocode": "// \n// ColorSelectPopup::updateTextInputLabel from 0x10041f0c4 to 0x10041f184 (192 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::init @ 0x10041db08\n// > ColorSelectPopup::onUpdateCopyColor @ 0x10041f0c0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall ColorSelectPopup::updateTextInputLabel(ColorSelectPopup *a1)\n{\n  cocos2d::CCString *v2; // x0\n  const char *CString; // x0\n  char *v4; // x1\n  CCTextInputNode *m_colorInput; // x20\n  int m_colorID; // w0\n  CCTextInputNode *v7; // x20\n  char *v8; // x0\n  std::string v9; // [xsp+10h] [xbp-40h] BYREF\n  void *__p[2]; // [xsp+28h] [xbp-28h] BYREF\n  char v11; // [xsp+3Fh] [xbp-11h]\n\n  a1->m_disableTextDelegate = 1;\n  v2 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a1->m_colorID);\n  CString = cocos2d::CCString::getCString(v2);\n  if ( a1->m_colorID <= 999 )\n    v4 = (char *)CString;\n  else\n    v4 = \"0\";\n  m_colorInput = a1->m_colorInput;\n  sub_100009900(__p, v4);\n  CCTextInputNode::setString(m_colorInput, (__int64 **)__p);\n  if ( v11 < 0 )\n    operator delete(__p[0]);\n  m_colorID = a1->m_colorID;\n  if ( m_colorID >= 1000 )\n  {\n    v7 = a1->m_colorInput;\n    v8 = (char *)GJSpecialColorSelect::textForColorIdx(m_colorID);\n    sub_100009900(&v9, v8);\n    CCTextInputNode::updateLabel(v7, &v9);\n    if ( SHIBYTE(v9.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(v9.__r_.__value_.__l.__data_);\n  }\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; ColorSelectPopup::updateTextInputLabel from 0x10041f0c4 to 0x10041f184 (192 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::init @ 0x10041db08\n; > ColorSelectPopup::onUpdateCopyColor @ 0x10041f0c0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x60                                          ; +0x0, 0x10041f0c4\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x4, 0x10041f0c8\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x8, 0x10041f0cc\nADD             X29, SP, #0x50                                         ; +0xc, 0x10041f0d0\nMOV             X19, X0                                                ; +0x10, 0x10041f0d4\nMOV             W8, #1                                                 ; +0x14, 0x10041f0d8\nSTRB            W8, [X0,#0x2CC]                                        ; +0x18, 0x10041f0dc\nLDR             W8, [X0,#0x448]                                        ; +0x1c, 0x10041f0e0\nSTR             X8, [SP,#0x50+var_50]                                  ; +0x20, 0x10041f0e4\nADRL            X0, aI; \"%i\"                                           ; +0x24, 0x10041f0e8\nBL              sub_100268F4C                                          ; +0x2c, 0x10041f0f0\nBL              cocos2d__CCString__getCString                          ; +0x30, 0x10041f0f4\nLDR             W8, [X19,#0x448]                                       ; +0x34, 0x10041f0f8\nADRL            X9, a0; \"0\"                                            ; +0x38, 0x10041f0fc\nCMP             W8, #0x3E7                                             ; +0x40, 0x10041f104\nCSEL            X1, X9, X0, GT; __s                                    ; +0x44, 0x10041f108\nLDR             X20, [X19,#0x438]                                      ; +0x48, 0x10041f10c\nADD             X0, SP, #0x50+__p; int                                 ; +0x4c, 0x10041f110\nBL              sub_100009900                                          ; +0x50, 0x10041f114\nADD             X1, SP, #0x50+__p                                      ; +0x54, 0x10041f118\nMOV             X0, X20                                                ; +0x58, 0x10041f11c\nBL              CCTextInputNode__setString                             ; +0x5c, 0x10041f120\nLDRSB           W8, [SP,#0x50+var_11]                                  ; +0x60, 0x10041f124\nTBZ             W8, #0x1F, loc_10041F134                               ; +0x64, 0x10041f128\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x68, 0x10041f12c\nBL              __ZdlPv; operator delete(void *)                       ; +0x6c, 0x10041f130\nLDR             W0, [X19,#0x448]                                       ; +0x70, 0x10041f134\nCMP             W0, #0x3E8                                             ; +0x74, 0x10041f138\nB.LT            loc_10041F170                                          ; +0x78, 0x10041f13c\nLDR             X20, [X19,#0x438]                                      ; +0x7c, 0x10041f140\nBL              GJSpecialColorSelect__textForColorIdx                  ; +0x80, 0x10041f144\nMOV             X1, X0; __s                                            ; +0x84, 0x10041f148\nADD             X0, SP, #0x50+var_40; int                              ; +0x88, 0x10041f14c\nBL              sub_100009900                                          ; +0x8c, 0x10041f150\nADD             X1, SP, #0x50+var_40                                   ; +0x90, 0x10041f154\nMOV             X0, X20                                                ; +0x94, 0x10041f158\nBL              CCTextInputNode__updateLabel                           ; +0x98, 0x10041f15c\nLDRSB           W8, [SP,#0x50+var_29]                                  ; +0x9c, 0x10041f160\nTBZ             W8, #0x1F, loc_10041F170                               ; +0xa0, 0x10041f164\nLDR             X0, [SP,#0x50+var_40]; __p                             ; +0xa4, 0x10041f168\nBL              __ZdlPv; operator delete(void *)                       ; +0xa8, 0x10041f16c\nSTRB            WZR, [X19,#0x2CC]                                      ; +0xac, 0x10041f170\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xb0, 0x10041f174\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xb4, 0x10041f178\nADD             SP, SP, #0x60 ; '`'                                    ; +0xb8, 0x10041f17c\nRET                                                                    ; +0xbc, 0x10041f180", "xrefs": ["ColorSelectPopup::init @ 0x10041db08", "ColorSelectPopup::onUpdateCopyColor @ 0x10041f0c0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}