{"type": "func", "start": 4296461336, "end": 4296461836, "name": "CCTextInputNode::updateLabel", "pseudocode": "// \n// CCTextInputNode::updateLabel from 0x10016cc18 to 0x10016ce0c (500 bytes)\n// \n// 32 xrefs:\n// > CustomizeObjectLayer::textInputOpened @ 0x100050a9c\n// > LevelSearchLayer::updateSearchLabel @ 0x1000533e0\n// > LevelSearchLayer::textInputOpened @ 0x100054ab8\n// > SetupSmartTemplateLayer::textInputOpened @ 0x1000712ec\n// > SecretLayer5::updateSearchLabel @ 0x100074d94\n// > SecretLayer5::onSubmit @ 0x100074f78\n// > SecretLayer5::textInputOpened @ 0x100076e1c\n// > EditLevelLayer::textInputClosed @ 0x1000eb96c\n// > EditLevelLayer::textInputOpened @ 0x1000ebb30\n// > CCTextInputNode::addTextArea @ 0x10016cb70\n// > CCTextInputNode::setString @ 0x10016cf0c\n// > CCTextInputNode::textChanged @ 0x10016d740\n// > CCTextInputNode::onTextFieldDetachWithIME @ 0x10016e1d4\n// > LevelListLayer::textInputClosed @ 0x1002472b0\n// > LevelListLayer::textInputOpened @ 0x1002473ec\n// > SetColorIDPopup::init @ 0x1002dea78\n// > SetColorIDPopup::colorSelectClosed @ 0x1002debd8\n// > GJGarageLayer::textInputOpened @ 0x100304798\n// > SecretLayer2::updateSearchLabel @ 0x10030a624\n// > SecretLayer2::textInputOpened @ 0x10030d148\n// > SecretLayer4::updateSearchLabel @ 0x100354d64\n// > SecretLayer4::textInputOpened @ 0x100355e98\n// > SetupPulsePopup::updateTextInputLabel @ 0x1003b68d8\n// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003b69cc\n// > SetupPulsePopup::colorSelectClosed @ 0x1003b7064\n// > SetupPulsePopup::colorSelectClosed @ 0x1003b70fc\n// > SecretLayer::updateSearchLabel @ 0x1003bdcc4\n// > SecretLayer::textInputOpened @ 0x1003bf348\n// > ColorSelectPopup::updateTextInputLabel @ 0x10041f15c\n// > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x10041f3dc\n// > ColorSelectPopup::colorSelectClosed @ 0x1004209b0\n// > ColorSelectPopup::colorSelectClosed @ 0x100420a50\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 CCTextInputNode::updateLabel(CCTextInputNode *a1, std::string *a2)\n{\n  cocos2d::CCLabelBMFont *m_textLabel; // x8\n  _BOOL4 v5; // w0\n  _BOOL4 v6; // w21\n  const std::string::value_type *p_m_caption; // x1\n  unsigned __int64 i; // x22\n  unsigned __int64 size; // x8\n  cocos2d::CCLabelBMFont *v10; // x0\n  char *v11; // x0\n  bool v12; // w20\n  cocos2d::CCTextFieldTTF *m_textField; // x8\n  int m_uCursorPos; // w1\n  __int64 m_textArea; // x21\n  void *v16[2]; // [xsp+8h] [xbp-68h] BYREF\n  char v17; // [xsp+1Fh] [xbp-51h]\n  void *v18[2]; // [xsp+20h] [xbp-50h] BYREF\n  char v19; // [xsp+37h] [xbp-39h]\n  std::string __p; // [xsp+38h] [xbp-38h] BYREF\n\n  m_textLabel = a1->m_textLabel;\n  if ( m_textLabel )\n  {\n    m_textLabel->m_nExtraKerning = a1->m_kerningAmount;\n  }\n  else if ( !a1->m_textArea )\n  {\n    return;\n  }\n  sub_100009900(&__p, \"\");\n  v5 = sub_1000045BC(a2, &__p);\n  v6 = v5;\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n  {\n    operator delete(__p.__r_.__value_.__l.__data_);\n    if ( v6 )\n      goto LABEL_6;\nLABEL_10:\n    if ( a1->m_usePasswordChar )\n    {\n      sub_100009900(&__p, \"\");\n      for ( i = 0; ; ++i )\n      {\n        size = SHIBYTE(a2->__r_.__value_.__r.__words[2]);\n        if ( (size & 0x8000000000000000LL) != 0 )\n          size = a2->__r_.__value_.__l.__size_;\n        if ( size <= i )\n          break;\n        std::string::append(&__p, \"\u2022\");\n      }\n      std::string::operator=(a2, &__p);\n      if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n        operator delete(__p.__r_.__value_.__l.__data_);\n    }\n    goto LABEL_18;\n  }\n  if ( !v5 )\n    goto LABEL_10;\nLABEL_6:\n  p_m_caption = (const std::string::value_type *)&a1->m_caption;\n  if ( a1->m_caption.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    p_m_caption = *(const std::string::value_type **)p_m_caption;\n  std::string::assign(a2, p_m_caption);\nLABEL_18:\n  v10 = a1->m_textLabel;\n  if ( v10 )\n  {\n    if ( SHIBYTE(a2->__r_.__value_.__r.__words[2]) < 0 )\n      a2 = (std::string *)a2->__r_.__value_.__r.__words[0];\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string *))v10->setString)(v10, a2);\n  }\n  else\n  {\n    m_textArea = (__int64)a1->m_textArea;\n    if ( m_textArea )\n    {\n      if ( SHIBYTE(a2->__r_.__value_.__r.__words[2]) < 0 )\n        a2 = (std::string *)a2->__r_.__value_.__r.__words[0];\n      sub_100009900(v18, (char *)a2);\n      TextArea::setString(m_textArea, (const void **)v18);\n      if ( v19 < 0 )\n        operator delete(v18[0]);\n    }\n  }\n  CCTextInputNode::refreshLabel(a1);\n  v11 = (char *)((__int64 (__fastcall *)(cocos2d::CCTextFieldTTF *))a1->m_textField->getString)(a1->m_textField);\n  sub_100009900(&__p, v11);\n  sub_100009900(v16, \"\");\n  v12 = sub_1000045BC(&__p, v16);\n  if ( v17 < 0 )\n    operator delete(v16[0]);\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n  m_textField = a1->m_textField;\n  if ( v12 )\n  {\n    m_uCursorPos = -1;\n    m_textField->m_uCursorPos = -1;\n  }\n  else\n  {\n    m_uCursorPos = m_textField->m_uCursorPos;\n  }\n  CCTextInputNode::updateBlinkLabelToChar(a1, m_uCursorPos);\n}", "assembly": "; \n; CCTextInputNode::updateLabel from 0x10016cc18 to 0x10016ce0c (500 bytes)\n; \n; 32 xrefs:\n; > CustomizeObjectLayer::textInputOpened @ 0x100050a9c\n; > LevelSearchLayer::updateSearchLabel @ 0x1000533e0\n; > LevelSearchLayer::textInputOpened @ 0x100054ab8\n; > SetupSmartTemplateLayer::textInputOpened @ 0x1000712ec\n; > SecretLayer5::updateSearchLabel @ 0x100074d94\n; > SecretLayer5::onSubmit @ 0x100074f78\n; > SecretLayer5::textInputOpened @ 0x100076e1c\n; > EditLevelLayer::textInputClosed @ 0x1000eb96c\n; > EditLevelLayer::textInputOpened @ 0x1000ebb30\n; > CCTextInputNode::addTextArea @ 0x10016cb70\n; > CCTextInputNode::setString @ 0x10016cf0c\n; > CCTextInputNode::textChanged @ 0x10016d740\n; > CCTextInputNode::onTextFieldDetachWithIME @ 0x10016e1d4\n; > LevelListLayer::textInputClosed @ 0x1002472b0\n; > LevelListLayer::textInputOpened @ 0x1002473ec\n; > SetColorIDPopup::init @ 0x1002dea78\n; > SetColorIDPopup::colorSelectClosed @ 0x1002debd8\n; > GJGarageLayer::textInputOpened @ 0x100304798\n; > SecretLayer2::updateSearchLabel @ 0x10030a624\n; > SecretLayer2::textInputOpened @ 0x10030d148\n; > SecretLayer4::updateSearchLabel @ 0x100354d64\n; > SecretLayer4::textInputOpened @ 0x100355e98\n; > SetupPulsePopup::updateTextInputLabel @ 0x1003b68d8\n; > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003b69cc\n; > SetupPulsePopup::colorSelectClosed @ 0x1003b7064\n; > SetupPulsePopup::colorSelectClosed @ 0x1003b70fc\n; > SecretLayer::updateSearchLabel @ 0x1003bdcc4\n; > SecretLayer::textInputOpened @ 0x1003bf348\n; > ColorSelectPopup::updateTextInputLabel @ 0x10041f15c\n; > ColorSelectPopup::updateCopyColorTextInputLabel @ 0x10041f3dc\n; > ColorSelectPopup::colorSelectClosed @ 0x1004209b0\n; > ColorSelectPopup::colorSelectClosed @ 0x100420a50\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, #0x80                                          ; +0x0, 0x10016cc18\nSTP             X22, X21, [SP,#0x70+var_20]                            ; +0x4, 0x10016cc1c\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0x8, 0x10016cc20\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0xc, 0x10016cc24\nADD             X29, SP, #0x70                                         ; +0x10, 0x10016cc28\nMOV             X20, X1                                                ; +0x14, 0x10016cc2c\nMOV             X19, X0                                                ; +0x18, 0x10016cc30\nLDR             X8, [X0,#0x230]                                        ; +0x1c, 0x10016cc34\nCBZ             X8, loc_10016CC48                                      ; +0x20, 0x10016cc38\nLDR             W9, [X19,#0x250]                                       ; +0x24, 0x10016cc3c\nSTR             W9, [X8,#0x200]                                        ; +0x28, 0x10016cc40\nB               loc_10016CC50                                          ; +0x2c, 0x10016cc44\nLDR             X8, [X19,#0x240]                                       ; +0x30, 0x10016cc48\nCBZ             X8, loc_10016CDB8                                      ; +0x34, 0x10016cc4c\nADRL            X1, asc_100746688; \"\"                                  ; +0x38, 0x10016cc50\nADD             X0, SP, #0x70+__p; int                                 ; +0x40, 0x10016cc58\nBL              sub_100009900                                          ; +0x44, 0x10016cc5c\nADD             X1, SP, #0x70+__p                                      ; +0x48, 0x10016cc60\nMOV             X0, X20                                                ; +0x4c, 0x10016cc64\nBL              sub_1000045BC                                          ; +0x50, 0x10016cc68\nMOV             X21, X0                                                ; +0x54, 0x10016cc6c\nLDRSB           W8, [SP,#0x70+var_21]                                  ; +0x58, 0x10016cc70\nTBNZ            W8, #0x1F, loc_10016CC98                               ; +0x5c, 0x10016cc74\nCBZ             W21, loc_10016CCA4                                     ; +0x60, 0x10016cc78\nADD             X1, X19, #0x1B0                                        ; +0x64, 0x10016cc7c\nLDRSB           W8, [X19,#0x1C7]                                       ; +0x68, 0x10016cc80\nTBZ             W8, #0x1F, loc_10016CC8C                               ; +0x6c, 0x10016cc84\nLDR             X1, [X1]; __s                                          ; +0x70, 0x10016cc88\nMOV             X0, X20; this                                          ; +0x74, 0x10016cc8c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x78, 0x10016cc90\nB               loc_10016CD10                                          ; +0x7c, 0x10016cc94\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0x80, 0x10016cc98\nBL              __ZdlPv; operator delete(void *)                       ; +0x84, 0x10016cc9c\nCBNZ            W21, loc_10016CC7C                                     ; +0x88, 0x10016cca0\nLDRB            W8, [X19,#0x239]                                       ; +0x8c, 0x10016cca4\nCMP             W8, #1                                                 ; +0x90, 0x10016cca8\nB.NE            loc_10016CD10                                          ; +0x94, 0x10016ccac\nADRL            X1, asc_100746688; \"\"                                  ; +0x98, 0x10016ccb0\nADD             X0, SP, #0x70+__p; int                                 ; +0xa0, 0x10016ccb8\nBL              sub_100009900                                          ; +0xa4, 0x10016ccbc\nMOV             X22, #0                                                ; +0xa8, 0x10016ccc0\nADRL            X21, asc_1006B1717; \"\u2022\"                                ; +0xac, 0x10016ccc4\nLDRSB           X8, [X20,#0x17]                                        ; +0xb4, 0x10016cccc\nTBZ             X8, #0x3F, loc_10016CCD8 ; '?'                         ; +0xb8, 0x10016ccd0\nLDR             X8, [X20,#8]                                           ; +0xbc, 0x10016ccd4\nCMP             X8, X22                                                ; +0xc0, 0x10016ccd8\nB.LS            loc_10016CCF4                                          ; +0xc4, 0x10016ccdc\nADD             X0, SP, #0x70+__p; this                                ; +0xc8, 0x10016cce0\nMOV             X1, X21; __s                                           ; +0xcc, 0x10016cce4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xd0, 0x10016cce8\nADD             X22, X22, #1                                           ; +0xd4, 0x10016ccec\nB               loc_10016CCCC                                          ; +0xd8, 0x10016ccf0\nADD             X1, SP, #0x70+__p; __str                               ; +0xdc, 0x10016ccf4\nMOV             X0, X20; this                                          ; +0xe0, 0x10016ccf8\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xe4, 0x10016ccfc\nLDRSB           W8, [SP,#0x70+var_21]                                  ; +0xe8, 0x10016cd00\nTBZ             W8, #0x1F, loc_10016CD10                               ; +0xec, 0x10016cd04\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0xf0, 0x10016cd08\nBL              __ZdlPv; operator delete(void *)                       ; +0xf4, 0x10016cd0c\nLDR             X0, [X19,#0x230]                                       ; +0xf8, 0x10016cd10\nCBZ             X0, loc_10016CDCC                                      ; +0xfc, 0x10016cd14\nLDRSB           W8, [X20,#0x17]                                        ; +0x100, 0x10016cd18\nTBZ             W8, #0x1F, loc_10016CD24                               ; +0x104, 0x10016cd1c\nLDR             X20, [X20]                                             ; +0x108, 0x10016cd20\nLDR             X8, [X0]                                               ; +0x10c, 0x10016cd24\nLDR             X8, [X8,#0x390]                                        ; +0x110, 0x10016cd28\nMOV             X1, X20                                                ; +0x114, 0x10016cd2c\nBLR             X8                                                     ; +0x118, 0x10016cd30\nMOV             X0, X19                                                ; +0x11c, 0x10016cd34\nBL              CCTextInputNode__refreshLabel                          ; +0x120, 0x10016cd38\nLDR             X0, [X19,#0x218]                                       ; +0x124, 0x10016cd3c\nLDR             X8, [X0]                                               ; +0x128, 0x10016cd40\nLDR             X8, [X8,#0x4D0]                                        ; +0x12c, 0x10016cd44\nBLR             X8                                                     ; +0x130, 0x10016cd48\nMOV             X1, X0; __s                                            ; +0x134, 0x10016cd4c\nADD             X0, SP, #0x70+__p; int                                 ; +0x138, 0x10016cd50\nBL              sub_100009900                                          ; +0x13c, 0x10016cd54\nADRL            X1, asc_100746688; \"\"                                  ; +0x140, 0x10016cd58\nADD             X0, SP, #0x70+var_68; int                              ; +0x148, 0x10016cd60\nBL              sub_100009900                                          ; +0x14c, 0x10016cd64\nADD             X0, SP, #0x70+__p                                      ; +0x150, 0x10016cd68\nADD             X1, SP, #0x70+var_68                                   ; +0x154, 0x10016cd6c\nBL              sub_1000045BC                                          ; +0x158, 0x10016cd70\nMOV             X20, X0                                                ; +0x15c, 0x10016cd74\nLDRSB           W8, [SP,#0x70+var_51]                                  ; +0x160, 0x10016cd78\nTBZ             W8, #0x1F, loc_10016CD88                               ; +0x164, 0x10016cd7c\nLDR             X0, [SP,#0x70+var_68]; __p                             ; +0x168, 0x10016cd80\nBL              __ZdlPv; operator delete(void *)                       ; +0x16c, 0x10016cd84\nLDRSB           W8, [SP,#0x70+var_21]                                  ; +0x170, 0x10016cd88\nTBZ             W8, #0x1F, loc_10016CD98                               ; +0x174, 0x10016cd8c\nLDR             X0, [SP,#0x70+__p]; __p                                ; +0x178, 0x10016cd90\nBL              __ZdlPv; operator delete(void *)                       ; +0x17c, 0x10016cd94\nLDR             X8, [X19,#0x218]                                       ; +0x180, 0x10016cd98\nTBZ             W20, #0, loc_10016CDAC                                 ; +0x184, 0x10016cd9c\nMOV             W1, #0xFFFFFFFF                                        ; +0x188, 0x10016cda0\nSTR             W1, [X8,#0x2F0]                                        ; +0x18c, 0x10016cda4\nB               loc_10016CDB0                                          ; +0x190, 0x10016cda8\nLDR             W1, [X8,#0x2F0]                                        ; +0x194, 0x10016cdac\nMOV             X0, X19                                                ; +0x198, 0x10016cdb0\nBL              CCTextInputNode__updateBlinkLabelToChar                ; +0x19c, 0x10016cdb4\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x1a0, 0x10016cdb8\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x1a4, 0x10016cdbc\nLDP             X22, X21, [SP,#0x70+var_20]                            ; +0x1a8, 0x10016cdc0\nADD             SP, SP, #0x80                                          ; +0x1ac, 0x10016cdc4\nRET                                                                    ; +0x1b0, 0x10016cdc8\nLDR             X21, [X19,#0x240]                                      ; +0x1b4, 0x10016cdcc\nCBZ             X21, loc_10016CD34                                     ; +0x1b8, 0x10016cdd0\nLDRSB           W8, [X20,#0x17]                                        ; +0x1bc, 0x10016cdd4\nTBZ             W8, #0x1F, loc_10016CDE0                               ; +0x1c0, 0x10016cdd8\nLDR             X20, [X20]                                             ; +0x1c4, 0x10016cddc\nADD             X0, SP, #0x70+var_50; int                              ; +0x1c8, 0x10016cde0\nMOV             X1, X20; __s                                           ; +0x1cc, 0x10016cde4\nBL              sub_100009900                                          ; +0x1d0, 0x10016cde8\nADD             X1, SP, #0x70+var_50                                   ; +0x1d4, 0x10016cdec\nMOV             X0, X21                                                ; +0x1d8, 0x10016cdf0\nBL              TextArea__setString                                    ; +0x1dc, 0x10016cdf4\nLDRSB           W8, [SP,#0x70+var_39]                                  ; +0x1e0, 0x10016cdf8\nTBZ             W8, #0x1F, loc_10016CD34                               ; +0x1e4, 0x10016cdfc\nLDR             X0, [SP,#0x70+var_50]; __p                             ; +0x1e8, 0x10016ce00\nBL              __ZdlPv; operator delete(void *)                       ; +0x1ec, 0x10016ce04\nB               loc_10016CD34                                          ; +0x1f0, 0x10016ce08", "xrefs": ["CustomizeObjectLayer::textInputOpened @ 0x100050a9c", "LevelSearchLayer::updateSearchLabel @ 0x1000533e0", "LevelSearchLayer::textInputOpened @ 0x100054ab8", "SetupSmartTemplateLayer::textInputOpened @ 0x1000712ec", "SecretLayer5::updateSearchLabel @ 0x100074d94", "SecretLayer5::onSubmit @ 0x100074f78", "SecretLayer5::textInputOpened @ 0x100076e1c", "EditLevelLayer::textInputClosed @ 0x1000eb96c", "EditLevelLayer::textInputOpened @ 0x1000ebb30", "CCTextInputNode::addTextArea @ 0x10016cb70", "CCTextInputNode::setString @ 0x10016cf0c", "CCTextInputNode::textChanged @ 0x10016d740", "CCTextInputNode::onTextFieldDetachWithIME @ 0x10016e1d4", "LevelListLayer::textInputClosed @ 0x1002472b0", "LevelListLayer::textInputOpened @ 0x1002473ec", "SetColorIDPopup::init @ 0x1002dea78", "SetColorIDPopup::colorSelectClosed @ 0x1002debd8", "GJGarageLayer::textInputOpened @ 0x100304798", "SecretLayer2::updateSearchLabel @ 0x10030a624", "SecretLayer2::textInputOpened @ 0x10030d148", "SecretLayer4::updateSearchLabel @ 0x100354d64", "SecretLayer4::textInputOpened @ 0x100355e98", "SetupPulsePopup::updateTextInputLabel @ 0x1003b68d8", "SetupPulsePopup::updateCopyColorTextInputLabel @ 0x1003b69cc", "SetupPulsePopup::colorSelectClosed @ 0x1003b7064", "SetupPulsePopup::colorSelectClosed @ 0x1003b70fc", "SecretLayer::updateSearchLabel @ 0x1003bdcc4", "SecretLayer::textInputOpened @ 0x1003bf348", "ColorSelectPopup::updateTextInputLabel @ 0x10041f15c", "ColorSelectPopup::updateCopyColorTextInputLabel @ 0x10041f3dc", "ColorSelectPopup::colorSelectClosed @ 0x1004209b0", "ColorSelectPopup::colorSelectClosed @ 0x100420a50"], "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"}