//
// sub_180005E80 from 0x180005e80 to 0x180005ec2 (66 bytes)
//
// 6 xrefs:
// > ??> @ 0x1800ec238
// > ??> @ 0x1800ec268
// > ??> @ 0x1800ec280
// > ??> @ 0x1800ecb88
// > ??> @ 0x1800ecbb0
// > ??> @ 0x1801b787c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:18 +0000
//
char *__fastcall sub_180005E80(char *Block, char a2)
{
*(_QWORD *)Block = &std::exception::`vftable';
_std_exception_destroy(Block + 8);
if ( (a2 & 1) != 0 )
j_j_free_0(Block);
return Block;
}