{"type": "func", "start": 5369930400, "end": 5369930564, "name": "ColorSelectPopup::updateOpacity", "pseudocode": "// \n// ColorSelectPopup::updateOpacity from 0x14012a2a0 to 0x14012a344 (164 bytes)\n// \n// 5 xrefs:\n// > ColorSelectPopup::onDefault @ 0x140129f42\n// > ColorSelectPopup::sliderChanged @ 0x14012a1e4\n// > <???> @ 0x140898594\n// > <???> @ 0x1408985a4\n// > <???> @ 0x140916b2c\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::updateOpacity(__int64 a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCArray *v3; // rcx\n  unsigned int v4; // edi\n  struct cocos2d::CCObject *v5; // rax\n  __int64 v6; // rcx\n\n  v2 = *(_QWORD *)(a1 + 680);\n  if ( v2 )\n  {\n    *(_DWORD *)(v2 + 1472) = *(_DWORD *)(a1 + 1124);\n  }\n  else\n  {\n    v3 = *(cocos2d::CCArray **)(a1 + 688);\n    if ( v3 )\n    {\n      v4 = 0;\n      if ( cocos2d::CCArray::count(v3) )\n      {\n        do\n        {\n          v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v4++);\n          *((_DWORD *)v5 + 368) = *(_DWORD *)(a1 + 1124);\n        }\n        while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );\n      }\n    }\n    else\n    {\n      v6 = *(_QWORD *)(a1 + 1128);\n      if ( v6 )\n        *(_DWORD *)(v6 + 96) = *(_DWORD *)(a1 + 1124);\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateOpacity from 0x14012a2a0 to 0x14012a344 (164 bytes)\n; \n; 5 xrefs:\n; > ColorSelectPopup::onDefault @ 0x140129f42\n; > ColorSelectPopup::sliderChanged @ 0x14012a1e4\n; > <???> @ 0x140898594\n; > <???> @ 0x1408985a4\n; > <???> @ 0x140916b2c\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, 0x14012a2a0\nsub     rsp, 20h                                                       ; +0x2, 0x14012a2a2\nmov     rbx, rcx                                                       ; +0x6, 0x14012a2a6\nmov     rcx, [rcx+2A8h]                                                ; +0x9, 0x14012a2a9\ntest    rcx, rcx                                                       ; +0x10, 0x14012a2b0\njz      short loc_14012A2C7                                            ; +0x13, 0x14012a2b3\nmov     eax, [rbx+464h]                                                ; +0x15, 0x14012a2b5\nmov     [rcx+5C0h], eax                                                ; +0x1b, 0x14012a2bb\nadd     rsp, 20h                                                       ; +0x21, 0x14012a2c1\npop     rbx                                                            ; +0x25, 0x14012a2c5\nretn                                                                   ; +0x26, 0x14012a2c6\nmov     rcx, [rbx+2B0h]                                                ; +0x27, 0x14012a2c7\ntest    rcx, rcx                                                       ; +0x2e, 0x14012a2ce\njz      short loc_14012A329                                            ; +0x31, 0x14012a2d1\nmov     [rsp+28h+arg_0], rdi                                           ; +0x33, 0x14012a2d3\nxor     edi, edi                                                       ; +0x38, 0x14012a2d8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3a, 0x14012a2da\ntest    eax, eax                                                       ; +0x40, 0x14012a2e0\njz      short loc_14012A31E                                            ; +0x42, 0x14012a2e2\nnop     dword ptr [rax+00h]                                            ; +0x44, 0x14012a2e4\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x14012a2e8\nmov     rcx, [rbx+2B0h]                                                ; +0x50, 0x14012a2f0\nmov     edx, edi                                                       ; +0x57, 0x14012a2f7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x14012a2f9\nmov     ecx, [rbx+464h]                                                ; +0x5f, 0x14012a2ff\ninc     edi                                                            ; +0x65, 0x14012a305\nmov     [rax+5C0h], ecx                                                ; +0x67, 0x14012a307\nmov     rcx, [rbx+2B0h]                                                ; +0x6d, 0x14012a30d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x14012a314\ncmp     edi, eax                                                       ; +0x7a, 0x14012a31a\njb      short loc_14012A2F0                                            ; +0x7c, 0x14012a31c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7e, 0x14012a31e\nadd     rsp, 20h                                                       ; +0x83, 0x14012a323\npop     rbx                                                            ; +0x87, 0x14012a327\nretn                                                                   ; +0x88, 0x14012a328\nmov     rcx, [rbx+468h]                                                ; +0x89, 0x14012a329\ntest    rcx, rcx                                                       ; +0x90, 0x14012a330\njz      short loc_14012A323                                            ; +0x93, 0x14012a333\nmov     eax, [rbx+464h]                                                ; +0x95, 0x14012a335\nmov     [rcx+60h], eax                                                 ; +0x9b, 0x14012a33b\nadd     rsp, 20h                                                       ; +0x9e, 0x14012a33e\npop     rbx                                                            ; +0xa2, 0x14012a342\nretn                                                                   ; +0xa3, 0x14012a343", "xrefs": ["ColorSelectPopup::onDefault @ 0x140129f42", "ColorSelectPopup::sliderChanged @ 0x14012a1e4", "<???> @ 0x140898594", "<???> @ 0x1408985a4", "<???> @ 0x140916b2c"], "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"}