{"type": "func", "start": 8794112, "end": 8794392, "name": "ColorSelectPopup::updateHSVMode", "pseudocode": "// \n// ColorSelectPopup::updateHSVMode from 0x863000 to 0x863118 (280 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::onToggleHSVMode @ 0x863dec\n// > ColorSelectPopup::init @ 0x8643e8\n// > <???> @ 0xe2048\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::updateHSVMode(cocos2d::CCArray **this)\n{\n  unsigned int v2; // w20\n  __int64 v3; // x0\n  bool v4; // cf\n  unsigned int v5; // w1\n  unsigned int v6; // w20\n  __int64 v7; // x0\n  unsigned int v8; // w1\n\n  v2 = 0;\n  while ( 1 )\n  {\n    v4 = v2 >= (unsigned int)cocos2d::CCArray::count(*(this + 151));\n    v5 = v2++;\n    if ( v4 )\n      break;\n    v3 = cocos2d::CCArray::objectAtIndex(*(this + 151), v5);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, *((unsigned __int8 *)this + 1256) ^ 1u);\n  }\n  v6 = 0;\n  while ( 1 )\n  {\n    v4 = v6 >= (unsigned int)cocos2d::CCArray::count(*(this + 152));\n    v8 = v6++;\n    if ( v4 )\n      break;\n    v7 = cocos2d::CCArray::objectAtIndex(*(this + 152), v8);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 344LL))(v7, *((unsigned __int8 *)this + 1256));\n  }\n  (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 153) + 1000LL))(\n    *(this + 153),\n    *((unsigned __int8 *)this + 1256));\n  (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 158) + 1000LL))(\n    *(this + 158),\n    *((unsigned __int8 *)this + 1256) ^ 1u);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 159) + 1000LL))(\n    *(this + 159),\n    *((unsigned __int8 *)this + 1256) ^ 1u);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 160) + 1000LL))(\n    *(this + 160),\n    *((unsigned __int8 *)this + 1256) ^ 1u);\n  return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 161) + 1000LL))(\n           *(this + 161),\n           *((unsigned __int8 *)this + 1256) ^ 1u);\n}", "assembly": "; \n; ColorSelectPopup::updateHSVMode from 0x863000 to 0x863118 (280 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::onToggleHSVMode @ 0x863dec\n; > ColorSelectPopup::init @ 0x8643e8\n; > <???> @ 0xe2048\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,#-0x20+var_s0]!                          ; +0x0, 0x863000\nMOV             X29, SP                                                ; +0x4, 0x863004\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x863008\nMOV             X19, X0                                                ; +0xc, 0x86300c\nMOV             W20, #0                                                ; +0x10, 0x863010\nB               loc_863034                                             ; +0x14, 0x863014\nLDR             X0, [X19,#0x4B8]; this                                 ; +0x18, 0x863018\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1c, 0x86301c\nLDR             X2, [X0]                                               ; +0x20, 0x863020\nLDRB            W1, [X19,#0x4E8]                                       ; +0x24, 0x863024\nLDR             X2, [X2,#0x158]                                        ; +0x28, 0x863028\nEOR             W1, W1, #1                                             ; +0x2c, 0x86302c\nBLR             X2                                                     ; +0x30, 0x863030\nLDR             X0, [X19,#0x4B8]; this                                 ; +0x34, 0x863034\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x863038\nCMP             W20, W0                                                ; +0x3c, 0x86303c\nMOV             W1, W20; unsigned int                                  ; +0x40, 0x863040\nADD             W20, W20, #1                                           ; +0x44, 0x863044\nB.CC            loc_863018                                             ; +0x48, 0x863048\nMOV             W20, #0                                                ; +0x4c, 0x86304c\nB               loc_86306C                                             ; +0x50, 0x863050\nLDR             X0, [X19,#0x4C0]; this                                 ; +0x54, 0x863054\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x863058\nLDR             X2, [X0]                                               ; +0x5c, 0x86305c\nLDRB            W1, [X19,#0x4E8]                                       ; +0x60, 0x863060\nLDR             X2, [X2,#0x158]                                        ; +0x64, 0x863064\nBLR             X2                                                     ; +0x68, 0x863068\nLDR             X0, [X19,#0x4C0]; this                                 ; +0x6c, 0x86306c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x70, 0x863070\nCMP             W20, W0                                                ; +0x74, 0x863074\nMOV             W1, W20; unsigned int                                  ; +0x78, 0x863078\nADD             W20, W20, #1                                           ; +0x7c, 0x86307c\nB.CC            loc_863054                                             ; +0x80, 0x863080\nLDR             X2, [X19,#0x4C8]                                       ; +0x84, 0x863084\nLDRB            W1, [X19,#0x4E8]                                       ; +0x88, 0x863088\nMOV             X0, X2                                                 ; +0x8c, 0x86308c\nLDR             X2, [X2]                                               ; +0x90, 0x863090\nLDR             X2, [X2,#0x3E8]                                        ; +0x94, 0x863094\nBLR             X2                                                     ; +0x98, 0x863098\nLDR             X2, [X19,#0x4F0]                                       ; +0x9c, 0x86309c\nLDRB            W1, [X19,#0x4E8]                                       ; +0xa0, 0x8630a0\nMOV             X0, X2                                                 ; +0xa4, 0x8630a4\nLDR             X2, [X2]                                               ; +0xa8, 0x8630a8\nEOR             W1, W1, #1                                             ; +0xac, 0x8630ac\nLDR             X2, [X2,#0x3E8]                                        ; +0xb0, 0x8630b0\nBLR             X2                                                     ; +0xb4, 0x8630b4\nLDR             X2, [X19,#0x4F8]                                       ; +0xb8, 0x8630b8\nLDRB            W1, [X19,#0x4E8]                                       ; +0xbc, 0x8630bc\nMOV             X0, X2                                                 ; +0xc0, 0x8630c0\nLDR             X2, [X2]                                               ; +0xc4, 0x8630c4\nEOR             W1, W1, #1                                             ; +0xc8, 0x8630c8\nLDR             X2, [X2,#0x3E8]                                        ; +0xcc, 0x8630cc\nBLR             X2                                                     ; +0xd0, 0x8630d0\nLDR             X2, [X19,#0x500]                                       ; +0xd4, 0x8630d4\nLDRB            W1, [X19,#0x4E8]                                       ; +0xd8, 0x8630d8\nMOV             X0, X2                                                 ; +0xdc, 0x8630dc\nLDR             X2, [X2]                                               ; +0xe0, 0x8630e0\nEOR             W1, W1, #1                                             ; +0xe4, 0x8630e4\nLDR             X2, [X2,#0x3E8]                                        ; +0xe8, 0x8630e8\nBLR             X2                                                     ; +0xec, 0x8630ec\nLDR             X2, [X19,#0x508]                                       ; +0xf0, 0x8630f0\nLDRB            W1, [X19,#0x4E8]                                       ; +0xf4, 0x8630f4\nMOV             X0, X2                                                 ; +0xf8, 0x8630f8\nLDR             X2, [X2]                                               ; +0xfc, 0x8630fc\nEOR             W1, W1, #1                                             ; +0x100, 0x863100\nLDR             X2, [X2,#0x3E8]                                        ; +0x104, 0x863104\nBLR             X2                                                     ; +0x108, 0x863108\nLDP             X19, X20, [SP,#var_s10]                                ; +0x10c, 0x86310c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x110, 0x863110\nRET                                                                    ; +0x114, 0x863114", "xrefs": ["ColorSelectPopup::onToggleHSVMode @ 0x863dec", "ColorSelectPopup::init @ 0x8643e8", "<???> @ 0xe2048"], "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"}