//
// cocos2d::VolatileTexture::VolatileTexture from 0xb3452c to 0xb3464c (288 bytes)
//
// 3 xrefs:
// > cocos2d::VolatileTexture::findVolotileTexture @ 0xb348b8
// > ??> @ 0x3af38
// > ??> @ 0x9d230
//
// 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
//
// Alternative name is '_ZN7cocos2d15VolatileTextureC1EPNS_11CCTexture2DE'
__int64 __fastcall cocos2d::VolatileTexture::VolatileTexture(cocos2d::VolatileTexture *this, cocos2d::CCTexture2D *a2)
{
cocos2d::CCSize v3; // x2
_QWORD *v4; // x0
cocos2d::CCSize v6[2]; // [xsp+40h] [xbp+40h] BYREF
this->uiImage = nullptr;
v3 = (cocos2d::CCSize)_stack_chk_guard;
this->texture = a2;
this->m_eCashedImageType = kInvalid;
this->m_pTextureData = nullptr;
v6[1] = v3;
cocos2d::CCSize::CCSize(&this->m_TextureSize);
this->m_PixelFormat = kCCTexture2DPixelFormat_RGBA8888;
sub_D153B8((_DWORD)this + 48, &byte_F288A0);
this->m_FmtImage = kFmtPng;
cocos2d::CCSize::CCSize(&this->m_size);
this->m_alignment = kCCTextAlignmentCenter;
this->m_vAlignment = kCCVerticalTextAlignmentCenter;
sub_D153B8((_DWORD)this + 96, &byte_F288A0);
sub_D153B8((_DWORD)this + 104, &byte_F288A0);
this->m_fFontSize = 0.0;
cocos2d::CCSize::CCSize(v6, 0.0, 0.0);
cocos2d::CCSize::operator=(&this->m_size, (float *)v6);
this->m_texParams.minFilter = 9729;
this->m_texParams.magFilter = 9729;
this->m_texParams.wrapS = 33071;
this->m_texParams.wrapT = 33071;
v4 = (_QWORD *)operator new(0x18u);
*v4 = 0;
v4[1] = 0;
v4[2] = this;
sub_CD8D88();
return _stack_chk_guard;
}