{"type": "func", "start": 8794392, "end": 8794580, "name": "ColorSelectPopup::updateCopyColor", "pseudocode": "// \n// ColorSelectPopup::updateCopyColor from 0x863118 to 0x8631d4 (188 bytes)\n// \n// 5 xrefs:\n// > ColorSelectPopup::colorSelectClosed @ 0x863a44\n// > ColorSelectPopup::onUpdateCopyColor @ 0x863d98\n// > ColorSelectPopup::onToggleHSVMode @ 0x863ddc\n// > ColorSelectPopup::textChanged @ 0x867cf8\n// > <???> @ 0xa5a18\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:37 +0000\n// \n\n__int64 __fastcall ColorSelectPopup::updateCopyColor(ColorSelectPopup *this)\n{\n  EffectGameObject *v2; // x0\n  int v3; // w19\n  __int64 result; // x0\n  unsigned int v5; // w20\n  EffectGameObject *v6; // x0\n  int v7; // w19\n  EffectGameObject *v8; // x22\n  bool v9; // cf\n  unsigned int v10; // w1\n  __int64 v11; // x1\n\n  v2 = *((EffectGameObject **)this + 85);\n  if ( v2 )\n  {\n    v3 = *((_DWORD *)this + 294);\n    result = EffectGameObject::getTargetColorIndex(v2);\n    if ( v3 == (_DWORD)result )\n      v3 = 0;\n    *(_DWORD *)(*((_QWORD *)this + 85) + 1628LL) = v3;\n  }\n  else\n  {\n    result = *((_QWORD *)this + 86);\n    if ( result )\n    {\n      v5 = 0;\n      while ( 1 )\n      {\n        result = cocos2d::CCArray::count((cocos2d::CCArray *)result);\n        v9 = v5 >= (unsigned int)result;\n        v10 = v5++;\n        if ( v9 )\n          break;\n        v6 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v10);\n        v7 = *((_DWORD *)this + 294);\n        v8 = v6;\n        if ( v7 == (unsigned int)EffectGameObject::getTargetColorIndex(v6) )\n          v7 = 0;\n        *((_DWORD *)v8 + 407) = v7;\n        result = *((_QWORD *)this + 86);\n      }\n    }\n    else\n    {\n      v11 = *((_QWORD *)this + 143);\n      if ( v11 )\n      {\n        LODWORD(result) = *((_DWORD *)this + 294);\n        if ( (_DWORD)result == *(_DWORD *)(v11 + 92) )\n          result = 0;\n        else\n          result = (unsigned int)result;\n        *(_DWORD *)(v11 + 120) = result;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectPopup::updateCopyColor from 0x863118 to 0x8631d4 (188 bytes)\n; \n; 5 xrefs:\n; > ColorSelectPopup::colorSelectClosed @ 0x863a44\n; > ColorSelectPopup::onUpdateCopyColor @ 0x863d98\n; > ColorSelectPopup::onToggleHSVMode @ 0x863ddc\n; > ColorSelectPopup::textChanged @ 0x867cf8\n; > <???> @ 0xa5a18\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:55:37 +0000\n; \nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x863118\nMOV             X29, SP                                                ; +0x4, 0x86311c\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x863120\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x863124\nMOV             X21, X0                                                ; +0x10, 0x863128\nLDR             X0, [X0,#0x2A8]; this                                  ; +0x14, 0x86312c\nCBZ             X0, loc_86315C                                         ; +0x18, 0x863130\nLDR             W19, [X21,#0x498]                                      ; +0x1c, 0x863134\nBL              _ZN16EffectGameObject19getTargetColorIndexEv; EffectGameObject::getTargetColorIndex(void) ; +0x20, 0x863138\nLDR             X1, [X21,#0x2A8]                                       ; +0x24, 0x86313c\nCMP             W19, W0                                                ; +0x28, 0x863140\nCSEL            W19, W19, WZR, NE                                      ; +0x2c, 0x863144\nSTR             W19, [X1,#0x65C]                                       ; +0x30, 0x863148\nLDP             X19, X20, [SP,#var_s10]                                ; +0x34, 0x86314c\nLDP             X21, X22, [SP,#var_s20]                                ; +0x38, 0x863150\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x3c, 0x863154\nRET                                                                    ; +0x40, 0x863158\nLDR             X0, [X21,#0x2B0]                                       ; +0x44, 0x86315c\nCBZ             X0, loc_8631B4                                         ; +0x48, 0x863160\nMOV             W20, #0                                                ; +0x4c, 0x863164\nB               loc_863190                                             ; +0x50, 0x863168\nLDR             X0, [X21,#0x2B0]; this                                 ; +0x54, 0x86316c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x863170\nLDR             W19, [X21,#0x498]                                      ; +0x5c, 0x863174\nMOV             X22, X0                                                ; +0x60, 0x863178\nBL              _ZN16EffectGameObject19getTargetColorIndexEv; EffectGameObject::getTargetColorIndex(void) ; +0x64, 0x86317c\nCMP             W19, W0                                                ; +0x68, 0x863180\nCSEL            W19, W19, WZR, NE                                      ; +0x6c, 0x863184\nSTR             W19, [X22,#0x65C]                                      ; +0x70, 0x863188\nLDR             X0, [X21,#0x2B0]; this                                 ; +0x74, 0x86318c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x78, 0x863190\nCMP             W20, W0                                                ; +0x7c, 0x863194\nMOV             W1, W20; unsigned int                                  ; +0x80, 0x863198\nADD             W20, W20, #1                                           ; +0x84, 0x86319c\nB.CC            loc_86316C                                             ; +0x88, 0x8631a0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x8c, 0x8631a4\nLDP             X21, X22, [SP,#var_s20]                                ; +0x90, 0x8631a8\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x94, 0x8631ac\nRET                                                                    ; +0x98, 0x8631b0\nLDR             X1, [X21,#0x478]                                       ; +0x9c, 0x8631b4\nCBZ             X1, loc_86314C                                         ; +0xa0, 0x8631b8\nLDR             W0, [X21,#0x498]                                       ; +0xa4, 0x8631bc\nLDR             W2, [X1,#0x5C]                                         ; +0xa8, 0x8631c0\nCMP             W0, W2                                                 ; +0xac, 0x8631c4\nCSEL            W0, W0, WZR, NE                                        ; +0xb0, 0x8631c8\nSTR             W0, [X1,#0x78]                                         ; +0xb4, 0x8631cc\nB               loc_86314C                                             ; +0xb8, 0x8631d0", "xrefs": ["ColorSelectPopup::colorSelectClosed @ 0x863a44", "ColorSelectPopup::onUpdateCopyColor @ 0x863d98", "ColorSelectPopup::onToggleHSVMode @ 0x863ddc", "ColorSelectPopup::textChanged @ 0x867cf8", "<???> @ 0xa5a18"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}