{"type": "func", "start": 9569440, "end": 9569748, "name": "GJFollowCommandLayer::updateYModLabel", "pseudocode": "// \n// GJFollowCommandLayer::updateYModLabel from 0x9204a0 to 0x9205d4 (308 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::init @ 0x92168c\n// > GJFollowCommandLayer::sliderYModChanged @ 0x921fa4\n// > <???> @ 0x64950\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::updateYModLabel(GJFollowCommandLayer *a1)\n{\n  float m_yMod; // s0\n  const unsigned __int8 *v3; // x0\n  char *CString; // x1\n  CCTextInputNode *m_yModInput; // 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_yMod = a1->m_yMod;\n  v3 = (const unsigned __int8 *)_stack_chk_guard;\n  a1->m_disableTextDelegate = (unsigned __int8)&dword_0 + 1;\n  v10[1] = v3;\n  if ( m_yMod == -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_yMod);\n    CString = (char *)cocos2d::CCString::getCString(v7);\n  }\n  m_yModInput = a1->m_yModInput;\n  sub_D153B8((int)v10, CString);\n  CCTextInputNode::setString(m_yModInput, 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; GJFollowCommandLayer::updateYModLabel from 0x9204a0 to 0x9205d4 (308 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::init @ 0x92168c\n; > GJFollowCommandLayer::sliderYModChanged @ 0x921fa4\n; > <???> @ 0x64950\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, 0x9204a0\nMOV             W1, #(dword_0+1); char *                               ; +0x4, 0x9204a4\nMOV             X29, SP                                                ; +0x8, 0x9204a8\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x9204ac\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x9204b0\nMOV             X20, X0                                                ; +0x14, 0x9204b4\nLDR             S0, [X0,#0x404]                                        ; +0x18, 0x9204b8\nLDR             S1, =0xC7C34F80                                        ; +0x1c, 0x9204bc\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x9204c0\nFCMP            S0, S1                                                 ; +0x24, 0x9204c4\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x28, 0x9204c8\nLDR             X0, [X0]                                               ; +0x2c, 0x9204cc\nSTRB            W1, [X20,#0x2CC]                                       ; +0x30, 0x9204d0\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x34, 0x9204d4\nB.NE            loc_920544                                             ; +0x38, 0x9204d8\nADRL            X1, byte_F288A0; char *                                ; +0x3c, 0x9204dc\nADD             X21, X29, #0x50+var_10                                 ; +0x44, 0x9204e4\nADD             X2, X29, #0x50+var_20                                  ; +0x48, 0x9204e8\nMOV             X0, X21; int                                           ; +0x4c, 0x9204ec\nLDR             X22, [X20,#0x3E8]                                      ; +0x50, 0x9204f0\nBL              sub_D153B8                                             ; +0x54, 0x9204f4\nMOV             X0, X22                                                ; +0x58, 0x9204f8\nMOV             X1, X21                                                ; +0x5c, 0x9204fc\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x60, 0x920500\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x64, 0x920504\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x68, 0x920508\nSUB             X0, X2, #0x18; p                                       ; +0x6c, 0x92050c\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x70, 0x920510\nCMP             X0, X1                                                 ; +0x74, 0x920514\nB.NE            loc_920560                                             ; +0x78, 0x920518\nSTRB            WZR, [X20,#0x2CC]                                      ; +0x7c, 0x92051c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x80, 0x920520\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x920524\nLDR             X0, [X19]                                              ; +0x88, 0x920528\nCMP             X1, X0                                                 ; +0x8c, 0x92052c\nB.NE            loc_9205A4                                             ; +0x90, 0x920530\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x94, 0x920534\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x98, 0x920538\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x9c, 0x92053c\nRET                                                                    ; +0xa0, 0x920540\nFCVT            D0, S0                                                 ; +0xa4, 0x920544\nADRL            X0, a02f; \"%0.2f\"                                      ; +0xa8, 0x920548\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xb0, 0x920550\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xb4, 0x920554\nMOV             X1, X0                                                 ; +0xb8, 0x920558\nB               loc_9204E4                                             ; +0xbc, 0x92055c\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xc0, 0x920560\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc4, 0x920564\nCBZ             X1, loc_920594                                         ; +0xc8, 0x920568\nSUB             X2, X2, #8                                             ; +0xcc, 0x92056c\nLDAXR           W1, [X2]                                               ; +0xd0, 0x920570\nSUB             W3, W1, #1                                             ; +0xd4, 0x920574\nSTLXR           W4, W3, [X2]                                           ; +0xd8, 0x920578\nCBNZ            W4, loc_920570                                         ; +0xdc, 0x92057c\nCMP             W1, WZR                                                ; +0xe0, 0x920580\nB.GT            loc_92051C                                             ; +0xe4, 0x920584\nADD             X1, X29, #0x50+var_18                                  ; +0xe8, 0x920588\nBL              j__ZdlPv; operator delete(void *)                      ; +0xec, 0x92058c\nB               loc_92051C                                             ; +0xf0, 0x920590\nLDUR            W1, [X2,#-8]                                           ; +0xf4, 0x920594\nSUB             W3, W1, #1                                             ; +0xf8, 0x920598\nSTUR            W3, [X2,#-8]                                           ; +0xfc, 0x92059c\nB               loc_920580                                             ; +0x100, 0x9205a0\nBL              .__stack_chk_fail                                      ; +0x104, 0x9205a4\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x108, 0x9205a8\nMOV             X19, X0                                                ; +0x10c, 0x9205ac\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x110, 0x9205b0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x114, 0x9205b4\nSUB             X0, X0, #0x18                                          ; +0x118, 0x9205b8\nCMP             X0, X1                                                 ; +0x11c, 0x9205bc\nB.EQ            loc_9205CC                                             ; +0x120, 0x9205c0\nADD             X1, X29, #0x50+var_18                                  ; +0x124, 0x9205c4\nBL              sub_4DCB60                                             ; +0x128, 0x9205c8\nMOV             X0, X19                                                ; +0x12c, 0x9205cc\nBL              _Unwind_Resume                                         ; +0x130, 0x9205d0", "xrefs": ["GJFollowCommandLayer::init @ 0x92168c", "GJFollowCommandLayer::sliderYModChanged @ 0x921fa4", "<???> @ 0x64950"], "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"}