{"type": "func", "start": 5369928288, "end": 5369928426, "name": "ColorSelectPopup::onHSVLegacyMode", "pseudocode": "// \n// ColorSelectPopup::onHSVLegacyMode from 0x140129a60 to 0x140129aea (138 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::init @ 0x140128090\n// > <???> @ 0x14089848c\n// > <???> @ 0x14089849c\n// > <???> @ 0x140916a78\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:00 +0000\n// \n\nchar __fastcall ColorSelectPopup::onHSVLegacyMode(__int64 a1)\n{\n  unsigned int v2; // eax\n  __int64 v3; // rcx\n  cocos2d::CCArray *v4; // rcx\n  unsigned int v5; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  LOBYTE(v2) = *(_BYTE *)(a1 + 1146) == 0;\n  *(_BYTE *)(a1 + 1146) = v2;\n  v3 = *(_QWORD *)(a1 + 680);\n  if ( v3 )\n  {\n    *(_BYTE *)(v3 + 1652) = v2;\n  }\n  else\n  {\n    v4 = *(cocos2d::CCArray **)(a1 + 688);\n    if ( v4 )\n    {\n      v5 = 0;\n      v2 = cocos2d::CCArray::count(v4);\n      if ( v2 )\n      {\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v5++);\n          *((_BYTE *)v6 + 1652) = *(_BYTE *)(a1 + 1146);\n          v2 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));\n        }\n        while ( v5 < v2 );\n      }\n    }\n  }\n  return v2;\n}", "assembly": "; \n; ColorSelectPopup::onHSVLegacyMode from 0x140129a60 to 0x140129aea (138 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::init @ 0x140128090\n; > <???> @ 0x14089848c\n; > <???> @ 0x14089849c\n; > <???> @ 0x140916a78\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:00 +0000\n; \npush    rbx                                                            ; +0x0, 0x140129a60\nsub     rsp, 20h                                                       ; +0x2, 0x140129a62\ncmp     byte ptr [rcx+47Ah], 0                                         ; +0x6, 0x140129a66\nmov     rbx, rcx                                                       ; +0xd, 0x140129a6d\nsetz    al                                                             ; +0x10, 0x140129a70\nmov     [rcx+47Ah], al                                                 ; +0x13, 0x140129a73\nmov     rcx, [rcx+2A8h]                                                ; +0x19, 0x140129a79\ntest    rcx, rcx                                                       ; +0x20, 0x140129a80\njz      short loc_140129A91                                            ; +0x23, 0x140129a83\nmov     [rcx+674h], al                                                 ; +0x25, 0x140129a85\nadd     rsp, 20h                                                       ; +0x2b, 0x140129a8b\npop     rbx                                                            ; +0x2f, 0x140129a8f\nretn                                                                   ; +0x30, 0x140129a90\nmov     rcx, [rbx+2B0h]                                                ; +0x31, 0x140129a91\ntest    rcx, rcx                                                       ; +0x38, 0x140129a98\njz      short loc_140129AE4                                            ; +0x3b, 0x140129a9b\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3d, 0x140129a9d\nxor     edi, edi                                                       ; +0x42, 0x140129aa2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x44, 0x140129aa4\ntest    eax, eax                                                       ; +0x4a, 0x140129aaa\njz      short loc_140129ADF                                            ; +0x4c, 0x140129aac\nxchg    ax, ax                                                         ; +0x4e, 0x140129aae\nmov     rcx, [rbx+2B0h]                                                ; +0x50, 0x140129ab0\nmov     edx, edi                                                       ; +0x57, 0x140129ab7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x140129ab9\nmovzx   ecx, byte ptr [rbx+47Ah]                                       ; +0x5f, 0x140129abf\ninc     edi                                                            ; +0x66, 0x140129ac6\nmov     [rax+674h], cl                                                 ; +0x68, 0x140129ac8\nmov     rcx, [rbx+2B0h]                                                ; +0x6e, 0x140129ace\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x140129ad5\ncmp     edi, eax                                                       ; +0x7b, 0x140129adb\njb      short loc_140129AB0                                            ; +0x7d, 0x140129add\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x140129adf\nadd     rsp, 20h                                                       ; +0x84, 0x140129ae4\npop     rbx                                                            ; +0x88, 0x140129ae8\nretn                                                                   ; +0x89, 0x140129ae9", "xrefs": ["ColorSelectPopup::init @ 0x140128090", "<???> @ 0x14089848c", "<???> @ 0x14089849c", "<???> @ 0x140916a78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}