{"type": "func", "start": 4299293840, "end": 4299293960, "name": "ColorSelectPopup::updateCustomColorIdx", "pseudocode": "// \n// ColorSelectPopup::updateCustomColorIdx from 0x100420490 to 0x100420508 (120 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::onUpdateCopyColor @ 0x10041f0a8\n// > ColorSelectPopup::textChanged @ 0x1004206ec\n// > ColorSelectPopup::colorSelectClosed @ 0x1004209cc\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::updateCustomColorIdx(ColorSelectPopup *a1)\n{\n  int m_colorID; // w8\n  EffectGameObject *m_gameObject; // x9\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v5; // w20\n\n  m_colorID = a1->m_colorID;\n  if ( m_colorID <= 1 )\n    m_colorID = 1;\n  a1->m_colorID = m_colorID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetColor = m_colorID;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_10024A36C((__int64)m_gameObjects) )\n    {\n      v5 = 0;\n      do\n        *(_DWORD *)(sub_10024A388((__int64)a1->m_gameObjects, v5++) + 1024) = a1->m_colorID;\n      while ( v5 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateCustomColorIdx from 0x100420490 to 0x100420508 (120 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::onUpdateCopyColor @ 0x10041f0a8\n; > ColorSelectPopup::textChanged @ 0x1004206ec\n; > ColorSelectPopup::colorSelectClosed @ 0x1004209cc\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100420490\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100420494\nADD             X29, SP, #0x10                                         ; +0x8, 0x100420498\nLDR             W8, [X0,#0x448]                                        ; +0xc, 0x10042049c\nCMP             W8, #1                                                 ; +0x10, 0x1004204a0\nCSINC           W8, W8, WZR, GT                                        ; +0x14, 0x1004204a4\nSTR             W8, [X0,#0x448]                                        ; +0x18, 0x1004204a8\nLDR             X9, [X0,#0x290]                                        ; +0x1c, 0x1004204ac\nCBZ             X9, loc_1004204C4                                      ; +0x20, 0x1004204b0\nSTR             W8, [X9,#0x400]                                        ; +0x24, 0x1004204b4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x28, 0x1004204b8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x2c, 0x1004204bc\nRET                                                                    ; +0x30, 0x1004204c0\nMOV             X19, X0                                                ; +0x34, 0x1004204c4\nLDR             X0, [X0,#0x298]                                        ; +0x38, 0x1004204c8\nCBZ             X0, loc_1004204B8                                      ; +0x3c, 0x1004204cc\nBL              sub_10024A36C                                          ; +0x40, 0x1004204d0\nCBZ             W0, loc_1004204B8                                      ; +0x44, 0x1004204d4\nMOV             W20, #0                                                ; +0x48, 0x1004204d8\nLDR             X0, [X19,#0x298]                                       ; +0x4c, 0x1004204dc\nMOV             X1, X20                                                ; +0x50, 0x1004204e0\nBL              sub_10024A388                                          ; +0x54, 0x1004204e4\nLDR             W8, [X19,#0x448]                                       ; +0x58, 0x1004204e8\nSTR             W8, [X0,#0x400]                                        ; +0x5c, 0x1004204ec\nADD             W20, W20, #1                                           ; +0x60, 0x1004204f0\nLDR             X0, [X19,#0x298]                                       ; +0x64, 0x1004204f4\nBL              sub_10024A36C                                          ; +0x68, 0x1004204f8\nCMP             W20, W0                                                ; +0x6c, 0x1004204fc\nB.CC            loc_1004204DC                                          ; +0x70, 0x100420500\nB               loc_1004204B8                                          ; +0x74, 0x100420504", "xrefs": ["ColorSelectPopup::onUpdateCopyColor @ 0x10041f0a8", "ColorSelectPopup::textChanged @ 0x1004206ec", "ColorSelectPopup::colorSelectClosed @ 0x1004209cc"], "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"}