//
// sub_1800AD6B0 from 0x1800ad6b0 to 0x1800ad70b (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x18010b838
// > ??> @ 0x1801c21f0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:18 +0000
//
cocos2d::CCObject *__fastcall sub_1800AD6B0(cocos2d::CCObject *this, char a2)
{
cocos2d *v4; // rcx
*(_QWORD *)this = &cocos2d::CCTexturePVR::`vftable';
v4 = (cocos2d *)*((unsigned int *)this + 81);
if ( (_DWORD)v4 && !*((_BYTE *)this + 331) )
cocos2d::ccGLDeleteTexture(v4);
cocos2d::CCObject::~CCObject(this);
if ( (a2 & 1) != 0 )
j_j_free_0(this);
return this;
}