//
// sub_140481710 from 0x140481710 to 0x1404817dc (204 bytes)
//
// 3 xrefs:
// > sub_140489A28 @ 0x140489a2f
// > ??> @ 0x140609da8
// > ??> @ 0x1406dbaf8
//
// 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
//
void *__fastcall sub_140481710(void *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*(_QWORD *)Block = &ShaderLayer::`vftable';
*((_QWORD *)Block + 40) = &ShaderLayer::`vftable';
*((_QWORD *)Block + 41) = &ShaderLayer::`vftable';
*((_QWORD *)Block + 42) = &ShaderLayer::`vftable';
*((_QWORD *)Block + 43) = &ShaderLayer::`vftable';
*((_QWORD *)Block + 44) = &ShaderLayer::`vftable';
v4 = *((cocos2d::CCObject **)Block + 142);
if ( v4 )
cocos2d::CCObject::release(v4);
sub_14005D100((__int64)Block + 496);
sub_14005D350((void **)Block + 60);
sub_14005D100((__int64)Block + 432);
sub_14024AD20((void **)Block + 52);
cocos2d::CCLayer::~CCLayer((cocos2d::CCLayer *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}