{"type": "func", "start": 5372646528, "end": 5372646758, "name": "HSVLiveOverlay::hsvChanged", "pseudocode": "// \n// HSVLiveOverlay::hsvChanged from 0x1403c1480 to 0x1403c1566 (230 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140783dd8\n// > <???> @ 0x140924098\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:31:28 +0000\n// \n\nint __fastcall HSVLiveOverlay::hsvChanged(__int64 a1, __int64 a2)\n{\n  struct cocos2d::CCArray *v4; // rax\n  struct cocos2d::CCObject *v5; // rcx\n  unsigned int v6; // edi\n  int v7; // ebp\n  BOOL v8; // r14d\n  cocos2d::CCArray *v9; // rbx\n  struct cocos2d::CCObject *v10; // rcx\n  int v11; // eax\n  __int64 RelativeSpriteColor; // rax\n  __int128 v14; // [rsp+20h] [rbp-18h]\n\n  LODWORD(v4) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v5 = *(struct cocos2d::CCObject **)(a1 + 8);\n  v6 = 0;\n  v7 = (int)v4;\n  v8 = (_DWORD)v4 != 1;\n  v14 = *(_OWORD *)(a2 + 376);\n  if ( v5 )\n  {\n    v4 = cocos2d::CCArray::createWithObject(v5);\n    v9 = v4;\n  }\n  else\n  {\n    v9 = *(cocos2d::CCArray **)(a1 + 16);\n  }\n  if ( v9 )\n  {\n    LODWORD(v4) = cocos2d::CCArray::count(v9);\n    if ( (_DWORD)v4 )\n    {\n      do\n      {\n        v10 = cocos2d::CCArray::objectAtIndex(v9, v6);\n        v11 = *((_DWORD *)v10 + 259);\n        if ( v11 == 1006 || v11 == 899 )\n        {\n          if ( v7 == 1 )\n            *(_OWORD *)((char *)v10 + 1628) = v14;\n        }\n        else\n        {\n          RelativeSpriteColor = GameObject::getRelativeSpriteColor((__int64)v10, v8 + 1);\n          if ( RelativeSpriteColor )\n            *(_OWORD *)(RelativeSpriteColor + 16) = v14;\n        }\n        ++v6;\n        LODWORD(v4) = cocos2d::CCArray::count(v9);\n      }\n      while ( v6 < (unsigned int)v4 );\n    }\n  }\n  return (int)v4;\n}", "assembly": "; \n; HSVLiveOverlay::hsvChanged from 0x1403c1480 to 0x1403c1566 (230 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140783dd8\n; > <???> @ 0x140924098\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:31:28 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403c1480\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403c1485\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1403c148a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1403c148f\npush    r14                                                            ; +0x14, 0x1403c1494\nsub     rsp, 30h                                                       ; +0x16, 0x1403c1496\nmov     rax, [rdx]                                                     ; +0x1a, 0x1403c149a\nmov     rsi, rcx                                                       ; +0x1d, 0x1403c149d\nmov     rcx, rdx                                                       ; +0x20, 0x1403c14a0\nmov     rbx, rdx                                                       ; +0x23, 0x1403c14a3\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x1403c14a6\nmovups  xmm0, xmmword ptr [rbx+178h]                                   ; +0x29, 0x1403c14a9\nmov     rcx, [rsi+8]                                                   ; +0x30, 0x1403c14b0\nxor     edi, edi                                                       ; +0x34, 0x1403c14b4\ncmp     eax, 1                                                         ; +0x36, 0x1403c14b6\nmov     r14d, edi                                                      ; +0x39, 0x1403c14b9\nmov     ebp, eax                                                       ; +0x3c, 0x1403c14bc\nsetnz   r14b                                                           ; +0x3e, 0x1403c14be\nmovups  [rsp+38h+var_18], xmm0                                         ; +0x42, 0x1403c14c2\ntest    rcx, rcx                                                       ; +0x47, 0x1403c14c7\njz      short loc_1403C14D7                                            ; +0x4a, 0x1403c14ca\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x4c, 0x1403c14cc\nmov     rbx, rax                                                       ; +0x52, 0x1403c14d2\njmp     short loc_1403C14DB                                            ; +0x55, 0x1403c14d5\nmov     rbx, [rsi+10h]                                                 ; +0x57, 0x1403c14d7\ntest    rbx, rbx                                                       ; +0x5b, 0x1403c14db\njz      short loc_1403C154B                                            ; +0x5e, 0x1403c14de\nmov     rcx, rbx                                                       ; +0x60, 0x1403c14e0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x63, 0x1403c14e3\ntest    eax, eax                                                       ; +0x69, 0x1403c14e9\njz      short loc_1403C154B                                            ; +0x6b, 0x1403c14eb\nnop     dword ptr [rax]                                                ; +0x6d, 0x1403c14ed\nmov     edx, edi                                                       ; +0x70, 0x1403c14f0\nmov     rcx, rbx                                                       ; +0x72, 0x1403c14f2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x1403c14f5\nmov     rcx, rax                                                       ; +0x7b, 0x1403c14fb\nmov     eax, [rax+40Ch]                                                ; +0x7e, 0x1403c14fe\ncmp     eax, 3EEh                                                      ; +0x84, 0x1403c1504\njz      short loc_1403C152B                                            ; +0x89, 0x1403c1509\ncmp     eax, 383h                                                      ; +0x8b, 0x1403c150b\njz      short loc_1403C152B                                            ; +0x90, 0x1403c1510\nlea     edx, [r14+1]                                                   ; +0x92, 0x1403c1512\ncall    GameObject__getRelativeSpriteColor                             ; +0x96, 0x1403c1516\ntest    rax, rax                                                       ; +0x9b, 0x1403c151b\njz      short loc_1403C153C                                            ; +0x9e, 0x1403c151e\nmovups  xmm0, [rsp+38h+var_18]                                         ; +0xa0, 0x1403c1520\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0xa5, 0x1403c1525\njmp     short loc_1403C153C                                            ; +0xa9, 0x1403c1529\ncmp     ebp, 1                                                         ; +0xab, 0x1403c152b\njnz     short loc_1403C153C                                            ; +0xae, 0x1403c152e\nmovups  xmm0, [rsp+38h+var_18]                                         ; +0xb0, 0x1403c1530\nmovups  xmmword ptr [rcx+65Ch], xmm0                                   ; +0xb5, 0x1403c1535\nmov     rcx, rbx                                                       ; +0xbc, 0x1403c153c\ninc     edi                                                            ; +0xbf, 0x1403c153f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc1, 0x1403c1541\ncmp     edi, eax                                                       ; +0xc7, 0x1403c1547\njb      short loc_1403C14F0                                            ; +0xc9, 0x1403c1549\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xcb, 0x1403c154b\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xd0, 0x1403c1550\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xd5, 0x1403c1555\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xda, 0x1403c155a\nadd     rsp, 30h                                                       ; +0xdf, 0x1403c155f\npop     r14                                                            ; +0xe3, 0x1403c1563\nretn                                                                   ; +0xe5, 0x1403c1565", "xrefs": ["<???> @ 0x140783dd8", "<???> @ 0x140924098"], "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"}