{"type": "func", "start": 4298444912, "end": 4298444993, "name": "CCAnimatedSprite::setColor", "pseudocode": "// \n// CCAnimatedSprite::setColor from 0x100351070 to 0x1003510c1 (81 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1009147b0\n// > <???> @ 0x100915340\n// > <???> @ 0x100974fb0\n// > <???> @ 0x100975568\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 CCAnimatedSprite::setColor(CCAnimatedSprite *a1, const cocos2d::ccColor3B *a2)\n{\n  cocos2d::CCSprite *m_fbfSprite; // rdi\n  CCPartAnimSprite *m_paSprite; // rdi\n\n  m_fbfSprite = a1->m_fbfSprite;\n  if ( m_fbfSprite )\n    ((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))m_fbfSprite->setColor)(m_fbfSprite, a2);\n  m_paSprite = a1->m_paSprite;\n  if ( m_paSprite )\n    CCPartAnimSprite::setColor(m_paSprite, (cocos2d::ccColor3B)(*(unsigned __int16 *)&a2->r | (a2->b << 16)));\n  cocos2d::CCSprite::setColor(a1, a2);\n}", "assembly": "; \n; CCAnimatedSprite::setColor from 0x100351070 to 0x1003510c1 (81 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1009147b0\n; > <???> @ 0x100915340\n; > <???> @ 0x100974fb0\n; > <???> @ 0x100975568\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    rbp                                                            ; +0x0, 0x100351070\nmov     rbp, rsp                                                       ; +0x1, 0x100351071\npush    r14                                                            ; +0x4, 0x100351074\npush    rbx                                                            ; +0x6, 0x100351076\nmov     rbx, rsi                                                       ; +0x7, 0x100351077\nmov     r14, rdi                                                       ; +0xa, 0x10035107a\nmov     rdi, [rdi+298h]                                                ; +0xd, 0x10035107d\ntest    rdi, rdi                                                       ; +0x14, 0x100351084\njz      short loc_100351095                                            ; +0x17, 0x100351087\nmov     rax, [rdi]                                                     ; +0x19, 0x100351089\nmov     rsi, rbx                                                       ; +0x1c, 0x10035108c\ncall    qword ptr [rax+3B0h]                                           ; +0x1f, 0x10035108f\nmov     rdi, [r14+2A0h]                                                ; +0x25, 0x100351095\ntest    rdi, rdi                                                       ; +0x2c, 0x10035109c\njz      short loc_1003510B2                                            ; +0x2f, 0x10035109f\nmovzx   eax, word ptr [rbx]                                            ; +0x31, 0x1003510a1\nmovzx   esi, byte ptr [rbx+2]                                          ; +0x34, 0x1003510a4\nshl     esi, 10h                                                       ; +0x38, 0x1003510a8\nor      esi, eax                                                       ; +0x3b, 0x1003510ab\ncall    CCPartAnimSprite__setColor                                     ; +0x3d, 0x1003510ad\nmov     rdi, r14                                                       ; +0x42, 0x1003510b2\nmov     rsi, rbx                                                       ; +0x45, 0x1003510b5\npop     rbx                                                            ; +0x48, 0x1003510b8\npop     r14                                                            ; +0x49, 0x1003510b9\npop     rbp                                                            ; +0x4b, 0x1003510bb\njmp     cocos2d__CCSprite__setColor                                    ; +0x4c, 0x1003510bc", "xrefs": ["<???> @ 0x1009147b0", "<???> @ 0x100915340", "<???> @ 0x100974fb0", "<???> @ 0x100975568"], "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"}