{"type": "func", "start": 6442458528, "end": 6442458660, "name": "cocos2d::CCAtlasNode::setColor", "pseudocode": "// \n// cocos2d::CCAtlasNode::setColor from 0x180001da0 to 0x180001e24 (132 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800eb7b8\n// > <???> @ 0x1800f1828\n// > <???> @ 0x18010c028\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7108\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:15 +0000\n// \n\nvoid __fastcall cocos2d::CCAtlasNode::setColor(cocos2d::CCAtlasNode *this, const struct cocos2d::_ccColor3B *a2)\n{\n  bool v2; // zf\n  __int16 v3; // ax\n  int v4; // r10d\n  int v5; // r8d\n  __int16 v6; // [rsp+30h] [rbp+8h] BYREF\n  char v7; // [rsp+32h] [rbp+Ah]\n\n  v2 = *((_BYTE *)this + 64) == 0;\n  v3 = *(_WORD *)a2;\n  v4 = *((unsigned __int8 *)a2 + 2);\n  *((_WORD *)this + 24) = *(_WORD *)a2;\n  v6 = v3;\n  *((_BYTE *)this + 50) = *((_BYTE *)a2 + 2);\n  v7 = v4;\n  if ( !v2 )\n  {\n    v5 = *((unsigned __int8 *)this + 8);\n    LOBYTE(v6) = v5 * (unsigned int)(unsigned __int8)v6 / 0xFF;\n    HIBYTE(v6) = v5 * (unsigned int)HIBYTE(v6) / 0xFF;\n    v7 = v5 * v4 / 0xFFu;\n  }\n  cocos2d::CCNodeRGBA::setColor(this, (const struct cocos2d::_ccColor3B *)&v6);\n}", "assembly": "; \n; cocos2d::CCAtlasNode::setColor from 0x180001da0 to 0x180001e24 (132 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800eb7b8\n; > <???> @ 0x1800f1828\n; > <???> @ 0x18010c028\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7108\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:15 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x180001da0\ncmp     byte ptr [rcx+40h], 0                                          ; +0x4, 0x180001da4\nmov     r9, rcx                                                        ; +0x8, 0x180001da8\nmovzx   eax, word ptr [rdx]                                            ; +0xb, 0x180001dab\nmovzx   r10d, byte ptr [rdx+2]                                         ; +0xe, 0x180001dae\nmov     [rcx+30h], ax                                                  ; +0x13, 0x180001db3\nmov     [rsp+28h+arg_0], ax                                            ; +0x17, 0x180001db7\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x1c, 0x180001dbc\nmov     [rcx+32h], al                                                  ; +0x20, 0x180001dc0\nmov     [rsp+28h+arg_2], r10b                                          ; +0x23, 0x180001dc3\njz      short loc_180001E12                                            ; +0x28, 0x180001dc8\nmovzx   r8d, byte ptr [rcx+8]                                          ; +0x2a, 0x180001dca\nmov     eax, 80808081h                                                 ; +0x2f, 0x180001dcf\nmovzx   ecx, byte ptr [rsp+28h+arg_0]                                  ; +0x34, 0x180001dd4\nimul    ecx, r8d                                                       ; +0x39, 0x180001dd9\nmul     ecx                                                            ; +0x3d, 0x180001ddd\nmovzx   ecx, byte ptr [rsp+28h+arg_0+1]                                ; +0x3f, 0x180001ddf\nmov     eax, 80808081h                                                 ; +0x44, 0x180001de4\nshr     edx, 7                                                         ; +0x49, 0x180001de9\nimul    ecx, r8d                                                       ; +0x4c, 0x180001dec\nmov     byte ptr [rsp+28h+arg_0], dl                                   ; +0x50, 0x180001df0\nmul     ecx                                                            ; +0x54, 0x180001df4\nmov     ecx, r10d                                                      ; +0x56, 0x180001df6\nmov     eax, 80808081h                                                 ; +0x59, 0x180001df9\nshr     edx, 7                                                         ; +0x5e, 0x180001dfe\nimul    ecx, r8d                                                       ; +0x61, 0x180001e01\nmov     byte ptr [rsp+28h+arg_0+1], dl                                 ; +0x65, 0x180001e05\nmul     ecx                                                            ; +0x69, 0x180001e09\nshr     edx, 7                                                         ; +0x6b, 0x180001e0b\nmov     [rsp+28h+arg_2], dl                                            ; +0x6e, 0x180001e0e\nlea     rdx, [rsp+28h+arg_0]; struct cocos2d::_ccColor3B *             ; +0x72, 0x180001e12\nmov     rcx, r9; this                                                  ; +0x77, 0x180001e17\ncall    ?setColor@CCNodeRGBA@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCNodeRGBA::setColor(cocos2d::_ccColor3B const &) ; +0x7a, 0x180001e1a\nadd     rsp, 28h                                                       ; +0x7f, 0x180001e1f\nretn                                                                   ; +0x83, 0x180001e23", "xrefs": ["<???> @ 0x1800eb7b8", "<???> @ 0x1800f1828", "<???> @ 0x18010c028", "<???> @ 0x18014cf68", "<???> @ 0x1801b7108"], "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"}