{"type": "func", "start": 6442897056, "end": 6442897183, "name": "cocos2d::CCParticleSystemQuad::setTextureWithRect", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x18006cea0 to 0x18006cf1f (127 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ce23\n// > cocos2d::CCParticleSystemQuad::setTexture @ 0x18006ce90\n// > <???> @ 0x180143480\n// > <???> @ 0x180143490\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be098\n// > <???> @ 0x1801be0a4\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:55 +0000\n// \n\nvoid __fastcall cocos2d::CCParticleSystemQuad::setTextureWithRect(\n        cocos2d::CCParticleSystemQuad *this,\n        struct cocos2d::CCTexture2D *a2,\n        const struct cocos2d::CCRect *a3)\n{\n  __int64 v5; // rcx\n  unsigned int (__fastcall *v7)(struct cocos2d::CCTexture2D *); // rdi\n  int v8; // ebx\n\n  v5 = *((_QWORD *)this + 84);\n  if ( !v5\n    || (v7 = *(unsigned int (__fastcall **)(struct cocos2d::CCTexture2D *))(*(_QWORD *)a2 + 96LL),\n        v8 = (*(__int64 (**)(void))(*(_QWORD *)v5 + 96LL))(),\n        v7(a2) != v8) )\n  {\n    cocos2d::CCParticleSystem::setTexture((cocos2d::CCParticleSystemQuad *)((char *)this + 320), a2);\n  }\n  cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(this, a3);\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x18006cea0 to 0x18006cf1f (127 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ce23\n; > cocos2d::CCParticleSystemQuad::setTexture @ 0x18006ce90\n; > <???> @ 0x180143480\n; > <???> @ 0x180143490\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be098\n; > <???> @ 0x1801be0a4\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:55 +0000\n; \nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x18006cea0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x18006cea5\npush    r14                                                            ; +0xa, 0x18006ceaa\nsub     rsp, 20h                                                       ; +0xc, 0x18006ceac\nmov     rsi, rcx                                                       ; +0x10, 0x18006ceb0\nmov     rbp, r8                                                        ; +0x13, 0x18006ceb3\nmov     rcx, [rcx+2A0h]                                                ; +0x16, 0x18006ceb6\nmov     r14, rdx                                                       ; +0x1d, 0x18006cebd\ntest    rcx, rcx                                                       ; +0x20, 0x18006cec0\njz      short loc_18006CEF5                                            ; +0x23, 0x18006cec3\nmov     rax, [rcx]                                                     ; +0x25, 0x18006cec5\nmov     [rsp+28h+arg_0], rbx                                           ; +0x28, 0x18006cec8\nmov     [rsp+28h+arg_8], rdi                                           ; +0x2d, 0x18006cecd\nmov     r9, [rax+60h]                                                  ; +0x32, 0x18006ced2\nmov     rax, [rdx]                                                     ; +0x36, 0x18006ced6\nmov     rdi, [rax+60h]                                                 ; +0x39, 0x18006ced9\ncall    r9                                                             ; +0x3d, 0x18006cedd\nmov     rcx, r14                                                       ; +0x40, 0x18006cee0\nmov     ebx, eax                                                       ; +0x43, 0x18006cee3\ncall    rdi                                                            ; +0x45, 0x18006cee5\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x47, 0x18006cee7\ncmp     eax, ebx                                                       ; +0x4c, 0x18006ceec\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18006ceee\njz      short loc_18006CF04                                            ; +0x53, 0x18006cef3\nlea     rcx, [rsi+140h]; this                                          ; +0x55, 0x18006cef5\nmov     rdx, r14; struct cocos2d::CCTexture2D *                        ; +0x5c, 0x18006cefc\ncall    ?setTexture@CCParticleSystem@cocos2d@@UEAAXPEAVCCTexture2D@2@@Z; cocos2d::CCParticleSystem::setTexture(cocos2d::CCTexture2D *) ; +0x5f, 0x18006ceff\nmov     rdx, rbp; struct cocos2d::CCRect *                             ; +0x64, 0x18006cf04\nmov     rcx, rsi; this                                                 ; +0x67, 0x18006cf07\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x6a, 0x18006cf0a\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x6f, 0x18006cf0f\nadd     rsp, 20h                                                       ; +0x74, 0x18006cf14\npop     r14                                                            ; +0x78, 0x18006cf18\njmp     ?initTexCoordsWithRect@CCParticleSystemQuad@cocos2d@@QEAAXAEBVCCRect@2@@Z; cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(cocos2d::CCRect const &) ; +0x7a, 0x18006cf1a", "xrefs": ["cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ce23", "cocos2d::CCParticleSystemQuad::setTexture @ 0x18006ce90", "<???> @ 0x180143480", "<???> @ 0x180143490", "<???> @ 0x18014cf68", "<???> @ 0x1801be098", "<???> @ 0x1801be0a4"], "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"}