{"type": "func", "start": 5369305104, "end": 5369305397, "name": "ColorSelectPopup::colorValueChanged", "pseudocode": "// \n// ColorSelectPopup::colorValueChanged from 0x140091810 to 0x140091935 (293 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14053fc20\n// > <???> @ 0x1406693f0\n// > <???> @ 0x140669400\n// > <???> @ 0x1406c7038\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid ColorSelectPopup::colorValueChanged(ColorSelectPopup *a1, cocos2d::ccColor3B *a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // rdx\n  cocos2d::extension::ColorPickerDelegate_vtbl *v5; // rcx\n  cocos2d::CCArray *v6; // rcx\n  unsigned int v7; // edi\n  struct cocos2d::CCObject *v8; // rax\n  __int64 v9; // rdx\n\n  v3 = *(_QWORD *)&a1->m_obPosition.y;\n  if ( v3 )\n  {\n    v4 = *(_QWORD *)&a1->m_nTag;\n    LOWORD(a1->m_obAnchorPointInPoints.y) = *(_WORD *)(v4 + 472);\n    BYTE2(a1->m_obAnchorPointInPoints.y) = *(_BYTE *)(v4 + 474);\n    (**(void (__fastcall ***)(__int64, float *))(v3 + 320))(v3 + 320, &a1->m_obAnchorPointInPoints.y);\n    (**(void (__fastcall ***)(__int64, float *))(*(_QWORD *)&a1->m_fSkewY + 320LL))(\n      *(_QWORD *)&a1->m_fSkewY + 320LL,\n      &a1->m_fVertexZ);\n    if ( !LOBYTE(a1->m_sTransform.tx) )\n    {\n      v5 = a1[-1].cocos2d::extension::ColorPickerDelegate::__vftable;\n      if ( v5 )\n      {\n        *(_WORD *)((char *)&v5[183].colorValueChanged + 1) = LOWORD(a1->m_obAnchorPointInPoints.y);\n        BYTE3(v5[183].colorValueChanged) = BYTE2(a1->m_obAnchorPointInPoints.y);\n      }\n      else\n      {\n        v6 = (cocos2d::CCArray *)a1[-1].GJSpecialColorSelectDelegate::__vftable;\n        if ( v6 )\n        {\n          v7 = 0;\n          if ( cocos2d::CCArray::count(v6) )\n          {\n            do\n            {\n              v8 = cocos2d::CCArray::objectAtIndex(\n                     (cocos2d::CCArray *)a1[-1].GJSpecialColorSelectDelegate::__vftable,\n                     v7++);\n              *(_WORD *)((char *)&v8[26].m_uID + 1) = LOWORD(a1->m_obAnchorPointInPoints.y);\n              HIBYTE(v8[26].m_uID) = BYTE2(a1->m_obAnchorPointInPoints.y);\n            }\n            while ( v7 < cocos2d::CCArray::count((cocos2d::CCArray *)a1[-1].GJSpecialColorSelectDelegate::__vftable) );\n          }\n        }\n        else\n        {\n          v9 = *(_QWORD *)&a1->m_sAdditionalTransform.d;\n          if ( v9 )\n          {\n            *(_WORD *)(v9 + 72) = LOWORD(a1->m_obAnchorPointInPoints.y);\n            *(_BYTE *)(v9 + 74) = BYTE2(a1->m_obAnchorPointInPoints.y);\n          }\n        }\n      }\n    }\n    ColorSelectPopup::updateColorLabels((ColorSelectPopup *)((char *)a1 - 936));\n  }\n}", "assembly": "; \n; ColorSelectPopup::colorValueChanged from 0x140091810 to 0x140091935 (293 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14053fc20\n; > <???> @ 0x1406693f0\n; > <???> @ 0x140669400\n; > <???> @ 0x1406c7038\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140091810\nsub     rsp, 20h                                                       ; +0x2, 0x140091812\nmov     rbx, rcx                                                       ; +0x6, 0x140091816\nmov     rcx, [rcx+50h]                                                 ; +0x9, 0x140091819\ntest    rcx, rcx                                                       ; +0xd, 0x14009181d\njz      loc_14009192F                                                  ; +0x10, 0x140091820\nmov     rdx, [rbx+10h]                                                 ; +0x16, 0x140091826\nadd     rcx, 140h                                                      ; +0x1a, 0x14009182a\nmov     [rsp+28h+arg_0], rbp                                           ; +0x21, 0x140091831\nmov     [rsp+28h+arg_8], rsi                                           ; +0x26, 0x140091836\nmov     [rsp+28h+arg_10], rdi                                          ; +0x2b, 0x14009183b\nmovzx   eax, word ptr [rdx+1D8h]                                       ; +0x30, 0x140091840\nmov     [rbx+60h], ax                                                  ; +0x37, 0x140091847\nmovzx   eax, byte ptr [rdx+1DAh]                                       ; +0x3b, 0x14009184b\nlea     rdx, [rbx+60h]                                                 ; +0x42, 0x140091852\nmov     [rbx+62h], al                                                  ; +0x46, 0x140091856\nmov     rax, [rcx]                                                     ; +0x49, 0x140091859\ncall    qword ptr [rax]                                                ; +0x4c, 0x14009185c\nmov     rcx, [rbx+58h]                                                 ; +0x4e, 0x14009185e\nlea     rdx, [rbx+48h]                                                 ; +0x52, 0x140091862\nadd     rcx, 140h                                                      ; +0x56, 0x140091866\nmov     rax, [rcx]                                                     ; +0x5d, 0x14009186d\ncall    qword ptr [rax]                                                ; +0x60, 0x140091870\ncmp     byte ptr [rbx+9Ch], 0                                          ; +0x62, 0x140091872\njnz     loc_140091914                                                  ; +0x69, 0x140091879\nmov     rcx, [rbx-118h]                                                ; +0x6f, 0x14009187f\ntest    rcx, rcx                                                       ; +0x76, 0x140091886\njz      short loc_1400918A2                                            ; +0x79, 0x140091889\nmovzx   eax, word ptr [rbx+60h]                                        ; +0x7b, 0x14009188b\nmov     [rcx+5B9h], ax                                                 ; +0x7f, 0x14009188f\nmovzx   eax, byte ptr [rbx+62h]                                        ; +0x86, 0x140091896\nmov     [rcx+5BBh], al                                                 ; +0x8a, 0x14009189a\njmp     short loc_140091914                                            ; +0x90, 0x1400918a0\nmov     rcx, [rbx-110h]                                                ; +0x92, 0x1400918a2\ntest    rcx, rcx                                                       ; +0x99, 0x1400918a9\njz      short loc_1400918F9                                            ; +0x9c, 0x1400918ac\nxor     edi, edi                                                       ; +0x9e, 0x1400918ae\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa0, 0x1400918b0\ntest    eax, eax                                                       ; +0xa6, 0x1400918b6\njz      short loc_140091914                                            ; +0xa8, 0x1400918b8\nnop     word ptr [rax+rax+00h]                                         ; +0xaa, 0x1400918ba\nmov     rcx, [rbx-110h]                                                ; +0xb0, 0x1400918c0\nmov     edx, edi                                                       ; +0xb7, 0x1400918c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb9, 0x1400918c9\nmovzx   ecx, word ptr [rbx+60h]                                        ; +0xbf, 0x1400918cf\ninc     edi                                                            ; +0xc3, 0x1400918d3\nmov     [rax+5B9h], cx                                                 ; +0xc5, 0x1400918d5\nmovzx   ecx, byte ptr [rbx+62h]                                        ; +0xcc, 0x1400918dc\nmov     [rax+5BBh], cl                                                 ; +0xd0, 0x1400918e0\nmov     rcx, [rbx-110h]                                                ; +0xd6, 0x1400918e6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xdd, 0x1400918ed\ncmp     edi, eax                                                       ; +0xe3, 0x1400918f3\njb      short loc_1400918C0                                            ; +0xe5, 0x1400918f5\njmp     short loc_140091914                                            ; +0xe7, 0x1400918f7\nmov     rdx, [rbx+80h]                                                 ; +0xe9, 0x1400918f9\ntest    rdx, rdx                                                       ; +0xf0, 0x140091900\njz      short loc_140091914                                            ; +0xf3, 0x140091903\nmovzx   eax, word ptr [rbx+60h]                                        ; +0xf5, 0x140091905\nmov     [rdx+48h], ax                                                  ; +0xf9, 0x140091909\nmovzx   eax, byte ptr [rbx+62h]                                        ; +0xfd, 0x14009190d\nmov     [rdx+4Ah], al                                                  ; +0x101, 0x140091911\nlea     rcx, [rbx-3A8h]                                                ; +0x104, 0x140091914\ncall    ColorSelectPopup__updateColorLabels                            ; +0x10b, 0x14009191b\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x110, 0x140091920\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x115, 0x140091925\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x11a, 0x14009192a\nadd     rsp, 20h                                                       ; +0x11f, 0x14009192f\npop     rbx                                                            ; +0x123, 0x140091933\nretn                                                                   ; +0x124, 0x140091934", "xrefs": ["<???> @ 0x14053fc20", "<???> @ 0x1406693f0", "<???> @ 0x140669400", "<???> @ 0x1406c7038"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}