{"type": "func", "start": 5368975680, "end": 5368975781, "name": "CCAnimatedSprite::setColor", "pseudocode": "// \n// CCAnimatedSprite::setColor from 0x140041140 to 0x1400411a5 (101 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14052c4e8\n// > <???> @ 0x14057c4c0\n// > <???> @ 0x14057c560\n// > <???> @ 0x14057dd68\n// > <???> @ 0x1406c42a8\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 CCAnimatedSprite::setColor(CCAnimatedSprite *a1, const cocos2d::ccColor3B *a2)\n{\n  __int64 v4; // rcx\n  cocos2d::CCSpriteBatchNode *m_pobBatchNode; // rcx\n  cocos2d::ccColor3B v6; // [rsp+30h] [rbp+8h] BYREF\n\n  v4 = *(_QWORD *)&a1->m_uAtlasIndex;\n  if ( v4 )\n    (**(void (__fastcall ***)(__int64))(v4 + 320))(v4 + 320);\n  m_pobBatchNode = a1->m_pobBatchNode;\n  if ( m_pobBatchNode )\n  {\n    v6 = *a2;\n    CCPartAnimSprite::setColor((CCPartAnimSprite *)m_pobBatchNode, &v6);\n  }\n  cocos2d::CCSprite::setColor(a1, a2);\n}", "assembly": "; \n; CCAnimatedSprite::setColor from 0x140041140 to 0x1400411a5 (101 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14052c4e8\n; > <???> @ 0x14057c4c0\n; > <???> @ 0x14057c560\n; > <???> @ 0x14057dd68\n; > <???> @ 0x1406c42a8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140041140\npush    rdi                                                            ; +0x5, 0x140041145\nsub     rsp, 20h                                                       ; +0x6, 0x140041146\nmov     rbx, rcx                                                       ; +0xa, 0x14004114a\nmov     rdi, rdx                                                       ; +0xd, 0x14004114d\nmov     rcx, [rcx+168h]                                                ; +0x10, 0x140041150\ntest    rcx, rcx                                                       ; +0x17, 0x140041157\njz      short loc_140041168                                            ; +0x1a, 0x14004115a\nadd     rcx, 140h                                                      ; +0x1c, 0x14004115c\nmov     rax, [rcx]                                                     ; +0x23, 0x140041163\ncall    qword ptr [rax]                                                ; +0x26, 0x140041166\nmov     rcx, [rbx+170h]                                                ; +0x28, 0x140041168\ntest    rcx, rcx                                                       ; +0x2f, 0x14004116f\njz      short loc_14004118E                                            ; +0x32, 0x140041172\nmovzx   eax, word ptr [rdi]                                            ; +0x34, 0x140041174\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x37, 0x140041177\nmov     [rsp+28h+arg_0], ax                                            ; +0x3c, 0x14004117c\nmovzx   eax, byte ptr [rdi+2]                                          ; +0x41, 0x140041181\nmov     [rsp+28h+arg_2], al                                            ; +0x45, 0x140041185\ncall    CCPartAnimSprite__setColor                                     ; +0x49, 0x140041189\nmov     rdx, rdi                                                       ; +0x4e, 0x14004118e\nmov     rcx, rbx                                                       ; +0x51, 0x140041191\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x54, 0x140041194\nadd     rsp, 20h                                                       ; +0x59, 0x140041199\npop     rdi                                                            ; +0x5d, 0x14004119d\njmp     cs:__imp_?setColor@CCSprite@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const &) ; +0x5e, 0x14004119e", "xrefs": ["<???> @ 0x14052c4e8", "<???> @ 0x14057c4c0", "<???> @ 0x14057c560", "<???> @ 0x14057dd68", "<???> @ 0x1406c42a8"], "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"}