{"type": "func", "start": 5369931568, "end": 5369931861, "name": "ColorSelectPopup::colorValueChanged", "pseudocode": "// \n// ColorSelectPopup::colorValueChanged from 0x14012a730 to 0x14012a855 (293 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140734038\n// > <???> @ 0x14089860c\n// > <???> @ 0x14089861c\n// > <???> @ 0x140916b8c\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\nvoid __fastcall ColorSelectPopup::colorValueChanged(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  cocos2d::CCArray *v5; // rcx\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n  __int64 v8; // rdx\n\n  v2 = *(_QWORD *)(a1 + 80);\n  if ( v2 )\n  {\n    v3 = *(_QWORD *)(a1 + 16);\n    *(_WORD *)(a1 + 96) = *(_WORD *)(v3 + 472);\n    *(_BYTE *)(a1 + 98) = *(_BYTE *)(v3 + 474);\n    (**(void (__fastcall ***)(__int64, __int64))(v2 + 320))(v2 + 320, a1 + 96);\n    (**(void (__fastcall ***)(__int64, __int64))(*(_QWORD *)(a1 + 88) + 320LL))(*(_QWORD *)(a1 + 88) + 320LL, a1 + 72);\n    if ( !*(_BYTE *)(a1 + 156) )\n    {\n      v4 = *(_QWORD *)(a1 - 320);\n      if ( v4 )\n      {\n        *(_WORD *)(v4 + 1465) = *(_WORD *)(a1 + 96);\n        *(_BYTE *)(v4 + 1467) = *(_BYTE *)(a1 + 98);\n      }\n      else\n      {\n        v5 = *(cocos2d::CCArray **)(a1 - 312);\n        if ( v5 )\n        {\n          v6 = 0;\n          if ( cocos2d::CCArray::count(v5) )\n          {\n            do\n            {\n              v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 - 312), v6++);\n              *(_WORD *)((char *)v7 + 1465) = *(_WORD *)(a1 + 96);\n              *((_BYTE *)v7 + 1467) = *(_BYTE *)(a1 + 98);\n            }\n            while ( v6 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 - 312)) );\n          }\n        }\n        else\n        {\n          v8 = *(_QWORD *)(a1 + 128);\n          if ( v8 )\n          {\n            *(_WORD *)(v8 + 72) = *(_WORD *)(a1 + 96);\n            *(_BYTE *)(v8 + 74) = *(_BYTE *)(a1 + 98);\n          }\n        }\n      }\n    }\n    ColorSelectPopup::updateColorLabels(a1 - 1000);\n  }\n}", "assembly": "; \n; ColorSelectPopup::colorValueChanged from 0x14012a730 to 0x14012a855 (293 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140734038\n; > <???> @ 0x14089860c\n; > <???> @ 0x14089861c\n; > <???> @ 0x140916b8c\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; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14012a730\npush    rbp                                                            ; +0x5, 0x14012a735\nsub     rsp, 20h                                                       ; +0x6, 0x14012a736\nmov     rbx, rcx                                                       ; +0xa, 0x14012a73a\nmov     rcx, [rcx+50h]                                                 ; +0xd, 0x14012a73d\ntest    rcx, rcx                                                       ; +0x11, 0x14012a741\njz      loc_14012A84A                                                  ; +0x14, 0x14012a744\nmov     rdx, [rbx+10h]                                                 ; +0x1a, 0x14012a74a\nadd     rcx, 140h                                                      ; +0x1e, 0x14012a74e\nmov     [rsp+28h+arg_0], rsi                                           ; +0x25, 0x14012a755\nmov     [rsp+28h+arg_8], rdi                                           ; +0x2a, 0x14012a75a\nmovzx   eax, word ptr [rdx+1D8h]                                       ; +0x2f, 0x14012a75f\nmov     [rbx+60h], ax                                                  ; +0x36, 0x14012a766\nmovzx   eax, byte ptr [rdx+1DAh]                                       ; +0x3a, 0x14012a76a\nlea     rdx, [rbx+60h]                                                 ; +0x41, 0x14012a771\nmov     [rbx+62h], al                                                  ; +0x45, 0x14012a775\nmov     rax, [rcx]                                                     ; +0x48, 0x14012a778\ncall    qword ptr [rax]                                                ; +0x4b, 0x14012a77b\nmov     rcx, [rbx+58h]                                                 ; +0x4d, 0x14012a77d\nlea     rdx, [rbx+48h]                                                 ; +0x51, 0x14012a781\nadd     rcx, 140h                                                      ; +0x55, 0x14012a785\nmov     rax, [rcx]                                                     ; +0x5c, 0x14012a78c\ncall    qword ptr [rax]                                                ; +0x5f, 0x14012a78f\ncmp     byte ptr [rbx+9Ch], 0                                          ; +0x61, 0x14012a791\njnz     loc_14012A834                                                  ; +0x68, 0x14012a798\nmov     rcx, [rbx-140h]                                                ; +0x6e, 0x14012a79e\ntest    rcx, rcx                                                       ; +0x75, 0x14012a7a5\njz      short loc_14012A7C1                                            ; +0x78, 0x14012a7a8\nmovzx   eax, word ptr [rbx+60h]                                        ; +0x7a, 0x14012a7aa\nmov     [rcx+5B9h], ax                                                 ; +0x7e, 0x14012a7ae\nmovzx   eax, byte ptr [rbx+62h]                                        ; +0x85, 0x14012a7b5\nmov     [rcx+5BBh], al                                                 ; +0x89, 0x14012a7b9\njmp     short loc_14012A834                                            ; +0x8f, 0x14012a7bf\nmov     rcx, [rbx-138h]                                                ; +0x91, 0x14012a7c1\ntest    rcx, rcx                                                       ; +0x98, 0x14012a7c8\njz      short loc_14012A819                                            ; +0x9b, 0x14012a7cb\nxor     edi, edi                                                       ; +0x9d, 0x14012a7cd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9f, 0x14012a7cf\ntest    eax, eax                                                       ; +0xa5, 0x14012a7d5\njz      short loc_14012A834                                            ; +0xa7, 0x14012a7d7\nnop     dword ptr [rax+00000000h]                                      ; +0xa9, 0x14012a7d9\nmov     rcx, [rbx-138h]                                                ; +0xb0, 0x14012a7e0\nmov     edx, edi                                                       ; +0xb7, 0x14012a7e7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb9, 0x14012a7e9\nmovzx   ecx, word ptr [rbx+60h]                                        ; +0xbf, 0x14012a7ef\ninc     edi                                                            ; +0xc3, 0x14012a7f3\nmov     [rax+5B9h], cx                                                 ; +0xc5, 0x14012a7f5\nmovzx   ecx, byte ptr [rbx+62h]                                        ; +0xcc, 0x14012a7fc\nmov     [rax+5BBh], cl                                                 ; +0xd0, 0x14012a800\nmov     rcx, [rbx-138h]                                                ; +0xd6, 0x14012a806\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xdd, 0x14012a80d\ncmp     edi, eax                                                       ; +0xe3, 0x14012a813\njb      short loc_14012A7E0                                            ; +0xe5, 0x14012a815\njmp     short loc_14012A834                                            ; +0xe7, 0x14012a817\nmov     rdx, [rbx+80h]                                                 ; +0xe9, 0x14012a819\ntest    rdx, rdx                                                       ; +0xf0, 0x14012a820\njz      short loc_14012A834                                            ; +0xf3, 0x14012a823\nmovzx   eax, word ptr [rbx+60h]                                        ; +0xf5, 0x14012a825\nmov     [rdx+48h], ax                                                  ; +0xf9, 0x14012a829\nmovzx   eax, byte ptr [rbx+62h]                                        ; +0xfd, 0x14012a82d\nmov     [rdx+4Ah], al                                                  ; +0x101, 0x14012a831\nlea     rcx, [rbx-3E8h]                                                ; +0x104, 0x14012a834\ncall    ColorSelectPopup__updateColorLabels                            ; +0x10b, 0x14012a83b\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x110, 0x14012a840\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x115, 0x14012a845\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x11a, 0x14012a84a\nadd     rsp, 20h                                                       ; +0x11f, 0x14012a84f\npop     rbp                                                            ; +0x123, 0x14012a853\nretn                                                                   ; +0x124, 0x14012a854", "xrefs": ["<???> @ 0x140734038", "<???> @ 0x14089860c", "<???> @ 0x14089861c", "<???> @ 0x140916b8c"], "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"}