//
// sub_14040AD70 from 0x14040ad70 to 0x14040ae3a (202 bytes)
//
// 3 xrefs:
// > sub_140412A2C @ 0x140412a33
// > ??> @ 0x1405dbe58
// > ??> @ 0x1406d8b10
//
// 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_14040AD70(_QWORD *Block, char a2)
{
*Block = &SetupAreaRotateTriggerPopup::`vftable';
Block[40] = &SetupAreaRotateTriggerPopup::`vftable';
Block[41] = &SetupAreaRotateTriggerPopup::`vftable';
Block[42] = &SetupAreaRotateTriggerPopup::`vftable';
Block[43] = &SetupAreaRotateTriggerPopup::`vftable';
Block[44] = &SetupAreaRotateTriggerPopup::`vftable';
Block[51] = &SetupAreaRotateTriggerPopup::`vftable';
Block[54] = &SetupAreaRotateTriggerPopup::`vftable';
Block[79] = &SetupAreaRotateTriggerPopup::`vftable';
Block[80] = &SetupAreaRotateTriggerPopup::`vftable';
Block[81] = &SetupAreaRotateTriggerPopup::`vftable';
SetupAreaMoveTriggerPopup::dSetupAreaMoveTriggerPopup();
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}