{"type": "func", "start": 9568764, "end": 9569124, "name": "GJFollowCommandLayer::updateDurLabel", "pseudocode": "// \n// GJFollowCommandLayer::updateDurLabel from 0x9201fc to 0x920364 (360 bytes)\n// \n// 3 xrefs:\n// > GJFollowCommandLayer::init @ 0x920e68\n// > GJFollowCommandLayer::sliderChanged @ 0x92205c\n// > <???> @ 0x36a68\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\n// local variable allocation has failed, the output may be wrong!\nvoid GJFollowCommandLayer::updateDurLabel(GJFollowCommandLayer *a1, bool a2)\n{\n  _BOOL8 v2; // x1\n  float m_moveTime; // s0\n  const unsigned __int8 *v5; // x0\n  cocos2d::CCString *v6; // x0\n  char *CString; // x1\n  CCTextInputNode *m_moveTimeInput; // x22\n  unsigned __int8 *v9; // x0\n  cocos2d::CCString *v10; // x0\n  unsigned int *v11; // x2\n  int v12; // w1\n  const unsigned __int8 *v13[2]; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = a2;\n  m_moveTime = a1->m_moveTime;\n  v5 = (const unsigned __int8 *)_stack_chk_guard;\n  a1->m_disableTextDelegate = 1;\n  v13[1] = v5;\n  if ( m_moveTime == -99999.0 )\n  {\n    CString = \"Mixed\";\n  }\n  else if ( !a2 && (*(_QWORD *)&a2 = (unsigned int)(int)m_moveTime, (float)(m_moveTime - (float)a2) == 0.0) )\n  {\n    v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n    CString = (char *)cocos2d::CCString::getCString(v10);\n  }\n  else\n  {\n    v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"%.02f\",\n                                (const char *)a2,\n                                m_moveTime);\n    CString = (char *)cocos2d::CCString::getCString(v6);\n  }\n  m_moveTimeInput = a1->m_moveTimeInput;\n  sub_D153B8((int)v13, CString);\n  CCTextInputNode::setString(m_moveTimeInput, v13);\n  v9 = (unsigned __int8 *)(v13[0] - 24);\n  if ( (__int64 *)v13[0] - 3 != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v11 = (unsigned int *)(v13[0] - 8);\n      do\n        v12 = __ldaxr(v11);\n      while ( __stlxr(v12 - 1, v11) );\n    }\n    else\n    {\n      v12 = *((_DWORD *)v13[0] - 2);\n      *((_DWORD *)v13[0] - 2) = v12 - 1;\n    }\n    if ( v12 <= 0 )\n      operator delete(v9);\n  }\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; GJFollowCommandLayer::updateDurLabel from 0x9201fc to 0x920364 (360 bytes)\n; \n; 3 xrefs:\n; > GJFollowCommandLayer::init @ 0x920e68\n; > GJFollowCommandLayer::sliderChanged @ 0x92205c\n; > <???> @ 0x36a68\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, 0x9201fc\nMOV             W2, #1                                                 ; +0x4, 0x920200\nUXTB            W1, W1                                                 ; +0x8, 0x920204\nMOV             X29, SP                                                ; +0xc, 0x920208\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x10, 0x92020c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x920210\nMOV             X20, X0                                                ; +0x18, 0x920214\nLDR             S0, [X0,#0x3D8]                                        ; +0x1c, 0x920218\nLDR             S1, =0xC7C34F80                                        ; +0x20, 0x92021c\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x920220\nFCMP            S0, S1                                                 ; +0x28, 0x920224\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x2c, 0x920228\nLDR             X0, [X0]                                               ; +0x30, 0x92022c\nSTRB            W2, [X20,#0x2CC]                                       ; +0x34, 0x920230\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x38, 0x920234\nB.EQ            loc_920270                                             ; +0x3c, 0x920238\nCBNZ            W1, loc_920254                                         ; +0x40, 0x92023c\nFCVTZS          W1, S0; char *                                         ; +0x44, 0x920240\nSCVTF           S1, W1                                                 ; +0x48, 0x920244\nFSUB            S1, S0, S1                                             ; +0x4c, 0x920248\nFCMP            S1, #0.0                                               ; +0x50, 0x92024c\nB.EQ            loc_9202D8                                             ; +0x54, 0x920250\nFCVT            D0, S0                                                 ; +0x58, 0x920254\nADRL            X0, (aScaley02f+8); this                               ; +0x5c, 0x920258\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x64, 0x920260\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x68, 0x920264\nMOV             X1, X0                                                 ; +0x6c, 0x920268\nB               loc_920278                                             ; +0x70, 0x92026c\nADRL            X1, aMixed; \"Mixed\"                                    ; +0x74, 0x920270\nADD             X21, X29, #0x50+var_10                                 ; +0x7c, 0x920278\nADD             X2, X29, #0x50+var_20                                  ; +0x80, 0x92027c\nMOV             X0, X21; int                                           ; +0x84, 0x920280\nLDR             X22, [X20,#0x3C8]                                      ; +0x88, 0x920284\nBL              sub_D153B8                                             ; +0x8c, 0x920288\nMOV             X0, X22                                                ; +0x90, 0x92028c\nMOV             X1, X21                                                ; +0x94, 0x920290\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x98, 0x920294\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x9c, 0x920298\nLDR             X2, [X29,#0x50+var_10]                                 ; +0xa0, 0x92029c\nSUB             X0, X2, #0x18; p                                       ; +0xa4, 0x9202a0\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xa8, 0x9202a4\nCMP             X0, X1                                                 ; +0xac, 0x9202a8\nB.NE            loc_9202F0                                             ; +0xb0, 0x9202ac\nSTRB            WZR, [X20,#0x2CC]                                      ; +0xb4, 0x9202b0\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xb8, 0x9202b4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xbc, 0x9202b8\nLDR             X0, [X19]                                              ; +0xc0, 0x9202bc\nCMP             X1, X0                                                 ; +0xc4, 0x9202c0\nB.NE            loc_920334                                             ; +0xc8, 0x9202c4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xcc, 0x9202c8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xd0, 0x9202cc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xd4, 0x9202d0\nRET                                                                    ; +0xd8, 0x9202d4\nADRL            X0, (aSongidI+8); this                                 ; +0xdc, 0x9202d8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xe4, 0x9202e0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xe8, 0x9202e4\nMOV             X1, X0                                                 ; +0xec, 0x9202e8\nB               loc_920278                                             ; +0xf0, 0x9202ec\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xf4, 0x9202f0\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xf8, 0x9202f4\nCBZ             X1, loc_920324                                         ; +0xfc, 0x9202f8\nSUB             X2, X2, #8                                             ; +0x100, 0x9202fc\nLDAXR           W1, [X2]                                               ; +0x104, 0x920300\nSUB             W3, W1, #1                                             ; +0x108, 0x920304\nSTLXR           W4, W3, [X2]                                           ; +0x10c, 0x920308\nCBNZ            W4, loc_920300                                         ; +0x110, 0x92030c\nCMP             W1, WZR                                                ; +0x114, 0x920310\nB.GT            loc_9202B0                                             ; +0x118, 0x920314\nADD             X1, X29, #0x50+var_18                                  ; +0x11c, 0x920318\nBL              j__ZdlPv; operator delete(void *)                      ; +0x120, 0x92031c\nB               loc_9202B0                                             ; +0x124, 0x920320\nLDUR            W1, [X2,#-8]                                           ; +0x128, 0x920324\nSUB             W3, W1, #1                                             ; +0x12c, 0x920328\nSTUR            W3, [X2,#-8]                                           ; +0x130, 0x92032c\nB               loc_920310                                             ; +0x134, 0x920330\nBL              .__stack_chk_fail                                      ; +0x138, 0x920334\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x13c, 0x920338\nMOV             X19, X0                                                ; +0x140, 0x92033c\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x144, 0x920340\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x148, 0x920344\nSUB             X0, X0, #0x18                                          ; +0x14c, 0x920348\nCMP             X0, X1                                                 ; +0x150, 0x92034c\nB.EQ            loc_92035C                                             ; +0x154, 0x920350\nADD             X1, X29, #0x50+var_18                                  ; +0x158, 0x920354\nBL              sub_4DCB60                                             ; +0x15c, 0x920358\nMOV             X0, X19                                                ; +0x160, 0x92035c\nBL              _Unwind_Resume                                         ; +0x164, 0x920360", "xrefs": ["GJFollowCommandLayer::init @ 0x920e68", "GJFollowCommandLayer::sliderChanged @ 0x92205c", "<???> @ 0x36a68"], "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"}