{"type": "func", "start": 9570060, "end": 9570368, "name": "GJFollowCommandLayer::updateTextInputLabel2", "pseudocode": "// \n// GJFollowCommandLayer::updateTextInputLabel2 from 0x92070c to 0x920840 (308 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::init @ 0x92167c\n// > GJFollowCommandLayer::onUpdateGroupID2 @ 0x921e5c\n// > <???> @ 0x5fb98\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::updateTextInputLabel2(GJFollowCommandLayer *a1)\n{\n  const char *m_followGroupID; // x1\n  cocos2d::CCString *v3; // x0\n  char *CString; // x1\n  CCTextInputNode *m_followIDInput; // 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_followGroupID = (const char *)(unsigned int)a1->m_followGroupID;\n  a1->m_disableTextDelegate = 1;\n  if ( (_DWORD)m_followGroupID == -99999 )\n  {\n    CString = &byte_F288A0;\n  }\n  else\n  {\n    v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", m_followGroupID);\n    CString = (char *)cocos2d::CCString::getCString(v3);\n  }\n  m_followIDInput = a1->m_followIDInput;\n  sub_D153B8((int)&v9, CString);\n  CCTextInputNode::setString(m_followIDInput, &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::updateTextInputLabel2 from 0x92070c to 0x920840 (308 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::init @ 0x92167c\n; > GJFollowCommandLayer::onUpdateGroupID2 @ 0x921e5c\n; > <???> @ 0x5fb98\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, 0x92070c\nMOV             W3, #1                                                 ; +0x4, 0x920710\nMOV             X29, SP                                                ; +0x8, 0x920714\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x920718\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x92071c\nMOV             X20, X0                                                ; +0x14, 0x920720\nMOV             W0, #0x7961                                            ; +0x18, 0x920724\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x1c, 0x920728\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x92072c\nMOVK            W0, #0xFFFE,LSL#16                                     ; +0x24, 0x920730\nLDR             W1, [X20,#0x420]; char *                               ; +0x28, 0x920734\nSTRB            W3, [X20,#0x2CC]                                       ; +0x2c, 0x920738\nLDR             X2, [X2]                                               ; +0x30, 0x92073c\nCMP             W1, W0                                                 ; +0x34, 0x920740\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x38, 0x920744\nB.EQ            loc_9207C0                                             ; +0x3c, 0x920748\nADRL            X0, (aSongidI+8); this                                 ; +0x40, 0x92074c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x48, 0x920754\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x4c, 0x920758\nMOV             X1, X0; char *                                         ; +0x50, 0x92075c\nADD             X21, X29, #0x50+var_10                                 ; +0x54, 0x920760\nADD             X2, X29, #0x50+var_20                                  ; +0x58, 0x920764\nMOV             X0, X21; int                                           ; +0x5c, 0x920768\nLDR             X22, [X20,#0x418]                                      ; +0x60, 0x92076c\nBL              sub_D153B8                                             ; +0x64, 0x920770\nMOV             X0, X22                                                ; +0x68, 0x920774\nMOV             X1, X21                                                ; +0x6c, 0x920778\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x70, 0x92077c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x74, 0x920780\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x78, 0x920784\nSUB             X0, X2, #0x18; p                                       ; +0x7c, 0x920788\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x80, 0x92078c\nCMP             X0, X1                                                 ; +0x84, 0x920790\nB.NE            loc_9207CC                                             ; +0x88, 0x920794\nSTRB            WZR, [X20,#0x2CC]                                      ; +0x8c, 0x920798\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x90, 0x92079c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x94, 0x9207a0\nLDR             X0, [X19]                                              ; +0x98, 0x9207a4\nCMP             X1, X0                                                 ; +0x9c, 0x9207a8\nB.NE            loc_920810                                             ; +0xa0, 0x9207ac\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa4, 0x9207b0\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa8, 0x9207b4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xac, 0x9207b8\nRET                                                                    ; +0xb0, 0x9207bc\nADRL            X1, byte_F288A0                                        ; +0xb4, 0x9207c0\nB               loc_920760                                             ; +0xbc, 0x9207c8\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc0, 0x9207cc\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc4, 0x9207d0\nCBZ             X1, loc_920800                                         ; +0xc8, 0x9207d4\nSUB             X2, X2, #8                                             ; +0xcc, 0x9207d8\nLDAXR           W1, [X2]                                               ; +0xd0, 0x9207dc\nSUB             W3, W1, #1                                             ; +0xd4, 0x9207e0\nSTLXR           W4, W3, [X2]                                           ; +0xd8, 0x9207e4\nCBNZ            W4, loc_9207DC                                         ; +0xdc, 0x9207e8\nCMP             W1, WZR                                                ; +0xe0, 0x9207ec\nB.GT            loc_920798                                             ; +0xe4, 0x9207f0\nADD             X1, X29, #0x50+var_18                                  ; +0xe8, 0x9207f4\nBL              j__ZdlPv; operator delete(void *)                      ; +0xec, 0x9207f8\nB               loc_920798                                             ; +0xf0, 0x9207fc\nLDUR            W1, [X2,#-8]                                           ; +0xf4, 0x920800\nSUB             W3, W1, #1                                             ; +0xf8, 0x920804\nSTUR            W3, [X2,#-8]                                           ; +0xfc, 0x920808\nB               loc_9207EC                                             ; +0x100, 0x92080c\nBL              .__stack_chk_fail                                      ; +0x104, 0x920810\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x920814\nMOV             X19, X0                                                ; +0x10c, 0x920818\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x92081c\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x920820\nSUB             X0, X0, #0x18                                          ; +0x118, 0x920824\nCMP             X0, X1                                                 ; +0x11c, 0x920828\nB.EQ            loc_920838                                             ; +0x120, 0x92082c\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x920830\nBL              sub_4DCB60                                             ; +0x128, 0x920834\nMOV             X0, X19                                                ; +0x12c, 0x920838\nBL              _Unwind_Resume                                         ; +0x130, 0x92083c", "xrefs": ["GJFollowCommandLayer::init @ 0x92167c", "GJFollowCommandLayer::onUpdateGroupID2 @ 0x921e5c", "<???> @ 0x5fb98"], "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"}