//
// sub_100574970 from 0x100574970 to 0x100574a1c (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x10082e4f8
// > ??> @ 0x10082e578
//
// 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
//
__int64 __fastcall sub_100574970(__int64 *a1)
{
__int64 v2; // x20
void *v3; // x0
char **v5; // x8
v2 = *a1;
v3 = off_10085DED0(0x48u, 1u);
*(_QWORD *)(v2 + 536) = v3;
if ( !v3 )
return 27;
*((_BYTE *)a1 + 736) = 0;
if ( *((_BYTE *)a1 + 740) && !*(_BYTE *)(v2 + 1298) )
{
if ( (char **)a1[100] == &off_10082E4F0 )
v5 = &off_10082E620;
else
v5 = &off_10082E6A0;
a1[100] = (__int64)v5;
return ((__int64 (__fastcall *)(__int64 *))v5[1])(a1);
}
else
{
++*(_QWORD *)(v2 + 35584);
return 0;
}
}