{"type": "func", "start": 9569752, "end": 9570060, "name": "GJFollowCommandLayer::updateTextInputLabel", "pseudocode": "// \n// GJFollowCommandLayer::updateTextInputLabel from 0x9205d8 to 0x92070c (308 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::init @ 0x921674\n// > GJFollowCommandLayer::onUpdateGroupID @ 0x921d74\n// > <???> @ 0x4c9b0\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 GJFollowCommandLayer::updateTextInputLabel(GJFollowCommandLayer *a1)\n{\n  const char *m_targetGroupID; // x1\n  cocos2d::CCString *v3; // x0\n  char *CString; // x1\n  CCTextInputNode *m_targetIDInput; // 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_targetGroupID = (const char *)(unsigned int)a1->m_targetGroupID;\n  a1->m_disableTextDelegate = 1;\n  if ( (_DWORD)m_targetGroupID == -99999 )\n  {\n    CString = &byte_F288A0;\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", m_targetGroupID);\n    CString = (char *)cocos2d::CCString::getCString(v3);\n  }\n  m_targetIDInput = a1->m_targetIDInput;\n  sub_D153B8((int)&v9, CString);\n  CCTextInputNode::setString(m_targetIDInput, &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_disableTextDelegate = 0;\n}", "assembly": "; \n; GJFollowCommandLayer::updateTextInputLabel from 0x9205d8 to 0x92070c (308 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::init @ 0x921674\n; > GJFollowCommandLayer::onUpdateGroupID @ 0x921d74\n; > <???> @ 0x4c9b0\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, 0x9205d8\nMOV             W3, #1                                                 ; +0x4, 0x9205dc\nMOV             X29, SP                                                ; +0x8, 0x9205e0\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x9205e4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x9205e8\nMOV             X20, X0                                                ; +0x14, 0x9205ec\nMOV             W0, #0x7961                                            ; +0x18, 0x9205f0\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x1c, 0x9205f4\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x9205f8\nMOVK            W0, #0xFFFE,LSL#16                                     ; +0x24, 0x9205fc\nLDR             W1, [X20,#0x410]; char *                               ; +0x28, 0x920600\nSTRB            W3, [X20,#0x2CC]                                       ; +0x2c, 0x920604\nLDR             X2, [X2]                                               ; +0x30, 0x920608\nCMP             W1, W0                                                 ; +0x34, 0x92060c\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x38, 0x920610\nB.EQ            loc_92068C                                             ; +0x3c, 0x920614\nADRL            X0, (aSongidI+8); this                                 ; +0x40, 0x920618\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x920620\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0x920624\nMOV             X1, X0; char *                                         ; +0x50, 0x920628\nADD             X21, X29, #0x50+var_10                                 ; +0x54, 0x92062c\nADD             X2, X29, #0x50+var_20                                  ; +0x58, 0x920630\nMOV             X0, X21; int                                           ; +0x5c, 0x920634\nLDR             X22, [X20,#0x408]                                      ; +0x60, 0x920638\nBL              sub_D153B8                                             ; +0x64, 0x92063c\nMOV             X0, X22                                                ; +0x68, 0x920640\nMOV             X1, X21                                                ; +0x6c, 0x920644\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x70, 0x920648\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x74, 0x92064c\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x78, 0x920650\nSUB             X0, X2, #0x18; p                                       ; +0x7c, 0x920654\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x80, 0x920658\nCMP             X0, X1                                                 ; +0x84, 0x92065c\nB.NE            loc_920698                                             ; +0x88, 0x920660\nSTRB            WZR, [X20,#0x2CC]                                      ; +0x8c, 0x920664\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x90, 0x920668\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x94, 0x92066c\nLDR             X0, [X19]                                              ; +0x98, 0x920670\nCMP             X1, X0                                                 ; +0x9c, 0x920674\nB.NE            loc_9206DC                                             ; +0xa0, 0x920678\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa4, 0x92067c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa8, 0x920680\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xac, 0x920684\nRET                                                                    ; +0xb0, 0x920688\nADRL            X1, byte_F288A0                                        ; +0xb4, 0x92068c\nB               loc_92062C                                             ; +0xbc, 0x920694\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc0, 0x920698\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc4, 0x92069c\nCBZ             X1, loc_9206CC                                         ; +0xc8, 0x9206a0\nSUB             X2, X2, #8                                             ; +0xcc, 0x9206a4\nLDAXR           W1, [X2]                                               ; +0xd0, 0x9206a8\nSUB             W3, W1, #1                                             ; +0xd4, 0x9206ac\nSTLXR           W4, W3, [X2]                                           ; +0xd8, 0x9206b0\nCBNZ            W4, loc_9206A8                                         ; +0xdc, 0x9206b4\nCMP             W1, WZR                                                ; +0xe0, 0x9206b8\nB.GT            loc_920664                                             ; +0xe4, 0x9206bc\nADD             X1, X29, #0x50+var_18                                  ; +0xe8, 0x9206c0\nBL              j__ZdlPv; operator delete(void *)                      ; +0xec, 0x9206c4\nB               loc_920664                                             ; +0xf0, 0x9206c8\nLDUR            W1, [X2,#-8]                                           ; +0xf4, 0x9206cc\nSUB             W3, W1, #1                                             ; +0xf8, 0x9206d0\nSTUR            W3, [X2,#-8]                                           ; +0xfc, 0x9206d4\nB               loc_9206B8                                             ; +0x100, 0x9206d8\nBL              .__stack_chk_fail                                      ; +0x104, 0x9206dc\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x9206e0\nMOV             X19, X0                                                ; +0x10c, 0x9206e4\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x9206e8\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x9206ec\nSUB             X0, X0, #0x18                                          ; +0x118, 0x9206f0\nCMP             X0, X1                                                 ; +0x11c, 0x9206f4\nB.EQ            loc_920704                                             ; +0x120, 0x9206f8\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x9206fc\nBL              sub_4DCB60                                             ; +0x128, 0x920700\nMOV             X0, X19                                                ; +0x12c, 0x920704\nBL              _Unwind_Resume                                         ; +0x130, 0x920708", "xrefs": ["GJFollowCommandLayer::init @ 0x921674", "GJFollowCommandLayer::onUpdateGroupID @ 0x921d74", "<???> @ 0x4c9b0"], "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"}