{"type": "func", "start": 4040348, "end": 4040460, "name": "ColorSelectPopup::updateCopyColor", "pseudocode": "// \n// ColorSelectPopup::updateCopyColor from 0x3da69c to 0x3da70c (112 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::colorSelectClosed @ 0x3da7f2\n// > ColorSelectPopup::onUpdateCopyColor @ 0x3dc6fa\n// > ColorSelectPopup::onToggleHSVMode @ 0x3dc724\n// > ColorSelectPopup::textChanged @ 0x3dd0aa\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::updateCopyColor(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // r0\n  int m_copyColorID; // r5\n  unsigned int v4; // r5\n  EffectGameObject *v5; // r0\n  int v6; // r6\n  EffectGameObject *v7; // r7\n  ColorAction *m_colorAction; // r2\n  int v9; // r3\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_copyColorID = a1->m_copyColorID;\n    if ( EffectGameObject::getTargetColorIndex(m_gameObject) == m_copyColorID )\n      m_copyColorID = 0;\n    a1->m_gameObject->m_copyColorID = m_copyColorID;\n  }\n  else if ( a1->m_gameObjects )\n  {\n    v4 = 0;\n    while ( v4 < cocos2d::CCArray::count(a1->m_gameObjects) )\n    {\n      v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4);\n      v6 = a1->m_copyColorID;\n      ++v4;\n      v7 = v5;\n      if ( EffectGameObject::getTargetColorIndex(v5) == v6 )\n        v6 = 0;\n      v7->m_copyColorID = v6;\n    }\n  }\n  else\n  {\n    m_colorAction = a1->m_colorAction;\n    if ( m_colorAction )\n    {\n      v9 = a1->m_copyColorID;\n      if ( m_colorAction->m_colorID == v9 )\n        v9 = 0;\n      m_colorAction->m_copyID = v9;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateCopyColor from 0x3da69c to 0x3da70c (112 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::colorSelectClosed @ 0x3da7f2\n; > ColorSelectPopup::onUpdateCopyColor @ 0x3dc6fa\n; > ColorSelectPopup::onToggleHSVMode @ 0x3dc724\n; > ColorSelectPopup::textChanged @ 0x3dd0aa\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-R7,LR}                                             ; +0x0, 0x3da69c\nMOV             R4, R0                                                 ; +0x2, 0x3da69e\nLDR.W           R0, [R0,#0x1FC]; this                                  ; +0x4, 0x3da6a0\nCBZ             R0, loc_3DA6BE                                         ; +0x8, 0x3da6a4\nLDR.W           R5, [R4,#0x308]                                        ; +0xa, 0x3da6a6\nBL              _ZN16EffectGameObject19getTargetColorIndexEv; EffectGameObject::getTargetColorIndex(void) ; +0xe, 0x3da6aa\nLDR.W           R3, [R4,#0x1FC]                                        ; +0x12, 0x3da6ae\nCMP             R0, R5                                                 ; +0x16, 0x3da6b2\nIT EQ                                                                  ; +0x18, 0x3da6b4\nMOVEQ           R5, #0                                                 ; +0x1a, 0x3da6b6\nSTR.W           R5, [R3,#0x5A0]                                        ; +0x1c, 0x3da6b8\nPOP             {R3-R7,PC}                                             ; +0x20, 0x3da6bc\nLDR.W           R3, [R4,#0x200]                                        ; +0x22, 0x3da6be\nCBZ             R3, loc_3DA6F6                                         ; +0x26, 0x3da6c2\nMOV             R5, R0                                                 ; +0x28, 0x3da6c4\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x2a, 0x3da6c6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2e, 0x3da6ca\nCMP             R5, R0                                                 ; +0x32, 0x3da6ce\nBCS             locret_3DA6F4                                          ; +0x34, 0x3da6d0\nMOV             R1, R5; unsigned int                                   ; +0x36, 0x3da6d2\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x38, 0x3da6d4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x3da6d8\nLDR.W           R6, [R4,#0x308]                                        ; +0x40, 0x3da6dc\nADDS            R5, #1                                                 ; +0x44, 0x3da6e0\nMOV             R7, R0                                                 ; +0x46, 0x3da6e2\nBL              _ZN16EffectGameObject19getTargetColorIndexEv; EffectGameObject::getTargetColorIndex(void) ; +0x48, 0x3da6e4\nCMP             R0, R6                                                 ; +0x4c, 0x3da6e8\nIT EQ                                                                  ; +0x4e, 0x3da6ea\nMOVEQ           R6, #0                                                 ; +0x50, 0x3da6ec\nSTR.W           R6, [R7,#0x5A0]                                        ; +0x52, 0x3da6ee\nB               loc_3DA6C6                                             ; +0x56, 0x3da6f2\nPOP             {R3-R7,PC}                                             ; +0x58, 0x3da6f4\nLDR.W           R2, [R4,#0x2F0]                                        ; +0x5a, 0x3da6f6\nCBZ             R2, locret_3DA70A                                      ; +0x5e, 0x3da6fa\nLDR.W           R3, [R4,#0x308]                                        ; +0x60, 0x3da6fc\nLDR             R1, [R2,#0x58]                                         ; +0x64, 0x3da700\nCMP             R1, R3                                                 ; +0x66, 0x3da702\nIT EQ                                                                  ; +0x68, 0x3da704\nMOVEQ           R3, #0                                                 ; +0x6a, 0x3da706\nSTR             R3, [R2,#0x74]                                         ; +0x6c, 0x3da708\nPOP             {R3-R7,PC}                                             ; +0x6e, 0x3da70a", "xrefs": ["ColorSelectPopup::colorSelectClosed @ 0x3da7f2", "ColorSelectPopup::onUpdateCopyColor @ 0x3dc6fa", "ColorSelectPopup::onToggleHSVMode @ 0x3dc724", "ColorSelectPopup::textChanged @ 0x3dd0aa"], "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"}