//
// sub_180113410 from 0x180113410 to 0x1801134cc (188 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016f5b0
// > ??> @ 0x180201d00
//
// 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
//
_DWORD *__fastcall sub_180113410(_DWORD *Block, char a2)
{
if ( !(unsigned int)sub_180087CB0((_QWORD *)Block + 15) && !(unsigned int)sub_1801135C0(Block + 34) )
{
Block[38] = -1;
Block[39] = 0;
}
sub_1801135C0(Block + 34);
sub_180087CB0((_QWORD *)Block + 15);
if ( !(unsigned int)sub_180087CB0((_QWORD *)Block + 10) && !(unsigned int)sub_1801134D0(Block + 24) )
{
Block[28] = -1;
Block[29] = 0;
}
sub_1801134D0(Block + 24);
sub_180087CB0((_QWORD *)Block + 10);
*(_QWORD *)Block = &off_18016CED8;
if ( (a2 & 1) != 0 )
j_j_free_0(Block);
return Block;
}