{"type": "func", "start": 9579020, "end": 9579328, "name": "GJPFollowCommandLayer::updateXModLabel", "pseudocode": "// \n// GJPFollowCommandLayer::updateXModLabel from 0x922a0c to 0x922b40 (308 bytes)\n// \n// 3 xrefs:\n// > GJPFollowCommandLayer::init @ 0x924310\n// > GJPFollowCommandLayer::sliderXModChanged @ 0x924b10\n// > <???> @ 0xb5560\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::updateXModLabel(GJPFollowCommandLayer *a1)\n{\n  float m_speed; // s0\n  const unsigned __int8 *v3; // x0\n  char *CString; // x1\n  CCTextInputNode *m_speedInput; // 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_speed = a1->m_speed;\n  v3 = (const unsigned __int8 *)_stack_chk_guard;\n  a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;\n  v10[1] = v3;\n  if ( m_speed == -99999.0 )\n  {\n    CString = &byte_F288A0;\n  }\n  else\n  {\n    v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"%0.3f\",\n                                (const char *)&dword_0 + 1,\n                                m_speed);\n    CString = (char *)cocos2d::CCString::getCString(v7);\n  }\n  m_speedInput = a1->m_speedInput;\n  sub_D153B8((int)v10, CString);\n  CCTextInputNode::setString(m_speedInput, 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::updateXModLabel from 0x922a0c to 0x922b40 (308 bytes)\n; \n; 3 xrefs:\n; > GJPFollowCommandLayer::init @ 0x924310\n; > GJPFollowCommandLayer::sliderXModChanged @ 0x924b10\n; > <???> @ 0xb5560\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, 0x922a0c\nMOV             W1, #(dword_0+1); char *                               ; +0x4, 0x922a10\nMOV             X29, SP                                                ; +0x8, 0x922a14\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x922a18\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x922a1c\nMOV             X20, X0                                                ; +0x14, 0x922a20\nLDR             S0, [X0,#0x414]                                        ; +0x18, 0x922a24\nLDR             S1, =0xC7C34F80                                        ; +0x1c, 0x922a28\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x922a2c\nFCMP            S0, S1                                                 ; +0x24, 0x922a30\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x28, 0x922a34\nLDR             X0, [X0]                                               ; +0x2c, 0x922a38\nSTRB            W1, [X20,#0x2CC]                                       ; +0x30, 0x922a3c\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x34, 0x922a40\nB.NE            loc_922AB0                                             ; +0x38, 0x922a44\nADRL            X1, byte_F288A0; char *                                ; +0x3c, 0x922a48\nADD             X21, X29, #0x50+var_10                                 ; +0x44, 0x922a50\nADD             X2, X29, #0x50+var_20                                  ; +0x48, 0x922a54\nMOV             X0, X21; int                                           ; +0x4c, 0x922a58\nLDR             X22, [X20,#0x3E0]                                      ; +0x50, 0x922a5c\nBL              sub_D153B8                                             ; +0x54, 0x922a60\nMOV             X0, X22                                                ; +0x58, 0x922a64\nMOV             X1, X21                                                ; +0x5c, 0x922a68\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x60, 0x922a6c\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x922a70\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x922a74\nSUB             X0, X2, #0x18; p                                       ; +0x6c, 0x922a78\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x70, 0x922a7c\nCMP             X0, X1                                                 ; +0x74, 0x922a80\nB.NE            loc_922ACC                                             ; +0x78, 0x922a84\nSTRB            WZR, [X20,#0x2CC]                                      ; +0x7c, 0x922a88\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x80, 0x922a8c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x922a90\nLDR             X0, [X19]                                              ; +0x88, 0x922a94\nCMP             X1, X0                                                 ; +0x8c, 0x922a98\nB.NE            loc_922B10                                             ; +0x90, 0x922a9c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0x922aa0\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x98, 0x922aa4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0x922aa8\nRET                                                                    ; +0xa0, 0x922aac\nFCVT            D0, S0                                                 ; +0xa4, 0x922ab0\nADRL            X0, a03f; \"%0.3f\"                                      ; +0xa8, 0x922ab4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xb0, 0x922abc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xb4, 0x922ac0\nMOV             X1, X0                                                 ; +0xb8, 0x922ac4\nB               loc_922A50                                             ; +0xbc, 0x922ac8\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc0, 0x922acc\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc4, 0x922ad0\nCBZ             X1, loc_922B00                                         ; +0xc8, 0x922ad4\nSUB             X2, X2, #8                                             ; +0xcc, 0x922ad8\nLDAXR           W1, [X2]                                               ; +0xd0, 0x922adc\nSUB             W3, W1, #1                                             ; +0xd4, 0x922ae0\nSTLXR           W4, W3, [X2]                                           ; +0xd8, 0x922ae4\nCBNZ            W4, loc_922ADC                                         ; +0xdc, 0x922ae8\nCMP             W1, WZR                                                ; +0xe0, 0x922aec\nB.GT            loc_922A88                                             ; +0xe4, 0x922af0\nADD             X1, X29, #0x50+var_18                                  ; +0xe8, 0x922af4\nBL              j__ZdlPv; operator delete(void *)                      ; +0xec, 0x922af8\nB               loc_922A88                                             ; +0xf0, 0x922afc\nLDUR            W1, [X2,#-8]                                           ; +0xf4, 0x922b00\nSUB             W3, W1, #1                                             ; +0xf8, 0x922b04\nSTUR            W3, [X2,#-8]                                           ; +0xfc, 0x922b08\nB               loc_922AEC                                             ; +0x100, 0x922b0c\nBL              .__stack_chk_fail                                      ; +0x104, 0x922b10\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x922b14\nMOV             X19, X0                                                ; +0x10c, 0x922b18\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x922b1c\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x922b20\nSUB             X0, X0, #0x18                                          ; +0x118, 0x922b24\nCMP             X0, X1                                                 ; +0x11c, 0x922b28\nB.EQ            loc_922B38                                             ; +0x120, 0x922b2c\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x922b30\nBL              sub_4DCBA0                                             ; +0x128, 0x922b34\nMOV             X0, X19                                                ; +0x12c, 0x922b38\nBL              _Unwind_Resume                                         ; +0x130, 0x922b3c", "xrefs": ["GJPFollowCommandLayer::init @ 0x924310", "GJPFollowCommandLayer::sliderXModChanged @ 0x924b10", "<???> @ 0xb5560"], "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"}