{"type": "func", "start": 5369959936, "end": 5369960481, "name": "ConfigureHSVWidget::setBaseColor", "pseudocode": "// \n// ConfigureHSVWidget::setBaseColor from 0x140131600 to 0x140131821 (545 bytes)\n// \n// 5 xrefs:\n// > HSVWidgetPopup::init @ 0x14012f994\n// > HSVLiveOverlay::createHSVWidget @ 0x1403c141e\n// > <???> @ 0x140898cc4\n// > <???> @ 0x140898cd4\n// > <???> @ 0x140916eec\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:03 +0000\n// \n\n__int64 __fastcall ConfigureHSVWidget::setBaseColor(__int64 a1, __int64 a2)\n{\n  bool v2; // zf\n  struct cocos2d::CCSprite *v4; // rax\n  __int64 v5; // rbx\n  float v6; // xmm6_4\n  double v7; // xmm0_8\n  float v8; // xmm7_4\n  __int64 *v9; // rdi\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  struct cocos2d::CCSprite *v12; // rax\n  __int64 v13; // rax\n  __int64 v14; // rbx\n  __int64 v15; // rax\n  __int64 v16; // rax\n  void (__fastcall ***v17)(_QWORD, __int16 *); // rcx\n  __int128 v19; // [rsp+20h] [rbp-58h] BYREF\n  __int16 v20; // [rsp+80h] [rbp+8h] BYREF\n  char v21; // [rsp+82h] [rbp+Ah]\n  char v22; // [rsp+88h] [rbp+10h] BYREF\n  char v23; // [rsp+90h] [rbp+18h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 440) == 0;\n  *(_WORD *)(a1 + 424) = *(_WORD *)a2;\n  *(_BYTE *)(a1 + 426) = *(_BYTE *)(a2 + 2);\n  *(_BYTE *)(a1 + 448) = 1;\n  if ( v2 )\n  {\n    v4 = cocos2d::CCSprite::createWithSpriteFrameName(\"whiteSquare60_001.png\");\n    *(_QWORD *)(a1 + 440) = v4;\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v4 + 160LL))(v4);\n    v5 = *(_QWORD *)(a1 + 440);\n    v6 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 320LL))(v5) + 4);\n    v7 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5);\n    v8 = *(float *)&v7 * v6;\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 440));\n    v9 = *(__int64 **)(a1 + 440);\n    v10 = *v9;\n    cocos2d::CCPoint::CCPoint(\n      (cocos2d::CCPoint *)&v22,\n      155.0,\n      (float)((float)((float)(*(float *)&v7 * v6) * 1.5) - 80.0) + 4.0);\n    (*(void (__fastcall **)(__int64 *, __int64))(v10 + 184))(v9, v11);\n    v12 = cocos2d::CCSprite::createWithSpriteFrameName(\"whiteSquare60_001.png\");\n    *(_QWORD *)(a1 + 432) = v12;\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 432));\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 0.0, -v8);\n    v14 = v13;\n    v15 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 440) + 200LL))(*(_QWORD *)(a1 + 440));\n    cocos2d::CCPoint::operator+(v15, &v22, v14);\n    (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 432) + 184LL))(*(_QWORD *)(a1 + 432), &v22);\n  }\n  v19 = *(_OWORD *)(a1 + 376);\n  v16 = GameToolbox::transformColor((__int64)&v22, (unsigned __int16 *)(a1 + 424), (float *)&v19);\n  v20 = *(_WORD *)v16;\n  v17 = (void (__fastcall ***)(_QWORD, __int16 *))(*(_QWORD *)(a1 + 432) + 320LL);\n  v21 = *(_BYTE *)(v16 + 2);\n  (**v17)(v17, &v20);\n  return (**(__int64 (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 440) + 320LL))(\n           *(_QWORD *)(a1 + 440) + 320LL,\n           &v20);\n}", "assembly": "; \n; ConfigureHSVWidget::setBaseColor from 0x140131600 to 0x140131821 (545 bytes)\n; \n; 5 xrefs:\n; > HSVWidgetPopup::init @ 0x14012f994\n; > HSVLiveOverlay::createHSVWidget @ 0x1403c141e\n; > <???> @ 0x140898cc4\n; > <???> @ 0x140898cd4\n; > <???> @ 0x140916eec\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:03 +0000\n; \npush    rsi                                                            ; +0x0, 0x140131600\npush    r14                                                            ; +0x2, 0x140131602\npush    r15                                                            ; +0x4, 0x140131604\nsub     rsp, 60h                                                       ; +0x6, 0x140131606\ncmp     qword ptr [rcx+1B8h], 0                                        ; +0xa, 0x14013160a\nmov     rsi, rcx                                                       ; +0x12, 0x140131612\nmovzx   eax, word ptr [rdx]                                            ; +0x15, 0x140131615\nmov     [rcx+1A8h], ax                                                 ; +0x18, 0x140131618\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x1f, 0x14013161f\nmov     [rcx+1AAh], al                                                 ; +0x23, 0x140131623\nmov     byte ptr [rcx+1C0h], 1                                         ; +0x29, 0x140131629\njnz     loc_1401317A6                                                  ; +0x30, 0x140131630\nmov     [rsp+78h+var_20], rbx                                          ; +0x36, 0x140131636\nlea     rcx, aWhitesquare600; \"whiteSquare60_001.png\"                  ; +0x3b, 0x14013163b\nmov     [rsp+78h+var_28], rdi                                          ; +0x42, 0x140131642\nmovaps  [rsp+78h+var_38], xmm6                                         ; +0x47, 0x140131647\nmovaps  [rsp+78h+var_48], xmm7                                         ; +0x4c, 0x14013164c\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x51, 0x140131651\nmovss   xmm1, cs:dword_140834FAC                                       ; +0x57, 0x140131657\nmov     [rsi+1B8h], rax                                                ; +0x5f, 0x14013165f\nmov     rcx, [rax]                                                     ; +0x66, 0x140131666\nmov     rdx, [rcx+0A0h]                                                ; +0x69, 0x140131669\nmov     rcx, rax                                                       ; +0x70, 0x140131670\ncall    rdx                                                            ; +0x73, 0x140131673\nmov     rbx, [rsi+1B8h]                                                ; +0x75, 0x140131675\nmov     rcx, rbx                                                       ; +0x7c, 0x14013167c\nmov     rax, [rbx]                                                     ; +0x7f, 0x14013167f\ncall    qword ptr [rax+140h]                                           ; +0x82, 0x140131682\nmov     rcx, rbx                                                       ; +0x88, 0x140131688\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x8b, 0x14013168b\nmov     rax, [rbx]                                                     ; +0x90, 0x140131690\ncall    qword ptr [rax+0A8h]                                           ; +0x93, 0x140131693\nmov     rax, [rsi]                                                     ; +0x99, 0x140131699\nmov     rcx, rsi                                                       ; +0x9c, 0x14013169c\nmov     rdx, [rsi+1B8h]                                                ; +0x9f, 0x14013169f\nmovaps  xmm7, xmm0                                                     ; +0xa6, 0x1401316a6\nmulss   xmm7, xmm6                                                     ; +0xa9, 0x1401316a9\ncall    qword ptr [rax+1D0h]                                           ; +0xad, 0x1401316ad\nmov     rdi, [rsi+1B8h]                                                ; +0xb3, 0x1401316b3\nlea     rcx, [rsp+78h+arg_8]                                           ; +0xba, 0x1401316ba\nmovss   xmm1, cs:dword_14083586C                                       ; +0xc2, 0x1401316c2\nmovaps  xmm2, xmm7                                                     ; +0xca, 0x1401316ca\nmulss   xmm2, cs:dword_140835164                                       ; +0xcd, 0x1401316cd\nmov     rbx, [rdi]                                                     ; +0xd5, 0x1401316d5\nsubss   xmm2, cs:dword_14083574C                                       ; +0xd8, 0x1401316d8\naddss   xmm2, cs:dword_140835450                                       ; +0xe0, 0x1401316e0\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe8, 0x1401316e8\nmov     rdx, rax                                                       ; +0xee, 0x1401316ee\nmov     rcx, rdi                                                       ; +0xf1, 0x1401316f1\ncall    qword ptr [rbx+0B8h]                                           ; +0xf4, 0x1401316f4\nlea     rcx, aWhitesquare600; \"whiteSquare60_001.png\"                  ; +0xfa, 0x1401316fa\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x101, 0x140131701\nmovss   xmm1, cs:dword_140834FAC                                       ; +0x107, 0x140131707\nmov     [rsi+1B0h], rax                                                ; +0x10f, 0x14013170f\nmov     rcx, [rax]                                                     ; +0x116, 0x140131716\nmov     rdx, [rcx+0A0h]                                                ; +0x119, 0x140131719\nmov     rcx, rax                                                       ; +0x120, 0x140131720\ncall    rdx                                                            ; +0x123, 0x140131723\nmov     rax, [rsi]                                                     ; +0x125, 0x140131725\nmov     rcx, rsi                                                       ; +0x128, 0x140131728\nmov     rdx, [rsi+1B0h]                                                ; +0x12b, 0x14013172b\ncall    qword ptr [rax+1D0h]                                           ; +0x132, 0x140131732\nxorps   xmm7, cs:xmmword_140836CC0                                     ; +0x138, 0x140131738\nlea     rcx, [rsp+78h+arg_10]                                          ; +0x13f, 0x14013173f\nmovaps  xmm2, xmm7                                                     ; +0x147, 0x140131747\nxorps   xmm1, xmm1                                                     ; +0x14a, 0x14013174a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x14d, 0x14013174d\nmov     rcx, [rsi+1B8h]                                                ; +0x153, 0x140131753\nmov     rbx, rax                                                       ; +0x15a, 0x14013175a\nmov     rdx, [rcx]                                                     ; +0x15d, 0x14013175d\ncall    qword ptr [rdx+0C8h]                                           ; +0x160, 0x140131760\nmov     r8, rbx                                                        ; +0x166, 0x140131766\nlea     rdx, [rsp+78h+arg_8]                                           ; +0x169, 0x140131769\nmov     rcx, rax                                                       ; +0x171, 0x140131771\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x174, 0x140131774\nmov     rcx, [rsi+1B0h]                                                ; +0x17a, 0x14013177a\nlea     rdx, [rsp+78h+arg_8]                                           ; +0x181, 0x140131781\nmov     rax, [rcx]                                                     ; +0x189, 0x140131789\ncall    qword ptr [rax+0B8h]                                           ; +0x18c, 0x14013178c\nmovaps  xmm7, [rsp+78h+var_48]                                         ; +0x192, 0x140131792\nmovaps  xmm6, [rsp+78h+var_38]                                         ; +0x197, 0x140131797\nmov     rdi, [rsp+78h+var_28]                                          ; +0x19c, 0x14013179c\nmov     rbx, [rsp+78h+var_20]                                          ; +0x1a1, 0x1401317a1\nmovups  xmm0, xmmword ptr [rsi+178h]                                   ; +0x1a6, 0x1401317a6\nlea     r8, [rsp+78h+var_58]                                           ; +0x1ad, 0x1401317ad\nlea     rdx, [rsi+1A8h]                                                ; +0x1b2, 0x1401317b2\nlea     rcx, [rsp+78h+arg_8]                                           ; +0x1b9, 0x1401317b9\nmovaps  [rsp+78h+var_58], xmm0                                         ; +0x1c1, 0x1401317c1\ncall    GameToolbox__transformColor                                    ; +0x1c6, 0x1401317c6\nlea     rdx, [rsp+78h+arg_0]                                           ; +0x1cb, 0x1401317cb\nmovzx   ecx, word ptr [rax]                                            ; +0x1d3, 0x1401317d3\nmov     [rsp+78h+arg_0], cx                                            ; +0x1d6, 0x1401317d6\nmovzx   eax, byte ptr [rax+2]                                          ; +0x1de, 0x1401317de\nmov     rcx, [rsi+1B0h]                                                ; +0x1e2, 0x1401317e2\nadd     rcx, 140h                                                      ; +0x1e9, 0x1401317e9\nmov     [rsp+78h+arg_2], al                                            ; +0x1f0, 0x1401317f0\nmov     rax, [rcx]                                                     ; +0x1f7, 0x1401317f7\ncall    qword ptr [rax]                                                ; +0x1fa, 0x1401317fa\nmov     rcx, [rsi+1B8h]                                                ; +0x1fc, 0x1401317fc\nlea     rdx, [rsp+78h+arg_0]                                           ; +0x203, 0x140131803\nadd     rcx, 140h                                                      ; +0x20b, 0x14013180b\nmov     rax, [rcx]                                                     ; +0x212, 0x140131812\ncall    qword ptr [rax]                                                ; +0x215, 0x140131815\nadd     rsp, 60h                                                       ; +0x217, 0x140131817\npop     r15                                                            ; +0x21b, 0x14013181b\npop     r14                                                            ; +0x21d, 0x14013181d\npop     rsi                                                            ; +0x21f, 0x14013181f\nretn                                                                   ; +0x220, 0x140131820", "xrefs": ["HSVWidgetPopup::init @ 0x14012f994", "HSVLiveOverlay::createHSVWidget @ 0x1403c141e", "<???> @ 0x140898cc4", "<???> @ 0x140898cd4", "<???> @ 0x140916eec"], "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"}