{"type": "func", "start": 9580280, "end": 9580588, "name": "GJPFollowCommandLayer::updateTextInputLabel", "pseudocode": "// \n// GJPFollowCommandLayer::updateTextInputLabel from 0x922ef8 to 0x92302c (308 bytes)\n// \n// 3 xrefs:\n// > GJPFollowCommandLayer::init @ 0x924308\n// > GJPFollowCommandLayer::onUpdateGroupID @ 0x924a7c\n// > <???> @ 0x9dd40\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 GJPFollowCommandLayer::updateTextInputLabel(GJPFollowCommandLayer *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; GJPFollowCommandLayer::updateTextInputLabel from 0x922ef8 to 0x92302c (308 bytes)\n; \n; 3 xrefs:\n; > GJPFollowCommandLayer::init @ 0x924308\n; > GJPFollowCommandLayer::onUpdateGroupID @ 0x924a7c\n; > <???> @ 0x9dd40\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, 0x922ef8\nMOV             W3, #1                                                 ; +0x4, 0x922efc\nMOV             X29, SP                                                ; +0x8, 0x922f00\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x922f04\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x922f08\nMOV             X20, X0                                                ; +0x14, 0x922f0c\nMOV             W0, #0x7961                                            ; +0x18, 0x922f10\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x1c, 0x922f14\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x922f18\nMOVK            W0, #0xFFFE,LSL#16                                     ; +0x24, 0x922f1c\nLDR             W1, [X20,#0x428]; char *                               ; +0x28, 0x922f20\nSTRB            W3, [X20,#0x2CC]                                       ; +0x2c, 0x922f24\nLDR             X2, [X2]                                               ; +0x30, 0x922f28\nCMP             W1, W0                                                 ; +0x34, 0x922f2c\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x38, 0x922f30\nB.EQ            loc_922FAC                                             ; +0x3c, 0x922f34\nADRL            X0, (aSongidI+8); this                                 ; +0x40, 0x922f38\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x922f40\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0x922f44\nMOV             X1, X0; char *                                         ; +0x50, 0x922f48\nADD             X21, X29, #0x50+var_10                                 ; +0x54, 0x922f4c\nADD             X2, X29, #0x50+var_20                                  ; +0x58, 0x922f50\nMOV             X0, X21; int                                           ; +0x5c, 0x922f54\nLDR             X22, [X20,#0x420]                                      ; +0x60, 0x922f58\nBL              sub_D153B8                                             ; +0x64, 0x922f5c\nMOV             X0, X22                                                ; +0x68, 0x922f60\nMOV             X1, X21                                                ; +0x6c, 0x922f64\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x70, 0x922f68\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x74, 0x922f6c\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x78, 0x922f70\nSUB             X0, X2, #0x18; p                                       ; +0x7c, 0x922f74\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x80, 0x922f78\nCMP             X0, X1                                                 ; +0x84, 0x922f7c\nB.NE            loc_922FB8                                             ; +0x88, 0x922f80\nSTRB            WZR, [X20,#0x2CC]                                      ; +0x8c, 0x922f84\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x90, 0x922f88\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x94, 0x922f8c\nLDR             X0, [X19]                                              ; +0x98, 0x922f90\nCMP             X1, X0                                                 ; +0x9c, 0x922f94\nB.NE            loc_922FFC                                             ; +0xa0, 0x922f98\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa4, 0x922f9c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa8, 0x922fa0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xac, 0x922fa4\nRET                                                                    ; +0xb0, 0x922fa8\nADRL            X1, byte_F288A0                                        ; +0xb4, 0x922fac\nB               loc_922F4C                                             ; +0xbc, 0x922fb4\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc0, 0x922fb8\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc4, 0x922fbc\nCBZ             X1, loc_922FEC                                         ; +0xc8, 0x922fc0\nSUB             X2, X2, #8                                             ; +0xcc, 0x922fc4\nLDAXR           W1, [X2]                                               ; +0xd0, 0x922fc8\nSUB             W3, W1, #1                                             ; +0xd4, 0x922fcc\nSTLXR           W4, W3, [X2]                                           ; +0xd8, 0x922fd0\nCBNZ            W4, loc_922FC8                                         ; +0xdc, 0x922fd4\nCMP             W1, WZR                                                ; +0xe0, 0x922fd8\nB.GT            loc_922F84                                             ; +0xe4, 0x922fdc\nADD             X1, X29, #0x50+var_18                                  ; +0xe8, 0x922fe0\nBL              j__ZdlPv; operator delete(void *)                      ; +0xec, 0x922fe4\nB               loc_922F84                                             ; +0xf0, 0x922fe8\nLDUR            W1, [X2,#-8]                                           ; +0xf4, 0x922fec\nSUB             W3, W1, #1                                             ; +0xf8, 0x922ff0\nSTUR            W3, [X2,#-8]                                           ; +0xfc, 0x922ff4\nB               loc_922FD8                                             ; +0x100, 0x922ff8\nBL              .__stack_chk_fail                                      ; +0x104, 0x922ffc\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x923000\nMOV             X19, X0                                                ; +0x10c, 0x923004\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x923008\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x92300c\nSUB             X0, X0, #0x18                                          ; +0x118, 0x923010\nCMP             X0, X1                                                 ; +0x11c, 0x923014\nB.EQ            loc_923024                                             ; +0x120, 0x923018\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x92301c\nBL              sub_4DCBA0                                             ; +0x128, 0x923020\nMOV             X0, X19                                                ; +0x12c, 0x923024\nBL              _Unwind_Resume                                         ; +0x130, 0x923028", "xrefs": ["GJPFollowCommandLayer::init @ 0x924308", "GJPFollowCommandLayer::onUpdateGroupID @ 0x924a7c", "<???> @ 0x9dd40"], "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"}