{"type": "func", "start": 5368975584, "end": 5368975678, "name": "CCAnimatedSprite::setOpacity", "pseudocode": "// \n// CCAnimatedSprite::setOpacity from 0x1400410e0 to 0x14004113e (94 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14052c510\n// > <???> @ 0x14057dd90\n// > <???> @ 0x1406c429c\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::setOpacity(CCAnimatedSprite *a1, unsigned __int8 a2)\n{\n  __int64 v4; // rcx\n  cocos2d::CCSpriteBatchNode *m_pobBatchNode; // rcx\n\n  v4 = *(_QWORD *)&a1->m_uAtlasIndex;\n  if ( v4 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)(v4 + 320) + 40LL))(v4 + 320);\n  m_pobBatchNode = a1->m_pobBatchNode;\n  if ( m_pobBatchNode )\n    ((void (__fastcall *)(cocos2d::CCTextureProtocol *, _QWORD))m_pobBatchNode->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable[1].getBlendFunc)(\n      &m_pobBatchNode->cocos2d::CCTextureProtocol,\n      a2);\n  cocos2d::CCSprite::setOpacity(a1, a2);\n}", "assembly": "; \n; CCAnimatedSprite::setOpacity from 0x1400410e0 to 0x14004113e (94 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14052c510\n; > <???> @ 0x14057dd90\n; > <???> @ 0x1406c429c\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_0], rbx                                               ; +0x0, 0x1400410e0\npush    rdi                                                            ; +0x5, 0x1400410e5\nsub     rsp, 20h                                                       ; +0x6, 0x1400410e6\nmov     rbx, rcx                                                       ; +0xa, 0x1400410ea\nmovzx   edi, dl                                                        ; +0xd, 0x1400410ed\nmov     rcx, [rcx+168h]                                                ; +0x10, 0x1400410f0\ntest    rcx, rcx                                                       ; +0x17, 0x1400410f7\njz      short loc_140041109                                            ; +0x1a, 0x1400410fa\nadd     rcx, 140h                                                      ; +0x1c, 0x1400410fc\nmov     rax, [rcx]                                                     ; +0x23, 0x140041103\ncall    qword ptr [rax+28h]                                            ; +0x26, 0x140041106\nmov     rcx, [rbx+170h]                                                ; +0x29, 0x140041109\ntest    rcx, rcx                                                       ; +0x30, 0x140041110\njz      short loc_140041126                                            ; +0x33, 0x140041113\nadd     rcx, 140h                                                      ; +0x35, 0x140041115\nmovzx   edx, dil                                                       ; +0x3c, 0x14004111c\nmov     rax, [rcx]                                                     ; +0x40, 0x140041120\ncall    qword ptr [rax+28h]                                            ; +0x43, 0x140041123\nmovzx   edx, dil                                                       ; +0x46, 0x140041126\nmov     rcx, rbx                                                       ; +0x4a, 0x14004112a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4d, 0x14004112d\nadd     rsp, 20h                                                       ; +0x52, 0x140041132\npop     rdi                                                            ; +0x56, 0x140041136\njmp     cs:__imp_?setOpacity@CCSprite@cocos2d@@UEAAXE@Z; cocos2d::CCSprite::setOpacity(uchar) ; +0x57, 0x140041137", "xrefs": ["<???> @ 0x14052c510", "<???> @ 0x14057dd90", "<???> @ 0x1406c429c"], "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"}