{"type": "func", "start": 6442781344, "end": 6442781527, "name": "cocos2d::CCLayerRGBA::setColor", "pseudocode": "// \n// cocos2d::CCLayerRGBA::setColor from 0x180050aa0 to 0x180050b57 (183 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCLayerColor::setColor @ 0x180050a79\n// > <???> @ 0x1800ed870\n// > <???> @ 0x1800f71c8\n// > <???> @ 0x1801381ac\n// > <???> @ 0x1801381bc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2064\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 __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 = BYTE1(this->m_nTag) == 0;\n  *(struct cocos2d::_ccColor3B *)((char *)&this->m_nLuaID + 1) = *a2;\n  HIWORD(this->m_uID) = *(_WORD *)((char *)&this->m_nLuaID + 1);\n  LOBYTE(this->m_nLuaID) = HIBYTE(this->m_nLuaID);\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 *))this->setZOrder)(this, &v8);\n  }\n}", "assembly": "; \n; cocos2d::CCLayerRGBA::setColor from 0x180050aa0 to 0x180050b57 (183 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCLayerColor::setColor @ 0x180050a79\n; > <???> @ 0x1800ed870\n; > <???> @ 0x1800f71c8\n; > <???> @ 0x1801381ac\n; > <???> @ 0x1801381bc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2064\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, 0x180050aa0\nsub     rsp, 30h                                                       ; +0x2, 0x180050aa2\ncmp     byte ptr [rcx+11h], 0                                          ; +0x6, 0x180050aa6\nmov     rbx, rcx                                                       ; +0xa, 0x180050aaa\nmovzx   eax, word ptr [rdx]                                            ; +0xd, 0x180050aad\nmov     [rcx+0Dh], ax                                                  ; +0x10, 0x180050ab0\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x14, 0x180050ab4\nmov     [rcx+0Fh], al                                                  ; +0x18, 0x180050ab8\nmovzx   eax, word ptr [rcx+0Dh]                                        ; +0x1b, 0x180050abb\nmov     [rcx+0Ah], ax                                                  ; +0x1f, 0x180050abf\nmovzx   eax, byte ptr [rcx+0Fh]                                        ; +0x23, 0x180050ac3\nmov     [rcx+0Ch], al                                                  ; +0x27, 0x180050ac7\njz      loc_180050B51                                                  ; +0x2a, 0x180050aca\nmovzx   eax, cs:word_1800ECE30                                         ; +0x30, 0x180050ad0\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x37, 0x180050ad7\nmov     rcx, [rcx-0C0h]                                                ; +0x3e, 0x180050ade\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x45, 0x180050ae5\nmov     [rsp+38h+arg_0], ax                                            ; +0x4c, 0x180050aec\nxor     edx, edx                                                       ; +0x51, 0x180050af1\nmovzx   eax, cs:byte_1800ECE32                                         ; +0x53, 0x180050af3\nmov     [rsp+38h+arg_2], al                                            ; +0x5a, 0x180050afa\nmov     [rsp+38h+arg_8], rdi                                           ; +0x5e, 0x180050afe\nmov     [rsp+38h+var_18], 0                                            ; +0x63, 0x180050b03\ncall    __RTDynamicCast                                                ; +0x6b, 0x180050b0b\nmov     rdi, rax                                                       ; +0x70, 0x180050b10\ntest    rax, rax                                                       ; +0x73, 0x180050b13\njz      short loc_180050B3E                                            ; +0x76, 0x180050b16\nmov     rdx, [rax]                                                     ; +0x78, 0x180050b18\nmov     rcx, rax                                                       ; +0x7b, 0x180050b1b\ncall    qword ptr [rdx+40h]                                            ; +0x7e, 0x180050b1e\ntest    al, al                                                         ; +0x81, 0x180050b21\njz      short loc_180050B3E                                            ; +0x83, 0x180050b23\nmov     rdx, [rdi]                                                     ; +0x85, 0x180050b25\nmov     rcx, rdi                                                       ; +0x88, 0x180050b28\ncall    qword ptr [rdx+10h]                                            ; +0x8b, 0x180050b2b\nmovzx   ecx, word ptr [rax]                                            ; +0x8e, 0x180050b2e\nmov     [rsp+38h+arg_0], cx                                            ; +0x91, 0x180050b31\nmovzx   eax, byte ptr [rax+2]                                          ; +0x96, 0x180050b36\nmov     [rsp+38h+arg_2], al                                            ; +0x9a, 0x180050b3a\nmov     rax, [rbx]                                                     ; +0x9e, 0x180050b3e\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xa1, 0x180050b41\nmov     rcx, rbx                                                       ; +0xa6, 0x180050b46\ncall    qword ptr [rax+50h]                                            ; +0xa9, 0x180050b49\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xac, 0x180050b4c\nadd     rsp, 30h                                                       ; +0xb1, 0x180050b51\npop     rbx                                                            ; +0xb5, 0x180050b55\nretn                                                                   ; +0xb6, 0x180050b56", "xrefs": ["cocos2d::CCLayerColor::setColor @ 0x180050a79", "<???> @ 0x1800ed870", "<???> @ 0x1800f71c8", "<???> @ 0x1801381ac", "<???> @ 0x1801381bc", "<???> @ 0x1801438a8", "<???> @ 0x1801b2064"], "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"}