{"type": "func", "start": 6443041648, "end": 6443041717, "name": "cocos2d::CCSpriteFrame::setTexture", "pseudocode": "// \n// cocos2d::CCSpriteFrame::setTexture from 0x180090370 to 0x1800903b5 (69 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b62b8\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::CCSpriteFrame::setTexture(cocos2d::CCSpriteFrame *this, struct cocos2d::CCTexture2D *a2)\n{\n  struct cocos2d::CCTexture2D *m_pobTexture; // rcx\n\n  m_pobTexture = this->m_pobTexture;\n  if ( m_pobTexture != a2 )\n  {\n    if ( m_pobTexture )\n      cocos2d::CCObject::release(m_pobTexture);\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    this->m_pobTexture = a2;\n  }\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::setTexture from 0x180090370 to 0x1800903b5 (69 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b62b8\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, 0x180090370\npush    rdi                                                            ; +0x5, 0x180090375\nsub     rsp, 20h                                                       ; +0x6, 0x180090376\nmov     rdi, rcx                                                       ; +0xa, 0x18009037a\nmov     rbx, rdx                                                       ; +0xd, 0x18009037d\nmov     rcx, [rcx+80h]; this                                           ; +0x10, 0x180090380\ncmp     rcx, rdx                                                       ; +0x17, 0x180090387\njz      short loc_1800903AA                                            ; +0x1a, 0x18009038a\ntest    rcx, rcx                                                       ; +0x1c, 0x18009038c\njz      short loc_180090396                                            ; +0x1f, 0x18009038f\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x21, 0x180090391\ntest    rbx, rbx                                                       ; +0x26, 0x180090396\njz      short loc_1800903A3                                            ; +0x29, 0x180090399\nmov     rcx, rbx; this                                                 ; +0x2b, 0x18009039b\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2e, 0x18009039e\nmov     [rdi+80h], rbx                                                 ; +0x33, 0x1800903a3\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3a, 0x1800903aa\nadd     rsp, 20h                                                       ; +0x3f, 0x1800903af\npop     rdi                                                            ; +0x43, 0x1800903b3\nretn                                                                   ; +0x44, 0x1800903b4", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b62b8"], "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"}