{"type": "func", "start": 6443134608, "end": 6443134666, "name": "cocos2d::CCTextureAtlas::setTexture", "pseudocode": "// \n// cocos2d::CCTextureAtlas::setTexture from 0x1800a6e90 to 0x1800a6eca (58 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180104f00\n// > <???> @ 0x1801062e8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7dac\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\n// Alternative name is '?setLayers@CCTMXMapInfo@cocos2d@@UEAAXPEAVCCArray@2@@Z'\nvoid __fastcall cocos2d::CCTextureAtlas::setTexture(cocos2d::CCTextureAtlas *this, struct cocos2d::CCTexture2D *a2)\n{\n  cocos2d::CCTexture2D *m_pTexture; // rcx\n\n  if ( a2 )\n    cocos2d::CCObject::retain(a2);\n  m_pTexture = this->m_pTexture;\n  if ( m_pTexture )\n    cocos2d::CCObject::release(m_pTexture);\n  this->m_pTexture = a2;\n}", "assembly": "; \n; cocos2d::CCTextureAtlas::setTexture from 0x1800a6e90 to 0x1800a6eca (58 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180104f00\n; > <???> @ 0x1801062e8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7dac\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, 0x1800a6e90\npush    rdi                                                            ; +0x5, 0x1800a6e95\nsub     rsp, 20h                                                       ; +0x6, 0x1800a6e96\nmov     rbx, rdx                                                       ; +0xa, 0x1800a6e9a\nmov     rdi, rcx                                                       ; +0xd, 0x1800a6e9d\ntest    rdx, rdx                                                       ; +0x10, 0x1800a6ea0\njz      short loc_1800A6EAD                                            ; +0x13, 0x1800a6ea3\nmov     rcx, rdx; this                                                 ; +0x15, 0x1800a6ea5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x18, 0x1800a6ea8\nmov     rcx, [rdi+58h]; this                                           ; +0x1d, 0x1800a6ead\ntest    rcx, rcx                                                       ; +0x21, 0x1800a6eb1\njz      short loc_1800A6EBB                                            ; +0x24, 0x1800a6eb4\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x26, 0x1800a6eb6\nmov     [rdi+58h], rbx                                                 ; +0x2b, 0x1800a6ebb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2f, 0x1800a6ebf\nadd     rsp, 20h                                                       ; +0x34, 0x1800a6ec4\npop     rdi                                                            ; +0x38, 0x1800a6ec8\nretn                                                                   ; +0x39, 0x1800a6ec9", "xrefs": ["<???> @ 0x180104f00", "<???> @ 0x1801062e8", "<???> @ 0x1801438a8", "<???> @ 0x1801b7dac"], "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"}