//
// sub_100570050 from 0x100570050 to 0x1005700d0 (128 bytes)
//
// 5 xrefs:
// > sub_100578B84 @ 0x100578bc0
// > sub_10057E9A4 @ 0x10057ed78
// > sub_10057E9A4 @ 0x10057ee18
// > sub_10057E9A4 @ 0x10057eefc
// > sub_10057E9A4 @ 0x10057efa4
//
// 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
//
_QWORD *__fastcall sub_100570050(__int64 a1)
{
_QWORD *v2; // x19
void *v3; // x0
v2 = off_10085DEB0(0x10u);
if ( v2 )
{
v3 = off_10085DEB0(*(unsigned int *)(a1 + 24));
v2[1] = v3;
if ( v3 )
{
*v2 = a1;
(*(void (**)(void))a1)();
}
else
{
off_10085DEB8(v2);
return nullptr;
}
}
return v2;
}