//
// sub_140076E00 from 0x140076e00 to 0x140076e7e (126 bytes)
//
// 2 xrefs:
// > ??> @ 0x140538070
// > ??> @ 0x1406c64e0
//
// 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
//
cocos2d::CCSprite *__fastcall sub_140076E00(cocos2d::CCSprite *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
Block->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCSprite_vtbl *)&TextArea::`vftable';
Block->cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&TextArea::`vftable';
Block->cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&TextArea::`vftable';
v4 = *(cocos2d::CCObject **)&Block[1].m_obContentSize.height;
if ( v4 )
cocos2d::CCObject::release(v4);
sub_14003A830((__int64)&Block[1].m_uAutoReleaseCount);
cocos2d::CCSprite::~CCSprite(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}