//
// sub_140401C00 from 0x140401c00 to 0x140401cca (202 bytes)
//
// 3 xrefs:
// > sub_140402338 @ 0x14040233f
// > ??> @ 0x1405d7a08
// > ??> @ 0x1406d88ac
//
// 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_140401C00(_QWORD *Block, char a2)
{
*Block = &SetTargetIDLayer::`vftable';
Block[40] = &SetTargetIDLayer::`vftable';
Block[41] = &SetTargetIDLayer::`vftable';
Block[42] = &SetTargetIDLayer::`vftable';
Block[43] = &SetTargetIDLayer::`vftable';
Block[44] = &SetTargetIDLayer::`vftable';
Block[51] = &SetTargetIDLayer::`vftable';
Block[54] = &SetTargetIDLayer::`vftable';
Block[79] = &SetTargetIDLayer::`vftable';
Block[80] = &SetTargetIDLayer::`vftable';
Block[81] = &SetTargetIDLayer::`vftable';
SetupTriggerPopup::dSetupTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}