{"type": "func", "start": 9579332, "end": 9579640, "name": "GJPFollowCommandLayer::updateYModLabel", "pseudocode": "// \n// GJPFollowCommandLayer::updateYModLabel from 0x922b44 to 0x922c78 (308 bytes)\n// \n// 3 xrefs:\n// > GJPFollowCommandLayer::init @ 0x924318\n// > GJPFollowCommandLayer::sliderYModChanged @ 0x924bac\n// > <???> @ 0x5bf50\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::updateYModLabel(GJPFollowCommandLayer *a1)\n{\n  float m_delay; // s0\n  const unsigned __int8 *v3; // x0\n  char *CString; // x1\n  CCTextInputNode *m_delayInput; // x22\n  unsigned __int8 *v6; // x0\n  cocos2d::CCString *v7; // x0\n  unsigned int *v8; // x2\n  int v9; // w1\n  const unsigned __int8 *v10[2]; // [xsp+40h] [xbp+40h] BYREF\n\n  m_delay = a1->m_delay;\n  v3 = (const unsigned __int8 *)_stack_chk_guard;\n  a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;\n  v10[1] = v3;\n  if ( m_delay == -99999.0 )\n  {\n    CString = &byte_F288A0;\n  }\n  else\n  {\n    v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"%0.2f\",\n                                (const char *)&dword_0 + 1,\n                                m_delay);\n    CString = (char *)cocos2d::CCString::getCString(v7);\n  }\n  m_delayInput = a1->m_delayInput;\n  sub_D153B8((int)v10, CString);\n  CCTextInputNode::setString(m_delayInput, v10);\n  v6 = (unsigned __int8 *)(v10[0] - 24);\n  if ( (__int64 *)v10[0] - 3 != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v8 = (unsigned int *)(v10[0] - 8);\n      do\n        v9 = __ldaxr(v8);\n      while ( __stlxr(v9 - 1, v8) );\n    }\n    else\n    {\n      v9 = *((_DWORD *)v10[0] - 2);\n      *((_DWORD *)v10[0] - 2) = v9 - 1;\n    }\n    if ( v9 <= 0 )\n      operator delete(v6);\n  }\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; GJPFollowCommandLayer::updateYModLabel from 0x922b44 to 0x922c78 (308 bytes)\n; \n; 3 xrefs:\n; > GJPFollowCommandLayer::init @ 0x924318\n; > GJPFollowCommandLayer::sliderYModChanged @ 0x924bac\n; > <???> @ 0x5bf50\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, 0x922b44\nMOV             W1, #(dword_0+1); char *                               ; +0x4, 0x922b48\nMOV             X29, SP                                                ; +0x8, 0x922b4c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x922b50\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x922b54\nMOV             X20, X0                                                ; +0x14, 0x922b58\nLDR             S0, [X0,#0x410]                                        ; +0x18, 0x922b5c\nLDR             S1, =0xC7C34F80                                        ; +0x1c, 0x922b60\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x922b64\nFCMP            S0, S1                                                 ; +0x24, 0x922b68\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x28, 0x922b6c\nLDR             X0, [X0]                                               ; +0x2c, 0x922b70\nSTRB            W1, [X20,#0x2CC]                                       ; +0x30, 0x922b74\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x34, 0x922b78\nB.NE            loc_922BE8                                             ; +0x38, 0x922b7c\nADRL            X1, byte_F288A0; char *                                ; +0x3c, 0x922b80\nADD             X21, X29, #0x50+var_10                                 ; +0x44, 0x922b88\nADD             X2, X29, #0x50+var_20                                  ; +0x48, 0x922b8c\nMOV             X0, X21; int                                           ; +0x4c, 0x922b90\nLDR             X22, [X20,#0x3E8]                                      ; +0x50, 0x922b94\nBL              sub_D153B8                                             ; +0x54, 0x922b98\nMOV             X0, X22                                                ; +0x58, 0x922b9c\nMOV             X1, X21                                                ; +0x5c, 0x922ba0\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x60, 0x922ba4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x922ba8\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x922bac\nSUB             X0, X2, #0x18; p                                       ; +0x6c, 0x922bb0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x70, 0x922bb4\nCMP             X0, X1                                                 ; +0x74, 0x922bb8\nB.NE            loc_922C04                                             ; +0x78, 0x922bbc\nSTRB            WZR, [X20,#0x2CC]                                      ; +0x7c, 0x922bc0\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x80, 0x922bc4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x922bc8\nLDR             X0, [X19]                                              ; +0x88, 0x922bcc\nCMP             X1, X0                                                 ; +0x8c, 0x922bd0\nB.NE            loc_922C48                                             ; +0x90, 0x922bd4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0x922bd8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x98, 0x922bdc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0x922be0\nRET                                                                    ; +0xa0, 0x922be4\nFCVT            D0, S0                                                 ; +0xa4, 0x922be8\nADRL            X0, a02f; \"%0.2f\"                                      ; +0xa8, 0x922bec\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xb0, 0x922bf4\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xb4, 0x922bf8\nMOV             X1, X0                                                 ; +0xb8, 0x922bfc\nB               loc_922B88                                             ; +0xbc, 0x922c00\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc0, 0x922c04\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc4, 0x922c08\nCBZ             X1, loc_922C38                                         ; +0xc8, 0x922c0c\nSUB             X2, X2, #8                                             ; +0xcc, 0x922c10\nLDAXR           W1, [X2]                                               ; +0xd0, 0x922c14\nSUB             W3, W1, #1                                             ; +0xd4, 0x922c18\nSTLXR           W4, W3, [X2]                                           ; +0xd8, 0x922c1c\nCBNZ            W4, loc_922C14                                         ; +0xdc, 0x922c20\nCMP             W1, WZR                                                ; +0xe0, 0x922c24\nB.GT            loc_922BC0                                             ; +0xe4, 0x922c28\nADD             X1, X29, #0x50+var_18                                  ; +0xe8, 0x922c2c\nBL              j__ZdlPv; operator delete(void *)                      ; +0xec, 0x922c30\nB               loc_922BC0                                             ; +0xf0, 0x922c34\nLDUR            W1, [X2,#-8]                                           ; +0xf4, 0x922c38\nSUB             W3, W1, #1                                             ; +0xf8, 0x922c3c\nSTUR            W3, [X2,#-8]                                           ; +0xfc, 0x922c40\nB               loc_922C24                                             ; +0x100, 0x922c44\nBL              .__stack_chk_fail                                      ; +0x104, 0x922c48\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x922c4c\nMOV             X19, X0                                                ; +0x10c, 0x922c50\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x922c54\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x922c58\nSUB             X0, X0, #0x18                                          ; +0x118, 0x922c5c\nCMP             X0, X1                                                 ; +0x11c, 0x922c60\nB.EQ            loc_922C70                                             ; +0x120, 0x922c64\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x922c68\nBL              sub_4DCBA0                                             ; +0x128, 0x922c6c\nMOV             X0, X19                                                ; +0x12c, 0x922c70\nBL              _Unwind_Resume                                         ; +0x130, 0x922c74", "xrefs": ["GJPFollowCommandLayer::init @ 0x924318", "GJPFollowCommandLayer::sliderYModChanged @ 0x924bac", "<???> @ 0x5bf50"], "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"}