{"type": "func", "start": 6442458592, "end": 6442458724, "name": "cocos2d::CCAtlasNode::setColor", "pseudocode": "// \n// cocos2d::CCAtlasNode::setColor from 0x180001de0 to 0x180001e64 (132 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x1800e5778\n// > <???> @ 0x1800eb778\n// > <???> @ 0x180105938\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ad0fc\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::CCAtlasNode::setColor(cocos2d::CCAtlasNode *this, const struct cocos2d::_ccColor3B *a2)\n{\n  bool v2; // zf\n  __int16 v3; // ax\n  int b; // r10d\n  int m_uID_low; // r8d\n  struct cocos2d::_ccColor3B v6; // [rsp+30h] [rbp+8h] BYREF\n\n  v2 = LOBYTE(this->m_fScaleX) == 0;\n  v3 = *(_WORD *)&a2->r;\n  b = a2->b;\n  LOWORD(this->m_uOrderOfArrival) = *(_WORD *)&a2->r;\n  *(_WORD *)&v6.r = v3;\n  BYTE2(this->m_uOrderOfArrival) = a2->b;\n  v6.b = b;\n  if ( !v2 )\n  {\n    m_uID_low = LOBYTE(this->m_uID);\n    v6.r = m_uID_low * (unsigned int)v6.r / 0xFF;\n    v6.g = m_uID_low * (unsigned int)v6.g / 0xFF;\n    v6.b = m_uID_low * b / 0xFFu;\n  }\n  cocos2d::CCNodeRGBA::setColor(this, &v6);\n}", "assembly": "; \n; cocos2d::CCAtlasNode::setColor from 0x180001de0 to 0x180001e64 (132 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x1800e5778\n; > <???> @ 0x1800eb778\n; > <???> @ 0x180105938\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ad0fc\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\nsub     rsp, 28h                                                       ; +0x0, 0x180001de0\ncmp     byte ptr [rcx+40h], 0                                          ; +0x4, 0x180001de4\nmov     r9, rcx                                                        ; +0x8, 0x180001de8\nmovzx   eax, word ptr [rdx]                                            ; +0xb, 0x180001deb\nmovzx   r10d, byte ptr [rdx+2]                                         ; +0xe, 0x180001dee\nmov     [rcx+30h], ax                                                  ; +0x13, 0x180001df3\nmov     [rsp+28h+arg_0], ax                                            ; +0x17, 0x180001df7\nmovzx   eax, byte ptr [rdx+2]                                          ; +0x1c, 0x180001dfc\nmov     [rcx+32h], al                                                  ; +0x20, 0x180001e00\nmov     [rsp+28h+arg_2], r10b                                          ; +0x23, 0x180001e03\njz      short loc_180001E52                                            ; +0x28, 0x180001e08\nmovzx   r8d, byte ptr [rcx+8]                                          ; +0x2a, 0x180001e0a\nmov     eax, 80808081h                                                 ; +0x2f, 0x180001e0f\nmovzx   ecx, byte ptr [rsp+28h+arg_0]                                  ; +0x34, 0x180001e14\nimul    ecx, r8d                                                       ; +0x39, 0x180001e19\nmul     ecx                                                            ; +0x3d, 0x180001e1d\nmovzx   ecx, byte ptr [rsp+28h+arg_0+1]                                ; +0x3f, 0x180001e1f\nmov     eax, 80808081h                                                 ; +0x44, 0x180001e24\nshr     edx, 7                                                         ; +0x49, 0x180001e29\nimul    ecx, r8d                                                       ; +0x4c, 0x180001e2c\nmov     byte ptr [rsp+28h+arg_0], dl                                   ; +0x50, 0x180001e30\nmul     ecx                                                            ; +0x54, 0x180001e34\nmov     ecx, r10d                                                      ; +0x56, 0x180001e36\nmov     eax, 80808081h                                                 ; +0x59, 0x180001e39\nshr     edx, 7                                                         ; +0x5e, 0x180001e3e\nimul    ecx, r8d                                                       ; +0x61, 0x180001e41\nmov     byte ptr [rsp+28h+arg_0+1], dl                                 ; +0x65, 0x180001e45\nmul     ecx                                                            ; +0x69, 0x180001e49\nshr     edx, 7                                                         ; +0x6b, 0x180001e4b\nmov     [rsp+28h+arg_2], dl                                            ; +0x6e, 0x180001e4e\nlea     rdx, [rsp+28h+arg_0]; struct cocos2d::_ccColor3B *             ; +0x72, 0x180001e52\nmov     rcx, r9; this                                                  ; +0x77, 0x180001e57\ncall    ?setColor@CCNodeRGBA@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCNodeRGBA::setColor(cocos2d::_ccColor3B const &) ; +0x7a, 0x180001e5a\nadd     rsp, 28h                                                       ; +0x7f, 0x180001e5f\nretn                                                                   ; +0x83, 0x180001e63", "xrefs": ["<???> @ 0x1800e5778", "<???> @ 0x1800eb778", "<???> @ 0x180105938", "<???> @ 0x1801438a8", "<???> @ 0x1801ad0fc"], "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"}