//
// sub_BA7560 from 0xba7560 to 0xba7614 (180 bytes)
//
// 2 xrefs:
// > ??> @ 0x111ca98
// > ??> @ 0x111cb48
//
// 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_BA7560(__int64 a1)
{
__int64 v2; // x20
void *v3; // x0
int v4; // w0
char **v6; // x1
__int64 (__fastcall *v7)(__int64); // x2
v2 = *(_QWORD *)a1;
v3 = off_1231020(0x18u, 1u);
*(_QWORD *)(v2 + 536) = v3;
if ( !v3 )
return 27;
v4 = *(unsigned __int8 *)(a1 + 958);
*(_BYTE *)(a1 + 952) = 0;
if ( !v4 || *(_BYTE *)(v2 + 1554) )
{
++*(_QWORD *)(v2 + 36032);
return 0;
}
else
{
v6 = &off_121C7C8;
if ( *(char ***)(a1 + 1024) != &off_111CA90 )
v6 = &off_121C848;
v7 = (__int64 (__fastcall *)(__int64))v6[1];
*(_QWORD *)(a1 + 1024) = v6;
return v7(a1);
}
}