//
// sub_140456650 from 0x140456650 to 0x140456723 (211 bytes)
//
// 3 xrefs:
// > sub_14045C6D0 @ 0x14045c6d7
// > ??> @ 0x1405f5618
// > ??> @ 0x1406da970
//
// 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
//
_QWORD *__fastcall sub_140456650(_QWORD *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
*Block = &SetupSmartTemplateLayer::`vftable';
Block[40] = &SetupSmartTemplateLayer::`vftable';
Block[41] = &SetupSmartTemplateLayer::`vftable';
Block[42] = &SetupSmartTemplateLayer::`vftable';
Block[43] = &SetupSmartTemplateLayer::`vftable';
Block[44] = &SetupSmartTemplateLayer::`vftable';
Block[51] = &SetupSmartTemplateLayer::`vftable';
Block[54] = &SetupSmartTemplateLayer::`vftable';
Block[79] = &SetupSmartTemplateLayer::`vftable';
Block[80] = &SetupSmartTemplateLayer::`vftable';
v4 = (cocos2d::CCObject *)Block[81];
if ( v4 )
cocos2d::CCObject::release(v4);
FLAlertLayer::dFLAlertLayer((__int64)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}