{"type": "func", "start": 7585928, "end": 7586280, "name": "ColorSelectPopup::updateDurLabel", "pseudocode": "// \n// ColorSelectPopup::updateDurLabel from 0x73c088 to 0x73c1e8 (352 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::sliderChanged @ 0x73c2c0\n// > ColorSelectPopup::init @ 0x73d7d8\n// > <???> @ 0x84768\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 ColorSelectPopup::updateDurLabel(ColorSelectPopup *a1)\n{\n  float m_fadeTime; // s0\n  const unsigned __int8 *v3; // x0\n  const char *v4; // x1\n  cocos2d::CCString *v5; // x0\n  char *CString; // x1\n  CCTextInputNode *m_fadeTimeInput; // x22\n  unsigned __int8 *v8; // x0\n  unsigned int *v9; // x2\n  int v10; // w1\n  const unsigned __int8 *v11[2]; // [xsp+40h] [xbp+40h] BYREF\n\n  m_fadeTime = a1->m_fadeTime;\n  v3 = (const unsigned __int8 *)_stack_chk_guard;\n  a1->m_disableTextDelegate = 1;\n  v11[1] = v3;\n  if ( m_fadeTime == -99999.0 )\n  {\n    CString = \"Mixed\";\n  }\n  else\n  {\n    v4 = (const char *)(unsigned int)(int)m_fadeTime;\n    if ( (float)(m_fadeTime - (float)(int)v4) == 0.0 )\n      v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", v4);\n    else\n      v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v4, m_fadeTime);\n    CString = (char *)cocos2d::CCString::getCString(v5);\n  }\n  m_fadeTimeInput = a1->m_fadeTimeInput;\n  sub_D153B8((int)v11, CString);\n  CCTextInputNode::setString(m_fadeTimeInput, v11);\n  v8 = (unsigned __int8 *)(v11[0] - 24);\n  if ( (__int64 *)v11[0] - 3 != &qword_124B6B0 )\n  {\n    if ( &pthread_create )\n    {\n      v9 = (unsigned int *)(v11[0] - 8);\n      do\n        v10 = __ldaxr(v9);\n      while ( __stlxr(v10 - 1, v9) );\n    }\n    else\n    {\n      v10 = *((_DWORD *)v11[0] - 2);\n      *((_DWORD *)v11[0] - 2) = v10 - 1;\n    }\n    if ( v10 <= 0 )\n      operator delete(v8);\n  }\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; ColorSelectPopup::updateDurLabel from 0x73c088 to 0x73c1e8 (352 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::sliderChanged @ 0x73c2c0\n; > ColorSelectPopup::init @ 0x73d7d8\n; > <???> @ 0x84768\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, 0x73c088\nMOV             W1, #1                                                 ; +0x4, 0x73c08c\nMOV             X29, SP                                                ; +0x8, 0x73c090\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0xc, 0x73c094\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x73c098\nMOV             X20, X0                                                ; +0x14, 0x73c09c\nLDR             S0, [X0,#0x438]                                        ; +0x18, 0x73c0a0\nLDR             S1, =0xC7C34F80                                        ; +0x1c, 0x73c0a4\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x73c0a8\nFCMP            S0, S1                                                 ; +0x24, 0x73c0ac\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x28, 0x73c0b0\nLDR             X0, [X0]                                               ; +0x2c, 0x73c0b4\nSTRB            W1, [X20,#0x2CC]                                       ; +0x30, 0x73c0b8\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x34, 0x73c0bc\nB.EQ            loc_73C0F0                                             ; +0x38, 0x73c0c0\nFCVTZS          W1, S0; char *                                         ; +0x3c, 0x73c0c4\nSCVTF           S1, W1                                                 ; +0x40, 0x73c0c8\nFSUB            S1, S0, S1                                             ; +0x44, 0x73c0cc\nFCMP            S1, #0.0                                               ; +0x48, 0x73c0d0\nB.NE            loc_73C158                                             ; +0x4c, 0x73c0d4\nADRL            X0, (aSongidI+8); this                                 ; +0x50, 0x73c0d8\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x58, 0x73c0e0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x5c, 0x73c0e4\nMOV             X1, X0                                                 ; +0x60, 0x73c0e8\nB               loc_73C0F8                                             ; +0x64, 0x73c0ec\nADRL            X1, aMixed; \"Mixed\"                                    ; +0x68, 0x73c0f0\nADD             X21, X29, #0x50+var_10                                 ; +0x70, 0x73c0f8\nADD             X2, X29, #0x50+var_20                                  ; +0x74, 0x73c0fc\nMOV             X0, X21; int                                           ; +0x78, 0x73c100\nLDR             X22, [X20,#0x4A0]                                      ; +0x7c, 0x73c104\nBL              sub_D153B8                                             ; +0x80, 0x73c108\nMOV             X0, X22                                                ; +0x84, 0x73c10c\nMOV             X1, X21                                                ; +0x88, 0x73c110\nBL              _ZN15CCTextInputNode9setStringESs; CCTextInputNode::setString(std::string) ; +0x8c, 0x73c114\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x90, 0x73c118\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x94, 0x73c11c\nSUB             X0, X2, #0x18; p                                       ; +0x98, 0x73c120\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x9c, 0x73c124\nCMP             X0, X1                                                 ; +0xa0, 0x73c128\nB.NE            loc_73C174                                             ; +0xa4, 0x73c12c\nSTRB            WZR, [X20,#0x2CC]                                      ; +0xa8, 0x73c130\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xac, 0x73c134\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xb0, 0x73c138\nLDR             X0, [X19]                                              ; +0xb4, 0x73c13c\nCMP             X1, X0                                                 ; +0xb8, 0x73c140\nB.NE            loc_73C1B8                                             ; +0xbc, 0x73c144\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xc0, 0x73c148\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xc4, 0x73c14c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xc8, 0x73c150\nRET                                                                    ; +0xcc, 0x73c154\nFCVT            D0, S0                                                 ; +0xd0, 0x73c158\nADRL            X0, (aScaley02f+8); this                               ; +0xd4, 0x73c15c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xdc, 0x73c164\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xe0, 0x73c168\nMOV             X1, X0                                                 ; +0xe4, 0x73c16c\nB               loc_73C0F8                                             ; +0xe8, 0x73c170\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xec, 0x73c174\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xf0, 0x73c178\nCBZ             X1, loc_73C1A8                                         ; +0xf4, 0x73c17c\nSUB             X2, X2, #8                                             ; +0xf8, 0x73c180\nLDAXR           W1, [X2]                                               ; +0xfc, 0x73c184\nSUB             W3, W1, #1                                             ; +0x100, 0x73c188\nSTLXR           W4, W3, [X2]                                           ; +0x104, 0x73c18c\nCBNZ            W4, loc_73C184                                         ; +0x108, 0x73c190\nCMP             W1, WZR                                                ; +0x10c, 0x73c194\nB.GT            loc_73C130                                             ; +0x110, 0x73c198\nADD             X1, X29, #0x50+var_18                                  ; +0x114, 0x73c19c\nBL              j__ZdlPv; operator delete(void *)                      ; +0x118, 0x73c1a0\nB               loc_73C130                                             ; +0x11c, 0x73c1a4\nLDUR            W1, [X2,#-8]                                           ; +0x120, 0x73c1a8\nSUB             W3, W1, #1                                             ; +0x124, 0x73c1ac\nSTUR            W3, [X2,#-8]                                           ; +0x128, 0x73c1b0\nB               loc_73C194                                             ; +0x12c, 0x73c1b4\nBL              .__stack_chk_fail                                      ; +0x130, 0x73c1b8\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x134, 0x73c1bc\nMOV             X19, X0                                                ; +0x138, 0x73c1c0\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x13c, 0x73c1c4\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x140, 0x73c1c8\nSUB             X0, X0, #0x18                                          ; +0x144, 0x73c1cc\nCMP             X0, X1                                                 ; +0x148, 0x73c1d0\nB.EQ            loc_73C1E0                                             ; +0x14c, 0x73c1d4\nADD             X1, X29, #0x50+var_18                                  ; +0x150, 0x73c1d8\nBL              sub_73BBC8                                             ; +0x154, 0x73c1dc\nMOV             X0, X19                                                ; +0x158, 0x73c1e0\nBL              _Unwind_Resume                                         ; +0x15c, 0x73c1e4", "xrefs": ["ColorSelectPopup::sliderChanged @ 0x73c2c0", "ColorSelectPopup::init @ 0x73d7d8", "<???> @ 0x84768"], "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"}