//
// sub_140456820 from 0x140456820 to 0x1404568cf (175 bytes)
//
// 3 xrefs:
// > sub_14045C6C4 @ 0x14045c6cb
// > ??> @ 0x1405f5c00
// > ??> @ 0x1406da994
//
// 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_140456820(_QWORD *Block, char a2)
{
*Block = &BrowseSmartKeyLayer::`vftable';
Block[40] = &BrowseSmartKeyLayer::`vftable';
Block[41] = &BrowseSmartKeyLayer::`vftable';
Block[42] = &BrowseSmartKeyLayer::`vftable';
Block[43] = &BrowseSmartKeyLayer::`vftable';
Block[44] = &BrowseSmartKeyLayer::`vftable';
Block[51] = &BrowseSmartKeyLayer::`vftable';
Block[54] = &BrowseSmartKeyLayer::`vftable';
sub_14003A830((__int64)(Block + 85));
BrowseSmartTemplateLayer::dBrowseSmartTemplateLayer(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}