//
// sub_100619054 from 0x100619054 to 0x100619198 (324 bytes)
//
// 1 xrefs:
// > sub_100548064 @ 0x100548128
//
// 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_100619054(__int64 a1, __int64 a2, __int64 a3, __int64 *a4)
{
_BYTE *v8; // x20
__int64 *v9; // x19
_BYTE *v10; // x21
_BYTE *v11; // x22
__int64 *v12; // x24
v8 = nullptr;
if ( a1 && a2 && a3 && a4 )
{
v9 = (__int64 *)sub_1005ABAC8();
if ( v9 )
{
v10 = sub_1005AAD34();
if ( v10 && (v11 = sub_1005AAD34()) != nullptr )
{
v8 = sub_1005AAD34();
if ( v8 )
{
if ( (unsigned int)sub_1005A9298((__int64)v11, a3, a1, a2) )
{
v12 = (__int64 *)sub_100619198(a2, a3);
if ( v12 )
{
if ( sub_1005AD2C8((__int64)v10, a4, v12, a2, v9)
&& (unsigned int)sub_1005AD0D0((__int64)v8, (__int64)v11, (__int64)v10, a2, (__int64)v9) )
{
goto LABEL_20;
}
}
else
{
v12 = nullptr;
}
}
else
{
v12 = nullptr;
}
sub_1005AACD0(v8);
v8 = nullptr;
LABEL_20:
sub_1005ABB2C((void **)v9);
sub_1005AAC5C((__int64)v10);
sub_1005AAC5C((__int64)v11);
sub_1005AACD0(v12);
return v8;
}
}
else
{
v11 = nullptr;
}
v8 = nullptr;
v12 = nullptr;
goto LABEL_20;
}
return nullptr;
}
return v8;
}