{"type": "func", "start": 6442888416, "end": 6442888525, "name": "cocos2d::CCParticleSystemQuad::setTextureWithRect", "pseudocode": "// \n// cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x18006ace0 to 0x18006ad4d (109 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ac63\n// > cocos2d::CCParticleSystemQuad::setTexture @ 0x18006acd0\n// > <???> @ 0x18013a0d0\n// > <???> @ 0x18013a0e0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b3d50\n// > <???> @ 0x1801b3d5c\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::CCParticleSystemQuad::setTextureWithRect(\n        cocos2d::CCParticleSystemQuad *this,\n        struct cocos2d::CCTexture2D *a2,\n        const struct cocos2d::CCRect *a3)\n{\n  cocos2d::CCTexture2D *m_pTexture; // rcx\n  int v7; // ebx\n\n  m_pTexture = this->m_pTexture;\n  if ( !m_pTexture\n    || (v7 = ((__int64 (*)(void))m_pTexture->getName)(),\n        ((unsigned int (__fastcall *)(struct cocos2d::CCTexture2D *))a2->getName)(a2) != v7) )\n  {\n    cocos2d::CCParticleSystem::setTexture((cocos2d::CCParticleSystem *)&this->cocos2d::CCTextureProtocol, a2);\n  }\n  cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(this, a3);\n}", "assembly": "; \n; cocos2d::CCParticleSystemQuad::setTextureWithRect from 0x18006ace0 to 0x18006ad4d (109 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ac63\n; > cocos2d::CCParticleSystemQuad::setTexture @ 0x18006acd0\n; > <???> @ 0x18013a0d0\n; > <???> @ 0x18013a0e0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b3d50\n; > <???> @ 0x1801b3d5c\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_8], rbp                                               ; +0x0, 0x18006ace0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18006ace5\npush    rdi                                                            ; +0xa, 0x18006acea\nsub     rsp, 20h                                                       ; +0xb, 0x18006aceb\nmov     rdi, rcx                                                       ; +0xf, 0x18006acef\nmov     rbp, r8                                                        ; +0x12, 0x18006acf2\nmov     rcx, [rcx+2A0h]                                                ; +0x15, 0x18006acf5\nmov     rsi, rdx                                                       ; +0x1c, 0x18006acfc\ntest    rcx, rcx                                                       ; +0x1f, 0x18006acff\njz      short loc_18006AD24                                            ; +0x22, 0x18006ad02\nmov     rax, [rcx]                                                     ; +0x24, 0x18006ad04\nmov     [rsp+28h+arg_0], rbx                                           ; +0x27, 0x18006ad07\ncall    qword ptr [rax+60h]                                            ; +0x2c, 0x18006ad0c\nmov     r9, [rsi]                                                      ; +0x2f, 0x18006ad0f\nmov     rcx, rsi                                                       ; +0x32, 0x18006ad12\nmov     ebx, eax                                                       ; +0x35, 0x18006ad15\ncall    qword ptr [r9+60h]                                             ; +0x37, 0x18006ad17\ncmp     eax, ebx                                                       ; +0x3b, 0x18006ad1b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3d, 0x18006ad1d\njz      short loc_18006AD33                                            ; +0x42, 0x18006ad22\nlea     rcx, [rdi+140h]; this                                          ; +0x44, 0x18006ad24\nmov     rdx, rsi; struct cocos2d::CCTexture2D *                        ; +0x4b, 0x18006ad2b\ncall    ?setTexture@CCParticleSystem@cocos2d@@UEAAXPEAVCCTexture2D@2@@Z; cocos2d::CCParticleSystem::setTexture(cocos2d::CCTexture2D *) ; +0x4e, 0x18006ad2e\nmov     rdx, rbp; struct cocos2d::CCRect *                             ; +0x53, 0x18006ad33\nmov     rcx, rdi; this                                                 ; +0x56, 0x18006ad36\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x59, 0x18006ad39\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5e, 0x18006ad3e\nadd     rsp, 20h                                                       ; +0x63, 0x18006ad43\npop     rdi                                                            ; +0x67, 0x18006ad47\njmp     ?initTexCoordsWithRect@CCParticleSystemQuad@cocos2d@@QEAAXAEBVCCRect@2@@Z; cocos2d::CCParticleSystemQuad::initTexCoordsWithRect(cocos2d::CCRect const &) ; +0x68, 0x18006ad48", "xrefs": ["cocos2d::CCParticleSystemQuad::setDisplayFrame @ 0x18006ac63", "cocos2d::CCParticleSystemQuad::setTexture @ 0x18006acd0", "<???> @ 0x18013a0d0", "<???> @ 0x18013a0e0", "<???> @ 0x1801438a8", "<???> @ 0x1801b3d50", "<???> @ 0x1801b3d5c"], "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"}