{"type": "func", "start": 6442789056, "end": 6442789245, "name": "cocos2d::CCLayerRGBA::setColor", "pseudocode": "// \n// cocos2d::CCLayerRGBA::setColor from 0x1800528c0 to 0x18005297d (189 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCLayerColor::setColor @ 0x180052899\n// > <???> @ 0x1800f3a00\n// > <???> @ 0x1800fd620\n// > <???> @ 0x1801413d4\n// > <???> @ 0x1801413e4\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc2f8\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::setColor(cocos2d::CCLayerRGBA *this, const struct cocos2d::_ccColor3B *a2)\n{\n  bool v2; // zf\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  __int64 v6; // rdi\n  __int64 v7; // rax\n  __int16 v8; // [rsp+40h] [rbp+8h] BYREF\n  char v9; // [rsp+42h] [rbp+Ah]\n\n  v2 = *((_BYTE *)this + 17) == 0;\n  *(_WORD *)((char *)this + 13) = *(_WORD *)a2;\n  *((_BYTE *)this + 15) = *((_BYTE *)a2 + 2);\n  *((_WORD *)this + 5) = *(_WORD *)((char *)this + 13);\n  *((_BYTE *)this + 12) = *((_BYTE *)this + 15);\n  if ( !v2 )\n  {\n    v4 = *((_QWORD *)this - 24);\n    v8 = -1;\n    v9 = -1;\n    v5 = _RTDynamicCast(\n           v4,\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 + 64LL))(v5) )\n      {\n        v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);\n        v8 = *(_WORD *)v7;\n        v9 = *(_BYTE *)(v7 + 2);\n      }\n    }\n    (*(void (__fastcall **)(cocos2d::CCLayerRGBA *, __int16 *))(*(_QWORD *)this + 80LL))(this, &v8);\n  }\n}", "assembly": "; \n; cocos2d::CCLayerRGBA::setColor from 0x1800528c0 to 0x18005297d (189 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCLayerColor::setColor @ 0x180052899\n; > <???> @ 0x1800f3a00\n; > <???> @ 0x1800fd620\n; > <???> @ 0x1801413d4\n; > <???> @ 0x1801413e4\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc2f8\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, 0x1800528c0\nsub     rsp, 30h                                                       ; +0x2, 0x1800528c2\ncmp     byte ptr [rcx+11h], 0                                          ; +0x6, 0x1800528c6\nmov     rbx, rcx                                                       ; +0xa, 0x1800528ca\nmovzx   eax, word ptr [rdx]                                            ; +0xd, 0x1800528cd\nmov     [rcx+0Dh], ax                                                  ; +0x10, 0x1800528d0\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x14, 0x1800528d4\nmov     [rcx+0Fh], al                                                  ; +0x18, 0x1800528d8\nmovzx   eax, word ptr [rcx+0Dh]                                        ; +0x1b, 0x1800528db\nmov     [rcx+0Ah], ax                                                  ; +0x1f, 0x1800528df\nmovzx   eax, byte ptr [rcx+0Fh]                                        ; +0x23, 0x1800528e3\nmov     [rcx+0Ch], al                                                  ; +0x27, 0x1800528e7\njz      loc_180052977                                                  ; +0x2a, 0x1800528ea\nmovzx   eax, cs:word_1800F2F70                                         ; +0x30, 0x1800528f0\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x37, 0x1800528f7\nmov     rcx, [rcx-0C0h]                                                ; +0x3e, 0x1800528fe\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x45, 0x180052905\nmov     [rsp+38h+arg_0], ax                                            ; +0x4c, 0x18005290c\nxor     edx, edx                                                       ; +0x51, 0x180052911\nmovzx   eax, cs:byte_1800F2F72                                         ; +0x53, 0x180052913\nmov     [rsp+38h+arg_2], al                                            ; +0x5a, 0x18005291a\nmov     [rsp+38h+arg_8], rdi                                           ; +0x5e, 0x18005291e\nmov     [rsp+38h+var_18], 0                                            ; +0x63, 0x180052923\ncall    __RTDynamicCast                                                ; +0x6b, 0x18005292b\nmov     rdi, rax                                                       ; +0x70, 0x180052930\ntest    rax, rax                                                       ; +0x73, 0x180052933\njz      short loc_180052964                                            ; +0x76, 0x180052936\nmov     rcx, [rax]                                                     ; +0x78, 0x180052938\nmov     rdx, [rcx+40h]                                                 ; +0x7b, 0x18005293b\nmov     rcx, rax                                                       ; +0x7f, 0x18005293f\ncall    rdx                                                            ; +0x82, 0x180052942\ntest    al, al                                                         ; +0x84, 0x180052944\njz      short loc_180052964                                            ; +0x86, 0x180052946\nmov     rcx, [rdi]                                                     ; +0x88, 0x180052948\nmov     rdx, [rcx+10h]                                                 ; +0x8b, 0x18005294b\nmov     rcx, rdi                                                       ; +0x8f, 0x18005294f\ncall    rdx                                                            ; +0x92, 0x180052952\nmovzx   ecx, word ptr [rax]                                            ; +0x94, 0x180052954\nmov     [rsp+38h+arg_0], cx                                            ; +0x97, 0x180052957\nmovzx   eax, byte ptr [rax+2]                                          ; +0x9c, 0x18005295c\nmov     [rsp+38h+arg_2], al                                            ; +0xa0, 0x180052960\nmov     rax, [rbx]                                                     ; +0xa4, 0x180052964\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xa7, 0x180052967\nmov     rcx, rbx                                                       ; +0xac, 0x18005296c\ncall    qword ptr [rax+50h]                                            ; +0xaf, 0x18005296f\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xb2, 0x180052972\nadd     rsp, 30h                                                       ; +0xb7, 0x180052977\npop     rbx                                                            ; +0xbb, 0x18005297b\nretn                                                                   ; +0xbc, 0x18005297c", "xrefs": ["cocos2d::CCLayerColor::setColor @ 0x180052899", "<???> @ 0x1800f3a00", "<???> @ 0x1800fd620", "<???> @ 0x1801413d4", "<???> @ 0x1801413e4", "<???> @ 0x18014cf68", "<???> @ 0x1801bc2f8"], "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"}