{"type": "func", "start": 4299294808, "end": 4299294988, "name": "ColorSelectPopup::updateCopyColor", "pseudocode": "// \n// ColorSelectPopup::updateCopyColor from 0x100420858 to 0x10042090c (180 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::onToggleHSVMode @ 0x10041eed8\n// > ColorSelectPopup::onUpdateCustomColor @ 0x10041f210\n// > ColorSelectPopup::textChanged @ 0x100420820\n// > ColorSelectPopup::colorSelectClosed @ 0x100420a6c\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 __fastcall ColorSelectPopup::updateCopyColor(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // x0\n  int m_copyColorID; // w20\n  int v4; // w8\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v6; // w20\n  EffectGameObject *v7; // x21\n  int v8; // w22\n  int v9; // w8\n  ColorAction *m_colorAction; // x8\n  int v11; // w9\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_copyColorID = a1->m_copyColorID;\n    if ( EffectGameObject::getTargetColorIndex(m_gameObject) == m_copyColorID )\n      v4 = 0;\n    else\n      v4 = m_copyColorID;\n    a1->m_gameObject->m_copyColorID = v4;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      if ( (unsigned int)sub_10024A36C((__int64)m_gameObjects) )\n      {\n        v6 = 0;\n        do\n        {\n          v7 = (EffectGameObject *)sub_10024A388((__int64)a1->m_gameObjects, v6);\n          v8 = a1->m_copyColorID;\n          if ( EffectGameObject::getTargetColorIndex(v7) == v8 )\n            v9 = 0;\n          else\n            v9 = v8;\n          v7->m_copyColorID = v9;\n          ++v6;\n        }\n        while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n      {\n        v11 = a1->m_copyColorID;\n        if ( m_colorAction->m_colorID == v11 )\n          v11 = 0;\n        m_colorAction->m_copyID = v11;\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateCopyColor from 0x100420858 to 0x10042090c (180 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::onToggleHSVMode @ 0x10041eed8\n; > ColorSelectPopup::onUpdateCustomColor @ 0x10041f210\n; > ColorSelectPopup::textChanged @ 0x100420820\n; > ColorSelectPopup::colorSelectClosed @ 0x100420a6c\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100420858\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10042085c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100420860\nADD             X29, SP, #0x20                                         ; +0xc, 0x100420864\nMOV             X19, X0                                                ; +0x10, 0x100420868\nLDR             X0, [X0,#0x290]                                        ; +0x14, 0x10042086c\nCBZ             X0, loc_10042089C                                      ; +0x18, 0x100420870\nLDR             W20, [X19,#0x450]                                      ; +0x1c, 0x100420874\nBL              EffectGameObject__getTargetColorIndex                  ; +0x20, 0x100420878\nCMP             W0, W20                                                ; +0x24, 0x10042087c\nCSEL            W8, WZR, W20, EQ                                       ; +0x28, 0x100420880\nLDR             X9, [X19,#0x290]                                       ; +0x2c, 0x100420884\nSTR             W8, [X9,#0x65C]                                        ; +0x30, 0x100420888\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x34, 0x10042088c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x38, 0x100420890\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x3c, 0x100420894\nRET                                                                    ; +0x40, 0x100420898\nLDR             X0, [X19,#0x298]                                       ; +0x44, 0x10042089c\nCBZ             X0, loc_1004208EC                                      ; +0x48, 0x1004208a0\nBL              sub_10024A36C                                          ; +0x4c, 0x1004208a4\nCBZ             W0, loc_10042088C                                      ; +0x50, 0x1004208a8\nMOV             W20, #0                                                ; +0x54, 0x1004208ac\nLDR             X0, [X19,#0x298]                                       ; +0x58, 0x1004208b0\nMOV             X1, X20                                                ; +0x5c, 0x1004208b4\nBL              sub_10024A388                                          ; +0x60, 0x1004208b8\nMOV             X21, X0                                                ; +0x64, 0x1004208bc\nLDR             W22, [X19,#0x450]                                      ; +0x68, 0x1004208c0\nBL              EffectGameObject__getTargetColorIndex                  ; +0x6c, 0x1004208c4\nCMP             W0, W22                                                ; +0x70, 0x1004208c8\nCSEL            W8, WZR, W22, EQ                                       ; +0x74, 0x1004208cc\nSTR             W8, [X21,#0x65C]                                       ; +0x78, 0x1004208d0\nADD             W20, W20, #1                                           ; +0x7c, 0x1004208d4\nLDR             X0, [X19,#0x298]                                       ; +0x80, 0x1004208d8\nBL              sub_10024A36C                                          ; +0x84, 0x1004208dc\nCMP             W20, W0                                                ; +0x88, 0x1004208e0\nB.CC            loc_1004208B0                                          ; +0x8c, 0x1004208e4\nB               loc_10042088C                                          ; +0x90, 0x1004208e8\nLDR             X8, [X19,#0x430]                                       ; +0x94, 0x1004208ec\nCBZ             X8, loc_10042088C                                      ; +0x98, 0x1004208f0\nLDR             W9, [X19,#0x450]                                       ; +0x9c, 0x1004208f4\nLDR             W10, [X8,#0x5C]                                        ; +0xa0, 0x1004208f8\nCMP             W10, W9                                                ; +0xa4, 0x1004208fc\nCSEL            W9, WZR, W9, EQ                                        ; +0xa8, 0x100420900\nSTR             W9, [X8,#0x78]                                         ; +0xac, 0x100420904\nB               loc_10042088C                                          ; +0xb0, 0x100420908", "xrefs": ["ColorSelectPopup::onToggleHSVMode @ 0x10041eed8", "ColorSelectPopup::onUpdateCustomColor @ 0x10041f210", "ColorSelectPopup::textChanged @ 0x100420820", "ColorSelectPopup::colorSelectClosed @ 0x100420a6c"], "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"}