{"type": "func", "start": 6442470208, "end": 6442470384, "name": "cocos2d::CCNodeRGBA::setColor", "pseudocode": "// \n// cocos2d::CCNodeRGBA::setColor from 0x180004b40 to 0x180004bf0 (176 bytes)\n// \n// 16 xrefs:\n// > cocos2d::CCAtlasNode::setColor @ 0x180001e5a\n// > cocos2d::CCSprite::setColor @ 0x18008c3d3\n// > <???> @ 0x1800e6120\n// > <???> @ 0x1800e6a80\n// > <???> @ 0x1800f7610\n// > <???> @ 0x1800f7a58\n// > <???> @ 0x1800f7ea0\n// > <???> @ 0x1800f82e8\n// > <???> @ 0x1800f8748\n// > <???> @ 0x1800f8ba8\n// > <???> @ 0x1800f8ff0\n// > <???> @ 0x1800f97a8\n// > <???> @ 0x1801312f8\n// > <???> @ 0x180131308\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad594\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::CCNodeRGBA::setColor(cocos2d::CCNodeRGBA *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 = LOBYTE(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 - 13);\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::CCNodeRGBA *, __int16 *))this->setZOrder)(this, &v8);\n  }\n}", "assembly": "; \n; cocos2d::CCNodeRGBA::setColor from 0x180004b40 to 0x180004bf0 (176 bytes)\n; \n; 16 xrefs:\n; > cocos2d::CCAtlasNode::setColor @ 0x180001e5a\n; > cocos2d::CCSprite::setColor @ 0x18008c3d3\n; > <???> @ 0x1800e6120\n; > <???> @ 0x1800e6a80\n; > <???> @ 0x1800f7610\n; > <???> @ 0x1800f7a58\n; > <???> @ 0x1800f7ea0\n; > <???> @ 0x1800f82e8\n; > <???> @ 0x1800f8748\n; > <???> @ 0x1800f8ba8\n; > <???> @ 0x1800f8ff0\n; > <???> @ 0x1800f97a8\n; > <???> @ 0x1801312f8\n; > <???> @ 0x180131308\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad594\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, 0x180004b40\nsub     rsp, 30h                                                       ; +0x2, 0x180004b42\ncmp     byte ptr [rcx+10h], 0                                          ; +0x6, 0x180004b46\nmov     rbx, rcx                                                       ; +0xa, 0x180004b4a\nmovzx   eax, word ptr [rdx]                                            ; +0xd, 0x180004b4d\nmov     [rcx+0Dh], ax                                                  ; +0x10, 0x180004b50\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x14, 0x180004b54\nmov     [rcx+0Fh], al                                                  ; +0x18, 0x180004b58\nmovzx   eax, word ptr [rcx+0Dh]                                        ; +0x1b, 0x180004b5b\nmov     [rcx+0Ah], ax                                                  ; +0x1f, 0x180004b5f\nmovzx   eax, byte ptr [rcx+0Fh]                                        ; +0x23, 0x180004b63\nmov     [rcx+0Ch], al                                                  ; +0x27, 0x180004b67\njz      short loc_180004BEA                                            ; +0x2a, 0x180004b6a\nmovzx   eax, cs:word_1800E5840                                         ; +0x2c, 0x180004b6c\nlea     r9, ??_R0?AVCCRGBAProtocol@cocos2d@@@8; cocos2d::CCRGBAProtocol `RTTI Type Descriptor' ; +0x33, 0x180004b73\nmov     rcx, [rcx-68h]                                                 ; +0x3a, 0x180004b7a\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x3e, 0x180004b7e\nmov     [rsp+38h+arg_0], ax                                            ; +0x45, 0x180004b85\nxor     edx, edx                                                       ; +0x4a, 0x180004b8a\nmovzx   eax, cs:byte_1800E5842                                         ; +0x4c, 0x180004b8c\nmov     [rsp+38h+arg_2], al                                            ; +0x53, 0x180004b93\nmov     [rsp+38h+arg_8], rdi                                           ; +0x57, 0x180004b97\nmov     [rsp+38h+var_18], 0                                            ; +0x5c, 0x180004b9c\ncall    __RTDynamicCast                                                ; +0x64, 0x180004ba4\nmov     rdi, rax                                                       ; +0x69, 0x180004ba9\ntest    rax, rax                                                       ; +0x6c, 0x180004bac\njz      short loc_180004BD7                                            ; +0x6f, 0x180004baf\nmov     rdx, [rax]                                                     ; +0x71, 0x180004bb1\nmov     rcx, rax                                                       ; +0x74, 0x180004bb4\ncall    qword ptr [rdx+40h]                                            ; +0x77, 0x180004bb7\ntest    al, al                                                         ; +0x7a, 0x180004bba\njz      short loc_180004BD7                                            ; +0x7c, 0x180004bbc\nmov     rdx, [rdi]                                                     ; +0x7e, 0x180004bbe\nmov     rcx, rdi                                                       ; +0x81, 0x180004bc1\ncall    qword ptr [rdx+10h]                                            ; +0x84, 0x180004bc4\nmovzx   ecx, word ptr [rax]                                            ; +0x87, 0x180004bc7\nmov     [rsp+38h+arg_0], cx                                            ; +0x8a, 0x180004bca\nmovzx   eax, byte ptr [rax+2]                                          ; +0x8f, 0x180004bcf\nmov     [rsp+38h+arg_2], al                                            ; +0x93, 0x180004bd3\nmov     rax, [rbx]                                                     ; +0x97, 0x180004bd7\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x9a, 0x180004bda\nmov     rcx, rbx                                                       ; +0x9f, 0x180004bdf\ncall    qword ptr [rax+50h]                                            ; +0xa2, 0x180004be2\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xa5, 0x180004be5\nadd     rsp, 30h                                                       ; +0xaa, 0x180004bea\npop     rbx                                                            ; +0xae, 0x180004bee\nretn                                                                   ; +0xaf, 0x180004bef", "xrefs": ["cocos2d::CCAtlasNode::setColor @ 0x180001e5a", "cocos2d::CCSprite::setColor @ 0x18008c3d3", "<???> @ 0x1800e6120", "<???> @ 0x1800e6a80", "<???> @ 0x1800f7610", "<???> @ 0x1800f7a58", "<???> @ 0x1800f7ea0", "<???> @ 0x1800f82e8", "<???> @ 0x1800f8748", "<???> @ 0x1800f8ba8", "<???> @ 0x1800f8ff0", "<???> @ 0x1800f97a8", "<???> @ 0x1801312f8", "<???> @ 0x180131308", "<???> @ 0x1801438a8", "<???> @ 0x1801ad594"], "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"}