{"type": "func", "start": 5108176, "end": 5108288, "name": "ColorSelectPopup::updateCopyColor", "pseudocode": "// \n// ColorSelectPopup::updateCopyColor from 0x4df1d0 to 0x4df240 (112 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::colorSelectClosed @ 0x4df91a\n// > ColorSelectPopup::onUpdateCopyColor @ 0x4dfa68\n// > ColorSelectPopup::onToggleHSVMode @ 0x4dfa92\n// > ColorSelectPopup::textChanged @ 0x4e21fa\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:50:59 +0000\n// \n\nEffectGameObject *__fastcall ColorSelectPopup::updateCopyColor(ColorSelectPopup *this)\n{\n  EffectGameObject *result; // r0\n  EffectGameObject *v3; // r5\n  unsigned int v4; // r5\n  EffectGameObject *v5; // r0\n  int v6; // r6\n  EffectGameObject *v7; // r7\n  int v8; // r2\n  int v9; // r3\n\n  result = *((EffectGameObject **)this + 132);\n  if ( result )\n  {\n    v3 = *((EffectGameObject **)this + 202);\n    result = (EffectGameObject *)EffectGameObject::getTargetColorIndex(result);\n    if ( result == v3 )\n      v3 = nullptr;\n    *(_DWORD *)(*((_DWORD *)this + 132) + 1448) = v3;\n  }\n  else if ( *((_DWORD *)this + 133) )\n  {\n    v4 = 0;\n    while ( 1 )\n    {\n      result = (EffectGameObject *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133));\n      if ( v4 >= (unsigned int)result )\n        break;\n      v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), v4);\n      v6 = *((_DWORD *)this + 202);\n      ++v4;\n      v7 = v5;\n      if ( EffectGameObject::getTargetColorIndex(v5) == v6 )\n        v6 = 0;\n      *((_DWORD *)v7 + 362) = v6;\n    }\n  }\n  else\n  {\n    v8 = *((_DWORD *)this + 196);\n    if ( v8 )\n    {\n      v9 = *((_DWORD *)this + 202);\n      if ( *(_DWORD *)(v8 + 88) == v9 )\n        v9 = 0;\n      *(_DWORD *)(v8 + 116) = v9;\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateCopyColor from 0x4df1d0 to 0x4df240 (112 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::colorSelectClosed @ 0x4df91a\n; > ColorSelectPopup::onUpdateCopyColor @ 0x4dfa68\n; > ColorSelectPopup::onToggleHSVMode @ 0x4dfa92\n; > ColorSelectPopup::textChanged @ 0x4e21fa\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:50:59 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x4df1d0\nMOV             R4, R0                                                 ; +0x2, 0x4df1d2\nLDR.W           R0, [R0,#0x210]; this                                  ; +0x4, 0x4df1d4\nCBZ             R0, loc_4DF1F2                                         ; +0x8, 0x4df1d8\nLDR.W           R5, [R4,#0x328]                                        ; +0xa, 0x4df1da\nBL              _ZN16EffectGameObject19getTargetColorIndexEv; EffectGameObject::getTargetColorIndex(void) ; +0xe, 0x4df1de\nLDR.W           R3, [R4,#0x210]                                        ; +0x12, 0x4df1e2\nCMP             R0, R5                                                 ; +0x16, 0x4df1e6\nIT EQ                                                                  ; +0x18, 0x4df1e8\nMOVEQ           R5, #0                                                 ; +0x1a, 0x4df1ea\nSTR.W           R5, [R3,#0x5A8]                                        ; +0x1c, 0x4df1ec\nPOP             {R3-R7,PC}                                             ; +0x20, 0x4df1f0\nLDR.W           R3, [R4,#0x214]                                        ; +0x22, 0x4df1f2\nCBZ             R3, loc_4DF22A                                         ; +0x26, 0x4df1f6\nMOV             R5, R0                                                 ; +0x28, 0x4df1f8\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x2a, 0x4df1fa\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2e, 0x4df1fe\nCMP             R5, R0                                                 ; +0x32, 0x4df202\nBCS             locret_4DF228                                          ; +0x34, 0x4df204\nMOV             R1, R5; unsigned int                                   ; +0x36, 0x4df206\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x38, 0x4df208\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3c, 0x4df20c\nLDR.W           R6, [R4,#0x328]                                        ; +0x40, 0x4df210\nADDS            R5, #1                                                 ; +0x44, 0x4df214\nMOV             R7, R0                                                 ; +0x46, 0x4df216\nBL              _ZN16EffectGameObject19getTargetColorIndexEv; EffectGameObject::getTargetColorIndex(void) ; +0x48, 0x4df218\nCMP             R0, R6                                                 ; +0x4c, 0x4df21c\nIT EQ                                                                  ; +0x4e, 0x4df21e\nMOVEQ           R6, #0                                                 ; +0x50, 0x4df220\nSTR.W           R6, [R7,#0x5A8]                                        ; +0x52, 0x4df222\nB               loc_4DF1FA                                             ; +0x56, 0x4df226\nPOP             {R3-R7,PC}                                             ; +0x58, 0x4df228\nLDR.W           R2, [R4,#0x310]                                        ; +0x5a, 0x4df22a\nCBZ             R2, locret_4DF23E                                      ; +0x5e, 0x4df22e\nLDR.W           R3, [R4,#0x328]                                        ; +0x60, 0x4df230\nLDR             R1, [R2,#0x58]                                         ; +0x64, 0x4df234\nCMP             R1, R3                                                 ; +0x66, 0x4df236\nIT EQ                                                                  ; +0x68, 0x4df238\nMOVEQ           R3, #0                                                 ; +0x6a, 0x4df23a\nSTR             R3, [R2,#0x74]                                         ; +0x6c, 0x4df23c\nPOP             {R3-R7,PC}                                             ; +0x6e, 0x4df23e", "xrefs": ["ColorSelectPopup::colorSelectClosed @ 0x4df91a", "ColorSelectPopup::onUpdateCopyColor @ 0x4dfa68", "ColorSelectPopup::onToggleHSVMode @ 0x4dfa92", "ColorSelectPopup::textChanged @ 0x4e21fa"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}