{"type": "func", "start": 6442890560, "end": 6442890663, "name": "cocos2d::CCParticleSystem::setTexture", "pseudocode": "// \n// cocos2d::CCParticleSystem::setTexture from 0x18006b540 to 0x18006b5a7 (103 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ceff\n// > <???> @ 0x180105a68\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bdf90\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:54 +0000\n// \n\nvoid __fastcall cocos2d::CCParticleSystem::setTexture(cocos2d::CCParticleSystem *this, struct cocos2d::CCTexture2D *a2)\n{\n  cocos2d::CCObject *v4; // rcx\n  __int64 v5; // rax\n\n  if ( *((struct cocos2d::CCTexture2D **)this + 44) != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    v4 = *((cocos2d::CCObject **)this + 44);\n    if ( v4 )\n      cocos2d::CCObject::release(v4);\n    v5 = *((_QWORD *)this - 40);\n    *((_QWORD *)this + 44) = a2;\n    (*(void (__fastcall **)(char *))(v5 + 1600))((char *)this - 320);\n  }\n}", "assembly": "; \n; cocos2d::CCParticleSystem::setTexture from 0x18006b540 to 0x18006b5a7 (103 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ceff\n; > <???> @ 0x180105a68\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bdf90\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:54 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18006b540\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18006b545\npush    rdi                                                            ; +0xa, 0x18006b54a\nsub     rsp, 20h                                                       ; +0xb, 0x18006b54b\nmov     rbx, rdx                                                       ; +0xf, 0x18006b54f\nmov     rdi, rcx                                                       ; +0x12, 0x18006b552\ncmp     [rcx+160h], rdx                                                ; +0x15, 0x18006b555\njz      short loc_18006B597                                            ; +0x1c, 0x18006b55c\ntest    rdx, rdx                                                       ; +0x1e, 0x18006b55e\njz      short loc_18006B56B                                            ; +0x21, 0x18006b561\nmov     rcx, rdx; this                                                 ; +0x23, 0x18006b563\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x26, 0x18006b566\nmov     rcx, [rdi+160h]; this                                          ; +0x2b, 0x18006b56b\ntest    rcx, rcx                                                       ; +0x32, 0x18006b572\njz      short loc_18006B57C                                            ; +0x35, 0x18006b575\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x37, 0x18006b577\nmov     rax, [rdi-140h]                                                ; +0x3c, 0x18006b57c\nlea     rcx, [rdi-140h]                                                ; +0x43, 0x18006b583\nmov     [rdi+160h], rbx                                                ; +0x4a, 0x18006b58a\ncall    qword ptr [rax+640h]                                           ; +0x51, 0x18006b591\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x57, 0x18006b597\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x5c, 0x18006b59c\nadd     rsp, 20h                                                       ; +0x61, 0x18006b5a1\npop     rdi                                                            ; +0x65, 0x18006b5a5\nretn                                                                   ; +0x66, 0x18006b5a6", "xrefs": ["cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ceff", "<???> @ 0x180105a68", "<???> @ 0x18014cf68", "<???> @ 0x1801bdf90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}