//
// sub_1800A9E30 from 0x1800a9e30 to 0x1800a9e8b (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x180105168
// > ??> @ 0x1801b7f2c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall sub_1800A9E30(cocos2d::CCObject *this, char a2)
{
cocos2d *v4; // rcx
this->__vftable = (cocos2d::CCObject_vtbl *)&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;
}