//
// sub_B70278 from 0xb70278 to 0xb702d4 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x111c280
//
// 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_B70278(__int64 a1)
{
__int64 v1; // x19
int v2; // w0
v1 = *(_QWORD *)(*(_QWORD *)a1 + 536LL);
if ( v1 )
{
off_1231008(*(void **)(v1 + 8));
*(_QWORD *)(v1 + 8) = 0;
v2 = *(_DWORD *)(v1 + 16);
*(_QWORD *)v1 = 0;
if ( v2 != -1 )
close(v2);
*(_DWORD *)(v1 + 16) = -1;
}
return 0;
}