//
// sub_180113410 from 0x180113410 to 0x1801134cc (188 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016f5b0
// > ??> @ 0x180201d00
//
// 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:36 +0000
//
_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;
}