//
// sub_100618F5C from 0x100618f5c to 0x100619054 (248 bytes)
//
// 1 xrefs:
// > sub_100548180 @ 0x1005481d8
//
// 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
//
_BYTE *__fastcall sub_100618F5C(__int64 *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
_BYTE *v10; // x19
__int64 *v11; // x20
__int64 *v12; // x21
v10 = nullptr;
if ( a5 && a4 && a2 && a1 && a3 )
{
v11 = (__int64 *)sub_1005ABAC8();
if ( v11 && (v12 = (__int64 *)sub_1005AAD34()) != nullptr )
{
v10 = sub_1005AAD34();
if ( v10 )
{
if ( (unsigned int)sub_1005A9298((__int64)v12, a2, a3, a5) && sub_1005AD2C8((__int64)v12, a1, v12, a5, v11) )
sub_1005A9298((__int64)v10, (__int64)v12, a4, a5);
}
else
{
v10 = nullptr;
}
}
else
{
v12 = nullptr;
v10 = nullptr;
}
sub_1005ABB2C((void **)v11);
sub_1005AAC5C((__int64)v12);
}
return v10;
}