//
// sub_BA744C from 0xba744c to 0xba74d0 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x111caa8
// > ??> @ 0x111cb58
//
// 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_BA744C(__int64 a1, unsigned int a2)
{
__int64 v2; // x20
v2 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( !v2 )
return 0;
if ( a2 )
sub_B99314(a1, 1);
off_1231008(*(void **)(v2 + 8));
*(_QWORD *)(v2 + 8) = 0;
off_1231008(*(void **)(v2 + 16));
*(_QWORD *)(v2 + 16) = 0;
*(_DWORD *)v2 = 0;
return a2;
}