{"type": "func", "start": 9475576, "end": 9475856, "name": "CollisionBlockPopup::updateTextInputLabel", "pseudocode": "// \n// CollisionBlockPopup::updateTextInputLabel from 0x9095f8 to 0x909710 (280 bytes)\n// \n// 4 xrefs:\n// > CollisionBlockPopup::init @ 0x909f6c\n// > CollisionBlockPopup::onItemIDArrow @ 0x90a59c\n// > CollisionBlockPopup::onNextItemID @ 0x90a664\n// > <???> @ 0x8cc70\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 CollisionBlockPopup::updateTextInputLabel(CollisionBlockPopup *a1)\n{\n  const char *m_blockID; // x1\n  cocos2d::CCString *v3; // x0\n  char *CString; // x0\n  CCTextInputNode *m_blockIDInput; // x22\n  unsigned __int8 *v6; // x0\n  unsigned int *v7; // x2\n  int v8; // w1\n  const unsigned __int8 *v9; // [xsp+40h] [xbp+40h] BYREF\n\n  m_blockID = (const char *)(unsigned int)a1->m_blockID;\n  a1->m_disableDelegate = 1;\n  v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", m_blockID);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  m_blockIDInput = a1->m_blockIDInput;\n  sub_D153B8((int)&v9, CString);\n  CCTextInputNode::setString(m_blockIDInput, &v9);\n  v6 = (unsigned __int8 *)(v9 - 24);\n  if ( v9 - 24 != (const unsigned __int8 *)&qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v7 = (unsigned int *)(v9 - 8);\n      do\n        v8 = __ldaxr(v7);\n      while ( __stlxr(v8 - 1, v7) );\n    }\n    else\n    {\n      v8 = *((_DWORD *)v9 - 2);\n      *((_DWORD *)v9 - 2) = v8 - 1;\n    }\n    if ( v8 <= 0 )\n      operator delete(v6);\n  }\n  a1->m_disableDelegate = 0;\n}", "assembly": "; \n; CollisionBlockPopup::updateTextInputLabel from 0x9095f8 to 0x909710 (280 bytes)\n; \n; 4 xrefs:\n; > CollisionBlockPopup::init @ 0x909f6c\n; > CollisionBlockPopup::onItemIDArrow @ 0x90a59c\n; > CollisionBlockPopup::onNextItemID @ 0x90a664\n; > <???> @ 0x8cc70\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_50]!                                ; +0x0, 0x9095f8\nMOV             W3, #1                                                 ; +0x4, 0x9095fc\nMOV             X29, SP                                                ; +0x8, 0x909600\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x909604\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x909608\nMOV             X20, X0                                                ; +0x14, 0x90960c\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x18, 0x909610\nADRP            X0, #(aSongidI+8)@PAGE; \"%i\"                           ; +0x1c, 0x909614\nADD             X21, X29, #0x50+var_10                                 ; +0x20, 0x909618\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x90961c\nADD             X0, X0, #(aSongidI+8)@PAGEOFF; this                    ; +0x28, 0x909620\nLDR             W1, [X20,#0x298]; char *                               ; +0x2c, 0x909624\nSTRB            W3, [X20,#0x29D]                                       ; +0x30, 0x909628\nLDR             X2, [X2]                                               ; +0x34, 0x90962c\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x38, 0x909630\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x3c, 0x909634\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x40, 0x909638\nMOV             X1, X0; char *                                         ; +0x44, 0x90963c\nADD             X2, X29, #0x50+var_20                                  ; +0x48, 0x909640\nMOV             X0, X21; int                                           ; +0x4c, 0x909644\nLDR             X22, [X20,#0x290]                                      ; +0x50, 0x909648\nBL              sub_D153B8                                             ; +0x54, 0x90964c\nMOV             X0, X22                                                ; +0x58, 0x909650\nMOV             X1, X21                                                ; +0x5c, 0x909654\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x60, 0x909658\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x90965c\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x909660\nSUB             X0, X2, #0x18; p                                       ; +0x6c, 0x909664\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x70, 0x909668\nCMP             X0, X1                                                 ; +0x74, 0x90966c\nB.NE            loc_90969C                                             ; +0x78, 0x909670\nSTRB            WZR, [X20,#0x29D]                                      ; +0x7c, 0x909674\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x80, 0x909678\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x90967c\nLDR             X0, [X19]                                              ; +0x88, 0x909680\nCMP             X1, X0                                                 ; +0x8c, 0x909684\nB.NE            loc_9096E0                                             ; +0x90, 0x909688\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0x90968c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x98, 0x909690\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0x909694\nRET                                                                    ; +0xa0, 0x909698\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xa4, 0x90969c\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xa8, 0x9096a0\nCBZ             X1, loc_9096D0                                         ; +0xac, 0x9096a4\nSUB             X2, X2, #8                                             ; +0xb0, 0x9096a8\nLDAXR           W1, [X2]                                               ; +0xb4, 0x9096ac\nSUB             W3, W1, #1                                             ; +0xb8, 0x9096b0\nSTLXR           W4, W3, [X2]                                           ; +0xbc, 0x9096b4\nCBNZ            W4, loc_9096AC                                         ; +0xc0, 0x9096b8\nCMP             W1, WZR                                                ; +0xc4, 0x9096bc\nB.GT            loc_909674                                             ; +0xc8, 0x9096c0\nADD             X1, X29, #0x50+var_18                                  ; +0xcc, 0x9096c4\nBL              j__ZdlPv; operator delete(void *)                      ; +0xd0, 0x9096c8\nB               loc_909674                                             ; +0xd4, 0x9096cc\nLDUR            W1, [X2,#-8]                                           ; +0xd8, 0x9096d0\nSUB             W3, W1, #1                                             ; +0xdc, 0x9096d4\nSTUR            W3, [X2,#-8]                                           ; +0xe0, 0x9096d8\nB               loc_9096BC                                             ; +0xe4, 0x9096dc\nBL              .__stack_chk_fail                                      ; +0xe8, 0x9096e0\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xec, 0x9096e4\nMOV             X19, X0                                                ; +0xf0, 0x9096e8\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xf4, 0x9096ec\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xf8, 0x9096f0\nSUB             X0, X0, #0x18                                          ; +0xfc, 0x9096f4\nCMP             X0, X1                                                 ; +0x100, 0x9096f8\nB.EQ            loc_909708                                             ; +0x104, 0x9096fc\nADD             X1, X29, #0x50+var_18                                  ; +0x108, 0x909700\nBL              sub_4DCA60                                             ; +0x10c, 0x909704\nMOV             X0, X19                                                ; +0x110, 0x909708\nBL              _Unwind_Resume                                         ; +0x114, 0x90970c", "xrefs": ["CollisionBlockPopup::init @ 0x909f6c", "CollisionBlockPopup::onItemIDArrow @ 0x90a59c", "CollisionBlockPopup::onNextItemID @ 0x90a664", "<???> @ 0x8cc70"], "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"}