{"type": "func", "start": 4299291328, "end": 4299291488, "name": "ColorSelectPopup::updateColorValue", "pseudocode": "// \n// ColorSelectPopup::updateColorValue from 0x10041fac0 to 0x10041fb60 (160 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x10041faa0\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::updateColorValue(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // x8\n  __int16 v3; // w9\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v5; // w20\n  __int64 v6; // x0\n  __int16 v7; // w8\n  ColorAction *m_colorAction; // x8\n  __int16 v9; // w9\n\n  if ( !a1->m_initializing )\n  {\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      v3 = *(_WORD *)&a1->m_currentColor.r;\n      m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b;\n      *(_WORD *)&m_gameObject->m_triggerTargetColor.r = v3;\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          v5 = 0;\n          do\n          {\n            v6 = sub_10024A388((__int64)a1->m_gameObjects, v5);\n            v7 = *(_WORD *)&a1->m_currentColor.r;\n            *(_BYTE *)(v6 + 1450) = a1->m_currentColor.b;\n            *(_WORD *)(v6 + 1448) = v7;\n            ++v5;\n          }\n          while ( v5 < (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          v9 = *(_WORD *)&a1->m_currentColor.r;\n          m_colorAction->m_fromColor.b = a1->m_currentColor.b;\n          *(_WORD *)&m_colorAction->m_fromColor.r = v9;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateColorValue from 0x10041fac0 to 0x10041fb60 (160 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x10041faa0\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\nLDRB            W8, [X0,#0x44C]                                        ; +0x0, 0x10041fac0\nTBNZ            W8, #0, locret_10041FAF8                               ; +0x4, 0x10041fac4\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x8, 0x10041fac8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x10041facc\nADD             X29, SP, #0x10                                         ; +0x10, 0x10041fad0\nMOV             X19, X0                                                ; +0x14, 0x10041fad4\nLDR             X8, [X0,#0x290]                                        ; +0x18, 0x10041fad8\nCBZ             X8, loc_10041FAFC                                      ; +0x1c, 0x10041fadc\nLDRH            W9, [X19,#0x410]                                       ; +0x20, 0x10041fae0\nLDRB            W10, [X19,#0x412]                                      ; +0x24, 0x10041fae4\nSTRB            W10, [X8,#0x5AA]                                       ; +0x28, 0x10041fae8\nSTRH            W9, [X8,#0x5A8]                                        ; +0x2c, 0x10041faec\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x30, 0x10041faf0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x34, 0x10041faf4\nRET                                                                    ; +0x38, 0x10041faf8\nLDR             X0, [X19,#0x298]                                       ; +0x3c, 0x10041fafc\nCBZ             X0, loc_10041FB44                                      ; +0x40, 0x10041fb00\nBL              sub_10024A36C                                          ; +0x44, 0x10041fb04\nCBZ             W0, loc_10041FAF0                                      ; +0x48, 0x10041fb08\nMOV             W20, #0                                                ; +0x4c, 0x10041fb0c\nLDR             X0, [X19,#0x298]                                       ; +0x50, 0x10041fb10\nMOV             X1, X20                                                ; +0x54, 0x10041fb14\nBL              sub_10024A388                                          ; +0x58, 0x10041fb18\nLDRH            W8, [X19,#0x410]                                       ; +0x5c, 0x10041fb1c\nLDRB            W9, [X19,#0x412]                                       ; +0x60, 0x10041fb20\nSTRB            W9, [X0,#0x5AA]                                        ; +0x64, 0x10041fb24\nSTRH            W8, [X0,#0x5A8]                                        ; +0x68, 0x10041fb28\nADD             W20, W20, #1                                           ; +0x6c, 0x10041fb2c\nLDR             X0, [X19,#0x298]                                       ; +0x70, 0x10041fb30\nBL              sub_10024A36C                                          ; +0x74, 0x10041fb34\nCMP             W20, W0                                                ; +0x78, 0x10041fb38\nB.CC            loc_10041FB10                                          ; +0x7c, 0x10041fb3c\nB               loc_10041FAF0                                          ; +0x80, 0x10041fb40\nLDR             X8, [X19,#0x430]                                       ; +0x84, 0x10041fb44\nCBZ             X8, loc_10041FAF0                                      ; +0x88, 0x10041fb48\nLDRH            W9, [X19,#0x410]                                       ; +0x8c, 0x10041fb4c\nLDRB            W10, [X19,#0x412]                                      ; +0x90, 0x10041fb50\nSTRB            W10, [X8,#0x4A]                                        ; +0x94, 0x10041fb54\nSTRH            W9, [X8,#0x48]                                         ; +0x98, 0x10041fb58\nB               loc_10041FAF0                                          ; +0x9c, 0x10041fb5c", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x10041faa0"], "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"}