//
// sub_1001634C0 from 0x1001634c0 to 0x100163530 (112 bytes)
//
// 1 xrefs:
// > sub_100163434 @ 0x100163454
//
// 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
//
FILE *__fastcall sub_1001634C0(FILE *a1)
{
FILE *base; // x20
int v3; // w21
base = (FILE *)a1->_lb._base;
if ( base )
{
v3 = (*((__int64 (__fastcall **)(FILE *))a1->_p + 6))(a1);
if ( fclose(base) | v3 )
base = nullptr;
else
base = a1;
a1->_lb._base = nullptr;
(*((void (__fastcall **)(FILE *, _QWORD, _QWORD))a1->_p + 3))(a1, 0, 0);
}
return base;
}