{"type": "func", "start": 9578656, "end": 9579016, "name": "GJPFollowCommandLayer::updateDurLabel", "pseudocode": "// \n// GJPFollowCommandLayer::updateDurLabel from 0x9228a0 to 0x922a08 (360 bytes)\n// \n// 3 xrefs:\n// > GJPFollowCommandLayer::init @ 0x923648\n// > GJPFollowCommandLayer::sliderChanged @ 0x924c64\n// > <???> @ 0x99ae0\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 GJPFollowCommandLayer::updateDurLabel(GJPFollowCommandLayer *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; GJPFollowCommandLayer::updateDurLabel from 0x9228a0 to 0x922a08 (360 bytes)\n; \n; 3 xrefs:\n; > GJPFollowCommandLayer::init @ 0x923648\n; > GJPFollowCommandLayer::sliderChanged @ 0x924c64\n; > <???> @ 0x99ae0\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, 0x9228a0\nMOV             W2, #1                                                 ; +0x4, 0x9228a4\nUXTB            W1, W1                                                 ; +0x8, 0x9228a8\nMOV             X29, SP                                                ; +0xc, 0x9228ac\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x10, 0x9228b0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x9228b4\nMOV             X20, X0                                                ; +0x18, 0x9228b8\nLDR             S0, [X0,#0x3D8]                                        ; +0x1c, 0x9228bc\nLDR             S1, =0xC7C34F80                                        ; +0x20, 0x9228c0\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x9228c4\nFCMP            S0, S1                                                 ; +0x28, 0x9228c8\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x2c, 0x9228cc\nLDR             X0, [X0]                                               ; +0x30, 0x9228d0\nSTRB            W2, [X20,#0x2CC]                                       ; +0x34, 0x9228d4\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x38, 0x9228d8\nB.EQ            loc_922914                                             ; +0x3c, 0x9228dc\nCBNZ            W1, loc_9228F8                                         ; +0x40, 0x9228e0\nFCVTZS          W1, S0; char *                                         ; +0x44, 0x9228e4\nSCVTF           S1, W1                                                 ; +0x48, 0x9228e8\nFSUB            S1, S0, S1                                             ; +0x4c, 0x9228ec\nFCMP            S1, #0.0                                               ; +0x50, 0x9228f0\nB.EQ            loc_92297C                                             ; +0x54, 0x9228f4\nFCVT            D0, S0                                                 ; +0x58, 0x9228f8\nADRL            X0, (aScaley02f+8); this                               ; +0x5c, 0x9228fc\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x64, 0x922904\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x68, 0x922908\nMOV             X1, X0                                                 ; +0x6c, 0x92290c\nB               loc_92291C                                             ; +0x70, 0x922910\nADRL            X1, aMixed; \"Mixed\"                                    ; +0x74, 0x922914\nADD             X21, X29, #0x50+var_10                                 ; +0x7c, 0x92291c\nADD             X2, X29, #0x50+var_20                                  ; +0x80, 0x922920\nMOV             X0, X21; int                                           ; +0x84, 0x922924\nLDR             X22, [X20,#0x3C8]                                      ; +0x88, 0x922928\nBL              sub_D153B8                                             ; +0x8c, 0x92292c\nMOV             X0, X22                                                ; +0x90, 0x922930\nMOV             X1, X21                                                ; +0x94, 0x922934\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x98, 0x922938\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x9c, 0x92293c\nLDR             X2, [X29,#0x50+var_10]                                 ; +0xa0, 0x922940\nSUB             X0, X2, #0x18; p                                       ; +0xa4, 0x922944\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xa8, 0x922948\nCMP             X0, X1                                                 ; +0xac, 0x92294c\nB.NE            loc_922994                                             ; +0xb0, 0x922950\nSTRB            WZR, [X20,#0x2CC]                                      ; +0xb4, 0x922954\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xb8, 0x922958\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xbc, 0x92295c\nLDR             X0, [X19]                                              ; +0xc0, 0x922960\nCMP             X1, X0                                                 ; +0xc4, 0x922964\nB.NE            loc_9229D8                                             ; +0xc8, 0x922968\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xcc, 0x92296c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xd0, 0x922970\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xd4, 0x922974\nRET                                                                    ; +0xd8, 0x922978\nADRL            X0, (aSongidI+8); this                                 ; +0xdc, 0x92297c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xe4, 0x922984\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xe8, 0x922988\nMOV             X1, X0                                                 ; +0xec, 0x92298c\nB               loc_92291C                                             ; +0xf0, 0x922990\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xf4, 0x922994\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xf8, 0x922998\nCBZ             X1, loc_9229C8                                         ; +0xfc, 0x92299c\nSUB             X2, X2, #8                                             ; +0x100, 0x9229a0\nLDAXR           W1, [X2]                                               ; +0x104, 0x9229a4\nSUB             W3, W1, #1                                             ; +0x108, 0x9229a8\nSTLXR           W4, W3, [X2]                                           ; +0x10c, 0x9229ac\nCBNZ            W4, loc_9229A4                                         ; +0x110, 0x9229b0\nCMP             W1, WZR                                                ; +0x114, 0x9229b4\nB.GT            loc_922954                                             ; +0x118, 0x9229b8\nADD             X1, X29, #0x50+var_18                                  ; +0x11c, 0x9229bc\nBL              j__ZdlPv; operator delete(void *)                      ; +0x120, 0x9229c0\nB               loc_922954                                             ; +0x124, 0x9229c4\nLDUR            W1, [X2,#-8]                                           ; +0x128, 0x9229c8\nSUB             W3, W1, #1                                             ; +0x12c, 0x9229cc\nSTUR            W3, [X2,#-8]                                           ; +0x130, 0x9229d0\nB               loc_9229B4                                             ; +0x134, 0x9229d4\nBL              .__stack_chk_fail                                      ; +0x138, 0x9229d8\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x13c, 0x9229dc\nMOV             X19, X0                                                ; +0x140, 0x9229e0\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x144, 0x9229e4\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x148, 0x9229e8\nSUB             X0, X0, #0x18                                          ; +0x14c, 0x9229ec\nCMP             X0, X1                                                 ; +0x150, 0x9229f0\nB.EQ            loc_922A00                                             ; +0x154, 0x9229f4\nADD             X1, X29, #0x50+var_18                                  ; +0x158, 0x9229f8\nBL              sub_4DCBA0                                             ; +0x15c, 0x9229fc\nMOV             X0, X19                                                ; +0x160, 0x922a00\nBL              _Unwind_Resume                                         ; +0x164, 0x922a04", "xrefs": ["GJPFollowCommandLayer::init @ 0x923648", "GJPFollowCommandLayer::sliderChanged @ 0x924c64", "<???> @ 0x99ae0"], "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"}