{"type": "func", "start": 7585552, "end": 7585676, "name": "ColorSelectPopup::onHSVLegacyMode", "pseudocode": "// \n// ColorSelectPopup::onHSVLegacyMode from 0x73bf10 to 0x73bf8c (124 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x62898\n// > ColorSelectPopup::init @ 0x73f230\n// > <???> @ 0x122b2f0\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::onHSVLegacyMode(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  EffectGameObject *m_gameObject; // x2\n  bool v3; // w1\n  cocos2d::CCArray *m_gameObjects; // x1\n  unsigned int v6; // w20\n  __int64 v7; // x0\n  bool v8; // cf\n  unsigned int v9; // w1\n\n  m_gameObject = a1->m_gameObject;\n  v3 = !a1->m_legacyHSV;\n  a1->m_legacyHSV = v3;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_legacyHSV = v3;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v6 = 0;\n      while ( 1 )\n      {\n        v8 = v6 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n        v9 = v6++;\n        if ( v8 )\n          break;\n        v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v9);\n        m_gameObjects = a1->m_gameObjects;\n        *(_BYTE *)(v7 + 1620) = a1->m_legacyHSV;\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::onHSVLegacyMode from 0x73bf10 to 0x73bf8c (124 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x62898\n; > ColorSelectPopup::init @ 0x73f230\n; > <???> @ 0x122b2f0\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,#-0x20+var_s0]!                          ; +0x0, 0x73bf10\nMOV             X29, SP                                                ; +0x4, 0x73bf14\nLDRB            W1, [X0,#0x45A]                                        ; +0x8, 0x73bf18\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x73bf1c\nLDR             X2, [X0,#0x290]                                        ; +0x10, 0x73bf20\nEOR             W1, W1, #1                                             ; +0x14, 0x73bf24\nSTRB            W1, [X0,#0x45A]                                        ; +0x18, 0x73bf28\nCBZ             X2, loc_73BF40                                         ; +0x1c, 0x73bf2c\nSTRB            W1, [X2,#0x654]                                        ; +0x20, 0x73bf30\nLDP             X19, X20, [SP,#var_s10]                                ; +0x24, 0x73bf34\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x28, 0x73bf38\nRET                                                                    ; +0x2c, 0x73bf3c\nLDR             X1, [X0,#0x298]                                        ; +0x30, 0x73bf40\nCBZ             X1, loc_73BF34                                         ; +0x34, 0x73bf44\nMOV             X19, X0                                                ; +0x38, 0x73bf48\nMOV             W20, #0                                                ; +0x3c, 0x73bf4c\nB               loc_73BF68                                             ; +0x40, 0x73bf50\nLDR             X0, [X19,#0x298]; this                                 ; +0x44, 0x73bf54\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x73bf58\nLDRB            W2, [X19,#0x45A]                                       ; +0x4c, 0x73bf5c\nLDR             X1, [X19,#0x298]                                       ; +0x50, 0x73bf60\nSTRB            W2, [X0,#0x654]                                        ; +0x54, 0x73bf64\nMOV             X0, X1; this                                           ; +0x58, 0x73bf68\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0x73bf6c\nCMP             W20, W0                                                ; +0x60, 0x73bf70\nMOV             W1, W20; unsigned int                                  ; +0x64, 0x73bf74\nADD             W20, W20, #1                                           ; +0x68, 0x73bf78\nB.CC            loc_73BF54                                             ; +0x6c, 0x73bf7c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x73bf80\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x74, 0x73bf84\nRET                                                                    ; +0x78, 0x73bf88", "xrefs": ["<???> @ 0x62898", "ColorSelectPopup::init @ 0x73f230", "<???> @ 0x122b2f0"], "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"}