{"type": "func", "start": 9488716, "end": 9489196, "name": "ConfigureValuePopup::updateTextInputLabel", "pseudocode": "// \n// ConfigureValuePopup::updateTextInputLabel from 0x90c94c to 0x90cb2c (480 bytes)\n// \n// 5 xrefs:\n// > ConfigureValuePopup::init @ 0x90d0b0\n// > ConfigureValuePopup::sliderChanged @ 0x90d914\n// > ConfigureValuePopup::onArrow @ 0x90d98c\n// > ConfigureValuePopup::onArrow @ 0x90d9ac\n// > <???> @ 0x40758\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 ConfigureValuePopup::updateTextInputLabel(ConfigureValuePopup *a1)\n{\n  int m_type; // w2\n  float m_value; // s0\n  cocos2d::CCString *v4; // x0\n  size_t v5; // x0\n  CCTextInputNode *m_input; // x23\n  unsigned __int8 *v7; // x0\n  char *v8; // x0\n  unsigned int *v9; // x1\n  int v10; // w2\n  unsigned int *v11; // x1\n  int v12; // w2\n  const char *CString; // [xsp+48h] [xbp+48h]\n  char *v14; // [xsp+58h] [xbp+58h] BYREF\n  const unsigned __int8 *v15; // [xsp+60h] [xbp+60h] BYREF\n\n  a1->m_disableTextDelegate = 1;\n  m_type = a1->m_type;\n  v14 = &byte_124B6C8;\n  m_value = a1->m_value;\n  if ( m_type == 1 )\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"%i\",\n                                (const char *)(unsigned int)(int)m_value);\n  else\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"%.02f\",\n                                _stack_chk_guard,\n                                m_value);\n  CString = cocos2d::CCString::getCString(v4);\n  v5 = strlen(CString);\n  sub_D1798C(&v14, CString, v5);\n  m_input = a1->m_input;\n  sub_D18D28(&v15);\n  CCTextInputNode::setString(m_input, &v15);\n  v7 = (unsigned __int8 *)(v15 - 24);\n  if ( v15 - 24 != (const unsigned __int8 *)&qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v11 = (unsigned int *)(v15 - 8);\n      do\n        v12 = __ldaxr(v11);\n      while ( __stlxr(v12 - 1, v11) );\n    }\n    else\n    {\n      v12 = *((_DWORD *)v15 - 2);\n      *((_DWORD *)v15 - 2) = v12 - 1;\n    }\n    if ( v12 <= 0 )\n      operator delete(v7);\n  }\n  a1->m_disableTextDelegate = 0;\n  v8 = v14 - 24;\n  if ( v14 - 24 != (char *)&qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v9 = (unsigned int *)(v14 - 8);\n      do\n        v10 = __ldaxr(v9);\n      while ( __stlxr(v10 - 1, v9) );\n    }\n    else\n    {\n      v10 = *((_DWORD *)v14 - 2);\n      *((_DWORD *)v14 - 2) = v10 - 1;\n    }\n    if ( v10 <= 0 )\n      operator delete(v8);\n  }\n}", "assembly": "; \n; ConfigureValuePopup::updateTextInputLabel from 0x90c94c to 0x90cb2c (480 bytes)\n; \n; 5 xrefs:\n; > ConfigureValuePopup::init @ 0x90d0b0\n; > ConfigureValuePopup::sliderChanged @ 0x90d914\n; > ConfigureValuePopup::onArrow @ 0x90d98c\n; > ConfigureValuePopup::onArrow @ 0x90d9ac\n; > <???> @ 0x40758\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\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x90c94c\nMOV             X29, SP                                                ; +0x4, 0x90c950\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x90c954\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0xc, 0x90c958\nMOV             X20, X0                                                ; +0x10, 0x90c95c\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x90c960\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x18, 0x90c964\nADRP            X19, #off_122EFE8@PAGE                                 ; +0x1c, 0x90c968\nMOV             W0, #1                                                 ; +0x20, 0x90c96c\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x90c970\nSTRB            W0, [X20,#0x291]                                       ; +0x28, 0x90c974\nLDR             W2, [X20,#0x280]                                       ; +0x2c, 0x90c978\nLDR             X0, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0x30, 0x90c97c\nLDR             X1, [X1]; char *                                       ; +0x34, 0x90c980\nCMP             W2, #1                                                 ; +0x38, 0x90c984\nADD             X0, X0, #0x18                                          ; +0x3c, 0x90c988\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x40, 0x90c98c\nSTR             X0, [X29,#0x70+var_18]                                 ; +0x44, 0x90c990\nLDR             S0, [X20,#0x284]                                       ; +0x48, 0x90c994\nB.EQ            loc_90CA40                                             ; +0x4c, 0x90c998\nFCVT            D0, S0                                                 ; +0x50, 0x90c99c\nADRL            X0, (aScaley02f+8); this                               ; +0x54, 0x90c9a0\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x5c, 0x90c9a8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x60, 0x90c9ac\nSTR             X0, [X29,#0x70+var_28]                                 ; +0x64, 0x90c9b0\nBL              .strlen                                                ; +0x68, 0x90c9b4\nADD             X23, X29, #0x70+var_18                                 ; +0x6c, 0x90c9b8\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x70, 0x90c9bc\nMOV             X2, X0                                                 ; +0x74, 0x90c9c0\nMOV             X0, X23                                                ; +0x78, 0x90c9c4\nBL              sub_D1798C                                             ; +0x7c, 0x90c9c8\nADD             X22, X29, #0x70+var_10                                 ; +0x80, 0x90c9cc\nMOV             X1, X23                                                ; +0x84, 0x90c9d0\nMOV             X0, X22                                                ; +0x88, 0x90c9d4\nLDR             X23, [X20,#0x2A0]                                      ; +0x8c, 0x90c9d8\nBL              sub_D18D28                                             ; +0x90, 0x90c9dc\nMOV             X0, X23                                                ; +0x94, 0x90c9e0\nMOV             X1, X22                                                ; +0x98, 0x90c9e4\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x9c, 0x90c9e8\nLDR             X1, [X29,#0x70+var_10]                                 ; +0xa0, 0x90c9ec\nLDR             X2, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0          ; +0xa4, 0x90c9f0\nSUB             X0, X1, #0x18; p                                       ; +0xa8, 0x90c9f4\nCMP             X0, X2                                                 ; +0xac, 0x90c9f8\nB.NE            loc_90CA88                                             ; +0xb0, 0x90c9fc\nSTRB            WZR, [X20,#0x291]                                      ; +0xb4, 0x90ca00\nLDR             X1, [X29,#0x70+var_18]                                 ; +0xb8, 0x90ca04\nLDR             X19, [X19,#off_122EFE8@PAGEOFF]; qword_124B6B0         ; +0xbc, 0x90ca08\nSUB             X0, X1, #0x18; p                                       ; +0xc0, 0x90ca0c\nCMP             X0, X19                                                ; +0xc4, 0x90ca10\nB.NE            loc_90CA54                                             ; +0xc8, 0x90ca14\nLDR             X0, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xcc, 0x90ca18\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xd0, 0x90ca1c\nLDR             X0, [X0]                                               ; +0xd4, 0x90ca20\nCMP             X1, X0                                                 ; +0xd8, 0x90ca24\nB.NE            loc_90CADC                                             ; +0xdc, 0x90ca28\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xe0, 0x90ca2c\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xe4, 0x90ca30\nLDR             X23, [SP,#0x70+var_40]                                 ; +0xe8, 0x90ca34\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xec, 0x90ca38\nRET                                                                    ; +0xf0, 0x90ca3c\nFCVTZS          W1, S0; char *                                         ; +0xf4, 0x90ca40\nADRL            X0, (aSongidI+8); this                                 ; +0xf8, 0x90ca44\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x100, 0x90ca4c\nB               loc_90C9AC                                             ; +0x104, 0x90ca50\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x108, 0x90ca54\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x10c, 0x90ca58\nCBZ             X2, loc_90CACC                                         ; +0x110, 0x90ca5c\nSUB             X1, X1, #8                                             ; +0x114, 0x90ca60\nLDAXR           W2, [X1]                                               ; +0x118, 0x90ca64\nSUB             W3, W2, #1                                             ; +0x11c, 0x90ca68\nSTLXR           W4, W3, [X1]                                           ; +0x120, 0x90ca6c\nCBNZ            W4, loc_90CA64                                         ; +0x124, 0x90ca70\nCMP             W2, WZR                                                ; +0x128, 0x90ca74\nB.GT            loc_90CA18                                             ; +0x12c, 0x90ca78\nMOV             X1, X22                                                ; +0x130, 0x90ca7c\nBL              j__ZdlPv; operator delete(void *)                      ; +0x134, 0x90ca80\nB               loc_90CA18                                             ; +0x138, 0x90ca84\nADRP            X2, #pthread_create_ptr_0@PAGE                         ; +0x13c, 0x90ca88\nLDR             X2, [X2,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0x140, 0x90ca8c\nCBZ             X2, loc_90CABC                                         ; +0x144, 0x90ca90\nSUB             X1, X1, #8                                             ; +0x148, 0x90ca94\nLDAXR           W2, [X1]                                               ; +0x14c, 0x90ca98\nSUB             W3, W2, #1                                             ; +0x150, 0x90ca9c\nSTLXR           W4, W3, [X1]                                           ; +0x154, 0x90caa0\nCBNZ            W4, loc_90CA98                                         ; +0x158, 0x90caa4\nCMP             W2, WZR                                                ; +0x15c, 0x90caa8\nB.GT            loc_90CA00                                             ; +0x160, 0x90caac\nADD             X1, X29, #0x70+var_20                                  ; +0x164, 0x90cab0\nBL              j__ZdlPv; operator delete(void *)                      ; +0x168, 0x90cab4\nB               loc_90CA00                                             ; +0x16c, 0x90cab8\nLDUR            W2, [X1,#-8]                                           ; +0x170, 0x90cabc\nSUB             W3, W2, #1                                             ; +0x174, 0x90cac0\nSTUR            W3, [X1,#-8]                                           ; +0x178, 0x90cac4\nB               loc_90CAA8                                             ; +0x17c, 0x90cac8\nLDUR            W2, [X1,#(dword_124B6C0 - 0x124B6C8)]                  ; +0x180, 0x90cacc\nSUB             W3, W2, #1                                             ; +0x184, 0x90cad0\nSTUR            W3, [X1,#(dword_124B6C0 - 0x124B6C8)]                  ; +0x188, 0x90cad4\nB               loc_90CA74                                             ; +0x18c, 0x90cad8\nBL              .__stack_chk_fail                                      ; +0x190, 0x90cadc\nMOV             X20, X0                                                ; +0x194, 0x90cae0\nLDR             X0, [X29,#0x70+var_10]                                 ; +0x198, 0x90cae4\nLDR             X1, [X19,#0xFE8]                                       ; +0x19c, 0x90cae8\nSUB             X0, X0, #0x18                                          ; +0x1a0, 0x90caec\nCMP             X0, X1                                                 ; +0x1a4, 0x90caf0\nB.EQ            loc_90CB00                                             ; +0x1a8, 0x90caf4\nADD             X1, X29, #0x70+var_20                                  ; +0x1ac, 0x90caf8\nBL              sub_4DCAA0                                             ; +0x1b0, 0x90cafc\nLDR             X0, [X29,#0x70+var_18]                                 ; +0x1b4, 0x90cb00\nLDR             X19, [X19,#0xFE8]                                      ; +0x1b8, 0x90cb04\nSUB             X0, X0, #0x18                                          ; +0x1bc, 0x90cb08\nCMP             X0, X19                                                ; +0x1c0, 0x90cb0c\nB.EQ            loc_90CB1C                                             ; +0x1c4, 0x90cb10\nADD             X1, X29, #0x70+var_20                                  ; +0x1c8, 0x90cb14\nBL              sub_4DCAA0                                             ; +0x1cc, 0x90cb18\nMOV             X0, X20                                                ; +0x1d0, 0x90cb1c\nBL              _Unwind_Resume                                         ; +0x1d4, 0x90cb20\nMOV             X20, X0                                                ; +0x1d8, 0x90cb24\nB               loc_90CB00                                             ; +0x1dc, 0x90cb28", "xrefs": ["ConfigureValuePopup::init @ 0x90d0b0", "ConfigureValuePopup::sliderChanged @ 0x90d914", "ConfigureValuePopup::onArrow @ 0x90d98c", "ConfigureValuePopup::onArrow @ 0x90d9ac", "<???> @ 0x40758"], "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"}