//
// sub_1800DAAD0 from 0x1800daad0 to 0x1800dab5c (140 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016cfa8
// > ??> @ 0x1801ff2e8
//
// 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 10:54:13 +0000
//
_DWORD *__fastcall sub_1800DAAD0(_DWORD *Block, char a2)
{
sub_1800DAC90(Block + 34);
if ( !(unsigned int)sub_180087CB0((_QWORD *)Block + 12) && !(unsigned int)sub_1800DAB90(Block + 28) )
{
Block[32] = -1;
Block[33] = 0;
}
sub_1800DAB90(Block + 28);
sub_180087CB0((_QWORD *)Block + 12);
*(_QWORD *)Block = &off_18016CED8;
if ( (a2 & 1) != 0 )
j_j_free_0(Block);
return Block;
}