{"type": "func", "start": 4299288436, "end": 4299288556, "name": "ColorSelectPopup::onHSVLegacyMode", "pseudocode": "// \n// ColorSelectPopup::onHSVLegacyMode from 0x10041ef74 to 0x10041efec (120 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x10041d4b8\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::onHSVLegacyMode(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v2; // w8\n  EffectGameObject *m_gameObject; // x9\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v6; // w20\n\n  v2 = !a1->m_legacyHSV;\n  a1->m_legacyHSV = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_legacyHSV = v2;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects && (unsigned int)sub_10024A36C((__int64)m_gameObjects) )\n    {\n      v6 = 0;\n      do\n        *(_BYTE *)(sub_10024A388((__int64)a1->m_gameObjects, v6++) + 1636) = a1->m_legacyHSV;\n      while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) );\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::onHSVLegacyMode from 0x10041ef74 to 0x10041efec (120 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x10041d4b8\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, 0x10041ef74\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10041ef78\nADD             X29, SP, #0x10                                         ; +0x8, 0x10041ef7c\nLDRB            W8, [X0,#0x442]                                        ; +0xc, 0x10041ef80\nMOV             W9, #1                                                 ; +0x10, 0x10041ef84\nBIC             W8, W9, W8                                             ; +0x14, 0x10041ef88\nSTRB            W8, [X0,#0x442]                                        ; +0x18, 0x10041ef8c\nLDR             X9, [X0,#0x290]                                        ; +0x1c, 0x10041ef90\nCBZ             X9, loc_10041EFA8                                      ; +0x20, 0x10041ef94\nSTRB            W8, [X9,#0x664]                                        ; +0x24, 0x10041ef98\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x28, 0x10041ef9c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x2c, 0x10041efa0\nRET                                                                    ; +0x30, 0x10041efa4\nMOV             X19, X0                                                ; +0x34, 0x10041efa8\nLDR             X0, [X0,#0x298]                                        ; +0x38, 0x10041efac\nCBZ             X0, loc_10041EF9C                                      ; +0x3c, 0x10041efb0\nBL              sub_10024A36C                                          ; +0x40, 0x10041efb4\nCBZ             W0, loc_10041EF9C                                      ; +0x44, 0x10041efb8\nMOV             W20, #0                                                ; +0x48, 0x10041efbc\nLDR             X0, [X19,#0x298]                                       ; +0x4c, 0x10041efc0\nMOV             X1, X20                                                ; +0x50, 0x10041efc4\nBL              sub_10024A388                                          ; +0x54, 0x10041efc8\nLDRB            W8, [X19,#0x442]                                       ; +0x58, 0x10041efcc\nSTRB            W8, [X0,#0x664]                                        ; +0x5c, 0x10041efd0\nADD             W20, W20, #1                                           ; +0x60, 0x10041efd4\nLDR             X0, [X19,#0x298]                                       ; +0x64, 0x10041efd8\nBL              sub_10024A36C                                          ; +0x68, 0x10041efdc\nCMP             W20, W0                                                ; +0x6c, 0x10041efe0\nB.CC            loc_10041EFC0                                          ; +0x70, 0x10041efe4\nB               loc_10041EF9C                                          ; +0x74, 0x10041efe8", "xrefs": ["ColorSelectPopup::init @ 0x10041d4b8"], "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"}