{"type": "func", "start": 7601728, "end": 7601960, "name": "ColorSelectPopup::updateHSVValue", "pseudocode": "// \n// ColorSelectPopup::updateHSVValue from 0x73fe40 to 0x73ff28 (232 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::closeColorSelect @ 0x7400b8\n// > <???> @ 0x59b38\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::updateHSVValue(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // x0\n  float h; // w3\n  float s; // w2\n  bool absoluteBrightness; // w4\n  float v; // w1\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v8; // w20\n  __int64 v9; // x1\n  float v10; // w4\n  float v11; // w3\n  bool v12; // w5\n  float v13; // w2\n  bool v14; // cf\n  unsigned int v15; // w1\n  ColorAction *m_colorAction; // x0\n  float v17; // w3\n  float v18; // w2\n  bool v19; // w4\n  float v20; // w1\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    h = a1->m_hsv.h;\n    s = a1->m_hsv.s;\n    absoluteBrightness = a1->m_hsv.absoluteBrightness;\n    v = a1->m_hsv.v;\n    m_gameObject->m_hsvValue.absoluteSaturation = a1->m_hsv.absoluteSaturation;\n    m_gameObject->m_hsvValue.absoluteBrightness = absoluteBrightness;\n    m_gameObject->m_hsvValue.h = h;\n    m_gameObject->m_hsvValue.s = s;\n    m_gameObject->m_hsvValue.v = v;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v8 = 0;\n      while ( 1 )\n      {\n        v14 = v8 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n        v15 = v8++;\n        if ( v14 )\n          break;\n        v9 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v15);\n        v10 = a1->m_hsv.h;\n        v11 = a1->m_hsv.s;\n        v12 = a1->m_hsv.absoluteBrightness;\n        v13 = a1->m_hsv.v;\n        m_gameObjects = a1->m_gameObjects;\n        *(_BYTE *)(v9 + 1608) = a1->m_hsv.absoluteSaturation;\n        *(_BYTE *)(v9 + 1609) = v12;\n        *(float *)(v9 + 1596) = v10;\n        *(float *)(v9 + 1600) = v11;\n        *(float *)(v9 + 1604) = v13;\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n      {\n        v17 = a1->m_hsv.h;\n        v18 = a1->m_hsv.s;\n        v19 = a1->m_hsv.absoluteBrightness;\n        v20 = a1->m_hsv.v;\n        m_colorAction->m_copyHSV.absoluteSaturation = a1->m_hsv.absoluteSaturation;\n        m_colorAction->m_copyHSV.absoluteBrightness = v19;\n        m_colorAction->m_copyHSV.h = v17;\n        m_colorAction->m_copyHSV.s = v18;\n        m_colorAction->m_copyHSV.v = v20;\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateHSVValue from 0x73fe40 to 0x73ff28 (232 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::closeColorSelect @ 0x7400b8\n; > <???> @ 0x59b38\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, 0x73fe40\nMOV             X29, SP                                                ; +0x4, 0x73fe44\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x73fe48\nMOV             X19, X0                                                ; +0xc, 0x73fe4c\nLDR             X0, [X0,#0x290]                                        ; +0x10, 0x73fe50\nCBZ             X0, loc_73FE8C                                         ; +0x14, 0x73fe54\nLDR             W3, [X19,#0x478]                                       ; +0x18, 0x73fe58\nLDRB            W5, [X19,#0x484]                                       ; +0x1c, 0x73fe5c\nLDR             W2, [X19,#0x47C]                                       ; +0x20, 0x73fe60\nLDRB            W4, [X19,#0x485]                                       ; +0x24, 0x73fe64\nLDR             W1, [X19,#0x480]                                       ; +0x28, 0x73fe68\nSTRB            W5, [X0,#0x648]                                        ; +0x2c, 0x73fe6c\nSTRB            W4, [X0,#0x649]                                        ; +0x30, 0x73fe70\nSTR             W3, [X0,#0x63C]                                        ; +0x34, 0x73fe74\nSTR             W2, [X0,#0x640]                                        ; +0x38, 0x73fe78\nSTR             W1, [X0,#0x644]                                        ; +0x3c, 0x73fe7c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x40, 0x73fe80\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x44, 0x73fe84\nRET                                                                    ; +0x48, 0x73fe88\nLDR             X0, [X19,#0x298]                                       ; +0x4c, 0x73fe8c\nCBZ             X0, loc_73FEF4                                         ; +0x50, 0x73fe90\nMOV             W20, #0                                                ; +0x54, 0x73fe94\nB               loc_73FED4                                             ; +0x58, 0x73fe98\nLDR             X0, [X19,#0x298]; this                                 ; +0x5c, 0x73fe9c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x60, 0x73fea0\nMOV             X1, X0                                                 ; +0x64, 0x73fea4\nLDR             W4, [X19,#0x478]                                       ; +0x68, 0x73fea8\nLDRB            W6, [X19,#0x484]                                       ; +0x6c, 0x73feac\nLDR             W3, [X19,#0x47C]                                       ; +0x70, 0x73feb0\nLDRB            W5, [X19,#0x485]                                       ; +0x74, 0x73feb4\nLDR             W2, [X19,#0x480]                                       ; +0x78, 0x73feb8\nLDR             X0, [X19,#0x298]; this                                 ; +0x7c, 0x73febc\nSTRB            W6, [X1,#0x648]                                        ; +0x80, 0x73fec0\nSTRB            W5, [X1,#0x649]                                        ; +0x84, 0x73fec4\nSTR             W4, [X1,#0x63C]                                        ; +0x88, 0x73fec8\nSTR             W3, [X1,#0x640]                                        ; +0x8c, 0x73fecc\nSTR             W2, [X1,#0x644]                                        ; +0x90, 0x73fed0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x94, 0x73fed4\nCMP             W20, W0                                                ; +0x98, 0x73fed8\nMOV             W1, W20; unsigned int                                  ; +0x9c, 0x73fedc\nADD             W20, W20, #1                                           ; +0xa0, 0x73fee0\nB.CC            loc_73FE9C                                             ; +0xa4, 0x73fee4\nLDP             X19, X20, [SP,#var_s10]                                ; +0xa8, 0x73fee8\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xac, 0x73feec\nRET                                                                    ; +0xb0, 0x73fef0\nLDR             X0, [X19,#0x448]                                       ; +0xb4, 0x73fef4\nCBZ             X0, loc_73FE80                                         ; +0xb8, 0x73fef8\nLDR             W3, [X19,#0x478]                                       ; +0xbc, 0x73fefc\nLDRB            W5, [X19,#0x484]                                       ; +0xc0, 0x73ff00\nLDR             W2, [X19,#0x47C]                                       ; +0xc4, 0x73ff04\nLDRB            W4, [X19,#0x485]                                       ; +0xc8, 0x73ff08\nLDR             W1, [X19,#0x480]                                       ; +0xcc, 0x73ff0c\nSTRB            W5, [X0,#0x74]                                         ; +0xd0, 0x73ff10\nSTRB            W4, [X0,#0x75]                                         ; +0xd4, 0x73ff14\nSTR             W3, [X0,#0x68]                                         ; +0xd8, 0x73ff18\nSTR             W2, [X0,#0x6C]                                         ; +0xdc, 0x73ff1c\nSTR             W1, [X0,#0x70]                                         ; +0xe0, 0x73ff20\nB               loc_73FE80                                             ; +0xe4, 0x73ff24", "xrefs": ["ColorSelectPopup::closeColorSelect @ 0x7400b8", "<???> @ 0x59b38"], "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"}