{"type": "func", "start": 7586600, "end": 7586788, "name": "ColorSelectPopup::updateColorValue", "pseudocode": "// \n// ColorSelectPopup::updateColorValue from 0x73c328 to 0x73c3e4 (188 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x740870\n// > <???> @ 0x3a7e8\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::updateColorValue(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // x0\n  GLubyte r; // w2\n  GLubyte g; // w1\n  cocos2d::CCArray *m_gameObjects; // x0\n  unsigned int v6; // w20\n  _BYTE *v7; // x0\n  GLubyte v8; // w2\n  GLubyte v9; // w1\n  bool v10; // cf\n  unsigned int v11; // w1\n  ColorAction *m_colorAction; // x0\n  GLubyte v13; // w2\n  GLubyte v14; // w1\n\n  if ( !a1->m_initializing )\n  {\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      r = a1->m_currentColor.r;\n      g = a1->m_currentColor.g;\n      m_gameObject->m_triggerTargetColor.b = a1->m_currentColor.b;\n      m_gameObject->m_triggerTargetColor.r = r;\n      m_gameObject->m_triggerTargetColor.g = g;\n    }\n    else\n    {\n      m_gameObjects = a1->m_gameObjects;\n      if ( m_gameObjects )\n      {\n        v6 = 0;\n        while ( 1 )\n        {\n          v10 = v6 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);\n          v11 = v6++;\n          if ( v10 )\n            break;\n          v7 = (_BYTE *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v11);\n          v8 = a1->m_currentColor.r;\n          v9 = a1->m_currentColor.g;\n          v7[1434] = a1->m_currentColor.b;\n          v7[1432] = v8;\n          v7[1433] = v9;\n          m_gameObjects = a1->m_gameObjects;\n        }\n      }\n      else\n      {\n        m_colorAction = a1->m_colorAction;\n        if ( m_colorAction )\n        {\n          v13 = a1->m_currentColor.r;\n          v14 = a1->m_currentColor.g;\n          m_colorAction->m_fromColor.b = a1->m_currentColor.b;\n          m_colorAction->m_fromColor.r = v13;\n          m_colorAction->m_fromColor.g = v14;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateColorValue from 0x73c328 to 0x73c3e4 (188 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x740870\n; > <???> @ 0x3a7e8\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, 0x73c328\nMOV             X29, SP                                                ; +0x4, 0x73c32c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x73c330\nMOV             X19, X0                                                ; +0xc, 0x73c334\nLDRB            W0, [X0,#0x464]                                        ; +0x10, 0x73c338\nCBNZ            W0, loc_73C360                                         ; +0x14, 0x73c33c\nLDR             X0, [X19,#0x290]                                       ; +0x18, 0x73c340\nCBZ             X0, loc_73C36C                                         ; +0x1c, 0x73c344\nLDRB            W2, [X19,#0x428]                                       ; +0x20, 0x73c348\nLDRB            W1, [X19,#0x429]                                       ; +0x24, 0x73c34c\nLDRB            W3, [X19,#0x42A]                                       ; +0x28, 0x73c350\nSTRB            W3, [X0,#0x59A]                                        ; +0x2c, 0x73c354\nSTRB            W2, [X0,#0x598]                                        ; +0x30, 0x73c358\nSTRB            W1, [X0,#0x599]                                        ; +0x34, 0x73c35c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x38, 0x73c360\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x3c, 0x73c364\nRET                                                                    ; +0x40, 0x73c368\nLDR             X0, [X19,#0x298]                                       ; +0x44, 0x73c36c\nCBZ             X0, loc_73C3C0                                         ; +0x48, 0x73c370\nMOV             W20, #0                                                ; +0x4c, 0x73c374\nB               loc_73C3A0                                             ; +0x50, 0x73c378\nLDR             X0, [X19,#0x298]; this                                 ; +0x54, 0x73c37c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x73c380\nLDRB            W2, [X19,#0x428]                                       ; +0x5c, 0x73c384\nLDRB            W1, [X19,#0x429]                                       ; +0x60, 0x73c388\nLDRB            W3, [X19,#0x42A]                                       ; +0x64, 0x73c38c\nSTRB            W3, [X0,#0x59A]                                        ; +0x68, 0x73c390\nSTRB            W2, [X0,#0x598]                                        ; +0x6c, 0x73c394\nSTRB            W1, [X0,#0x599]                                        ; +0x70, 0x73c398\nLDR             X0, [X19,#0x298]; this                                 ; +0x74, 0x73c39c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x78, 0x73c3a0\nCMP             W20, W0                                                ; +0x7c, 0x73c3a4\nMOV             W1, W20; unsigned int                                  ; +0x80, 0x73c3a8\nADD             W20, W20, #1                                           ; +0x84, 0x73c3ac\nB.CC            loc_73C37C                                             ; +0x88, 0x73c3b0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x8c, 0x73c3b4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x90, 0x73c3b8\nRET                                                                    ; +0x94, 0x73c3bc\nLDR             X0, [X19,#0x448]                                       ; +0x98, 0x73c3c0\nCBZ             X0, loc_73C360                                         ; +0x9c, 0x73c3c4\nLDRB            W2, [X19,#0x428]                                       ; +0xa0, 0x73c3c8\nLDRB            W1, [X19,#0x429]                                       ; +0xa4, 0x73c3cc\nLDRB            W3, [X19,#0x42A]                                       ; +0xa8, 0x73c3d0\nSTRB            W3, [X0,#0x4A]                                         ; +0xac, 0x73c3d4\nSTRB            W2, [X0,#0x48]                                         ; +0xb0, 0x73c3d8\nSTRB            W1, [X0,#0x49]                                         ; +0xb4, 0x73c3dc\nB               loc_73C360                                             ; +0xb8, 0x73c3e0", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x740870", "<???> @ 0x3a7e8"], "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"}