{"type": "func", "start": 4039064, "end": 4039198, "name": "ColorSelectPopup::updateColorValue", "pseudocode": "// \n// ColorSelectPopup::updateColorValue from 0x3da198 to 0x3da21e (134 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x3dcb4e\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; // r3\n  GLubyte g; // r1\n  GLubyte b; // r2\n  EffectGameObject *v5; // r5\n  _BYTE *v6; // r0\n  GLubyte v7; // r2\n  GLubyte v8; // r3\n  ColorAction *m_colorAction; // r3\n  GLubyte v10; // r1\n  GLubyte v11; // r2\n\n  if ( !a1->m_initializing )\n  {\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      g = a1->m_currentColor.g;\n      b = a1->m_currentColor.b;\n      m_gameObject->m_triggerTargetColor.r = a1->m_currentColor.r;\n      m_gameObject->m_triggerTargetColor.g = g;\n      m_gameObject->m_triggerTargetColor.b = b;\n    }\n    else if ( a1->m_gameObjects )\n    {\n      v5 = a1->m_gameObject;\n      while ( (unsigned int)v5 < cocos2d::CCArray::count(a1->m_gameObjects) )\n      {\n        v6 = (_BYTE *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)v5);\n        v7 = a1->m_currentColor.g;\n        v5 = (EffectGameObject *)((char *)v5 + 1);\n        v8 = a1->m_currentColor.b;\n        v6[1260] = a1->m_currentColor.r;\n        v6[1261] = v7;\n        v6[1262] = v8;\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n      {\n        v10 = a1->m_currentColor.g;\n        v11 = a1->m_currentColor.b;\n        m_colorAction->m_fromColor.r = a1->m_currentColor.r;\n        m_colorAction->m_fromColor.g = v10;\n        m_colorAction->m_fromColor.b = v11;\n      }\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateColorValue from 0x3da198 to 0x3da21e (134 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x3dcb4e\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3da198\nMOV             R4, R0                                                 ; +0x2, 0x3da19a\nLDRB.W          R3, [R0,#0x304]                                        ; +0x4, 0x3da19c\nCBNZ            R3, locret_3DA21C                                      ; +0x8, 0x3da1a0\nLDR.W           R3, [R0,#0x1FC]                                        ; +0xa, 0x3da1a2\nCBZ             R3, loc_3DA1C2                                         ; +0xe, 0x3da1a6\nLDRB.W          R0, [R0,#0x2D8]                                        ; +0x10, 0x3da1a8\nLDRB.W          R1, [R4,#0x2D9]                                        ; +0x14, 0x3da1ac\nLDRB.W          R2, [R4,#0x2DA]                                        ; +0x18, 0x3da1b0\nSTRB.W          R0, [R3,#0x4EC]                                        ; +0x1c, 0x3da1b4\nSTRB.W          R1, [R3,#0x4ED]                                        ; +0x20, 0x3da1b8\nSTRB.W          R2, [R3,#0x4EE]                                        ; +0x24, 0x3da1bc\nPOP             {R3-R5,PC}                                             ; +0x28, 0x3da1c0\nLDR.W           R2, [R0,#0x200]                                        ; +0x2a, 0x3da1c2\nCBZ             R2, loc_3DA1FE                                         ; +0x2e, 0x3da1c6\nMOV             R5, R3                                                 ; +0x30, 0x3da1c8\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x32, 0x3da1ca\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x3da1ce\nCMP             R5, R0                                                 ; +0x3a, 0x3da1d2\nBCS             locret_3DA1FC                                          ; +0x3c, 0x3da1d4\nMOV             R1, R5; unsigned int                                   ; +0x3e, 0x3da1d6\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x40, 0x3da1d8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x3da1dc\nLDRB.W          R1, [R4,#0x2D8]                                        ; +0x48, 0x3da1e0\nLDRB.W          R2, [R4,#0x2D9]                                        ; +0x4c, 0x3da1e4\nADDS            R5, #1                                                 ; +0x50, 0x3da1e8\nLDRB.W          R3, [R4,#0x2DA]                                        ; +0x52, 0x3da1ea\nSTRB.W          R1, [R0,#0x4EC]                                        ; +0x56, 0x3da1ee\nSTRB.W          R2, [R0,#0x4ED]                                        ; +0x5a, 0x3da1f2\nSTRB.W          R3, [R0,#0x4EE]                                        ; +0x5e, 0x3da1f6\nB               loc_3DA1CA                                             ; +0x62, 0x3da1fa\nPOP             {R3-R5,PC}                                             ; +0x64, 0x3da1fc\nLDR.W           R3, [R0,#0x2F0]                                        ; +0x66, 0x3da1fe\nCBZ             R3, locret_3DA21C                                      ; +0x6a, 0x3da202\nLDRB.W          R0, [R0,#0x2D8]                                        ; +0x6c, 0x3da204\nLDRB.W          R1, [R4,#0x2D9]                                        ; +0x70, 0x3da208\nLDRB.W          R2, [R4,#0x2DA]                                        ; +0x74, 0x3da20c\nSTRB.W          R0, [R3,#0x44]                                         ; +0x78, 0x3da210\nSTRB.W          R1, [R3,#0x45]                                         ; +0x7c, 0x3da214\nSTRB.W          R2, [R3,#0x46]                                         ; +0x80, 0x3da218\nPOP             {R3-R5,PC}                                             ; +0x84, 0x3da21c", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x3dcb4e"], "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"}