{"type": "func", "start": 6442881952, "end": 6442882041, "name": "cocos2d::CCParticleSystem::setTexture", "pseudocode": "// \n// cocos2d::CCParticleSystem::setTexture from 0x1800693a0 to 0x1800693f9 (89 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ad2e\n// > <???> @ 0x1800ff600\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3c48\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::CCParticleSystem::setTexture(cocos2d::CCParticleSystem *this, struct cocos2d::CCTexture2D *a2)\n{\n  cocos2d::CCObject *m_capacity; // rcx\n\n  if ( (struct cocos2d::CCTexture2D *)this->m_sPlistFile.m_data.m_capacity != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    m_capacity = (cocos2d::CCObject *)this->m_sPlistFile.m_data.m_capacity;\n    if ( m_capacity )\n      cocos2d::CCObject::release(m_capacity);\n    this->m_sPlistFile.m_data.m_capacity = (std::size_t)a2;\n    (*(void (__fastcall **)(char *))(*((_QWORD *)this - 40) + 1584LL))((char *)this - 320);\n  }\n}", "assembly": "; \n; cocos2d::CCParticleSystem::setTexture from 0x1800693a0 to 0x1800693f9 (89 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ad2e\n; > <???> @ 0x1800ff600\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3c48\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, 0x1800693a0\npush    rdi                                                            ; +0x5, 0x1800693a5\nsub     rsp, 20h                                                       ; +0x6, 0x1800693a6\nmov     rbx, rdx                                                       ; +0xa, 0x1800693aa\nmov     rdi, rcx                                                       ; +0xd, 0x1800693ad\ncmp     [rcx+160h], rdx                                                ; +0x10, 0x1800693b0\njz      short loc_1800693EE                                            ; +0x17, 0x1800693b7\ntest    rdx, rdx                                                       ; +0x19, 0x1800693b9\njz      short loc_1800693C6                                            ; +0x1c, 0x1800693bc\nmov     rcx, rdx; this                                                 ; +0x1e, 0x1800693be\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x21, 0x1800693c1\nmov     rcx, [rdi+160h]; this                                          ; +0x26, 0x1800693c6\ntest    rcx, rcx                                                       ; +0x2d, 0x1800693cd\njz      short loc_1800693D7                                            ; +0x30, 0x1800693d0\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x32, 0x1800693d2\nlea     rcx, [rdi-140h]                                                ; +0x37, 0x1800693d7\nmov     [rdi+160h], rbx                                                ; +0x3e, 0x1800693de\nmov     rax, [rcx]                                                     ; +0x45, 0x1800693e5\ncall    qword ptr [rax+630h]                                           ; +0x48, 0x1800693e8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x1800693ee\nadd     rsp, 20h                                                       ; +0x53, 0x1800693f3\npop     rdi                                                            ; +0x57, 0x1800693f7\nretn                                                                   ; +0x58, 0x1800693f8", "xrefs": ["cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ad2e", "<???> @ 0x1800ff600", "<???> @ 0x1801438a8", "<???> @ 0x1801b3c48"], "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"}