{"type": "func", "start": 6442789904, "end": 6442790040, "name": "cocos2d::CCLayerRGBA::setOpacity", "pseudocode": "// \n// cocos2d::CCLayerRGBA::setOpacity from 0x180052c10 to 0x180052c98 (136 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCLayerColor::setOpacity @ 0x180052be9\n// > <???> @ 0x1800f3a28\n// > <???> @ 0x1800fd648\n// > <???> @ 0x180141344\n// > <???> @ 0x180141354\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc3b8\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:21:46 +0000\n// \n\nvoid __fastcall cocos2d::CCLayerRGBA::setOpacity(cocos2d::CCLayerRGBA *this, char a2)\n{\n  bool v2; // zf\n  unsigned __int8 v4; // si\n  __int64 v5; // rax\n  __int64 v6; // rdi\n\n  v2 = *((_BYTE *)this + 16) == 0;\n  *((_BYTE *)this + 9) = a2;\n  *((_BYTE *)this + 8) = a2;\n  if ( !v2 )\n  {\n    v4 = -1;\n    v5 = _RTDynamicCast(\n           *((_QWORD *)this - 24),\n           0,\n           &cocos2d::CCNode `RTTI Type Descriptor',\n           &cocos2d::CCRGBAProtocol `RTTI Type Descriptor',\n           0);\n    v6 = v5;\n    if ( v5 )\n    {\n      if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 88LL))(v5) )\n        v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 24LL))(v6);\n    }\n    (*(void (__fastcall **)(cocos2d::CCLayerRGBA *, _QWORD))(*(_QWORD *)this + 104LL))(this, v4);\n  }\n}", "assembly": "; \n; cocos2d::CCLayerRGBA::setOpacity from 0x180052c10 to 0x180052c98 (136 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCLayerColor::setOpacity @ 0x180052be9\n; > <???> @ 0x1800f3a28\n; > <???> @ 0x1800fd648\n; > <???> @ 0x180141344\n; > <???> @ 0x180141354\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc3b8\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:21:46 +0000\n; \npush    rbx                                                            ; +0x0, 0x180052c10\nsub     rsp, 30h                                                       ; +0x2, 0x180052c12\ncmp     byte ptr [rcx+10h], 0                                          ; +0x6, 0x180052c16\nmov     rbx, rcx                                                       ; +0xa, 0x180052c1a\nmov     [rcx+9], dl                                                    ; +0xd, 0x180052c1d\nmov     [rcx+8], dl                                                    ; +0x10, 0x180052c20\njz      short loc_180052C92                                            ; +0x13, 0x180052c23\nmov     rcx, [rcx-0C0h]                                                ; +0x15, 0x180052c25\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x1c, 0x180052c2c\nmov     [rsp+38h+arg_0], rsi                                           ; +0x23, 0x180052c33\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x28, 0x180052c38\nxor     edx, edx                                                       ; +0x2f, 0x180052c3f\nmov     [rsp+38h+arg_8], rdi                                           ; +0x31, 0x180052c41\nmov     sil, 0FFh                                                      ; +0x36, 0x180052c46\nmov     [rsp+38h+var_18], 0                                            ; +0x39, 0x180052c49\ncall    __RTDynamicCast                                                ; +0x41, 0x180052c51\nmov     rdi, rax                                                       ; +0x46, 0x180052c56\ntest    rax, rax                                                       ; +0x49, 0x180052c59\njz      short loc_180052C77                                            ; +0x4c, 0x180052c5c\nmov     rax, [rax]                                                     ; +0x4e, 0x180052c5e\nmov     rcx, rdi                                                       ; +0x51, 0x180052c61\ncall    qword ptr [rax+58h]                                            ; +0x54, 0x180052c64\ntest    al, al                                                         ; +0x57, 0x180052c67\njz      short loc_180052C77                                            ; +0x59, 0x180052c69\nmov     rax, [rdi]                                                     ; +0x5b, 0x180052c6b\nmov     rcx, rdi                                                       ; +0x5e, 0x180052c6e\ncall    qword ptr [rax+18h]                                            ; +0x61, 0x180052c71\nmovzx   esi, al                                                        ; +0x64, 0x180052c74\nmov     rcx, [rbx]                                                     ; +0x67, 0x180052c77\nmovzx   edx, sil                                                       ; +0x6a, 0x180052c7a\nmov     r8, [rcx+68h]                                                  ; +0x6e, 0x180052c7e\nmov     rcx, rbx                                                       ; +0x72, 0x180052c82\ncall    r8                                                             ; +0x75, 0x180052c85\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x78, 0x180052c88\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x7d, 0x180052c8d\nadd     rsp, 30h                                                       ; +0x82, 0x180052c92\npop     rbx                                                            ; +0x86, 0x180052c96\nretn                                                                   ; +0x87, 0x180052c97", "xrefs": ["cocos2d::CCLayerColor::setOpacity @ 0x180052be9", "<???> @ 0x1800f3a28", "<???> @ 0x1800fd648", "<???> @ 0x180141344", "<???> @ 0x180141354", "<???> @ 0x18014cf68", "<???> @ 0x1801bc3b8"], "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"}