//
// sub_100163434 from 0x100163434 to 0x1001634b0 (124 bytes)
//
// 14 xrefs:
// > sub_10016113C @ 0x100161168
// > sub_100161198 @ 0x1001611c4
// > DS_Dictionary::copyFile @ 0x100161400
// > DS_Dictionary::copyFile @ 0x100161434
// > sub_10016148C @ 0x1001614c4
// > sub_10016148C @ 0x1001614f8
// > sub_100163314 @ 0x100163348
// > sub_100163370 @ 0x10016339c
// > sub_1001633CC @ 0x100163400
// > sub_100163430 @ 0x100163430
// > sub_100163544 @ 0x10016354c
// > sub_100164068 @ 0x10016409c
// > sub_1001640C4 @ 0x1001640f0
// > sub_100164120 @ 0x100164154
//
// 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_100163434(__int64 a1)
{
void *v2; // x0
void *v3; // x0
*(_QWORD *)a1 = off_10079BC00;
sub_1001634C0();
if ( *(_BYTE *)(a1 + 400) == 1 )
{
v2 = *(void **)(a1 + 64);
if ( v2 )
operator delete[](v2);
}
if ( *(_BYTE *)(a1 + 401) == 1 )
{
v3 = *(void **)(a1 + 104);
if ( v3 )
operator delete[](v3);
}
*(_QWORD *)a1 = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale((std::locale *)(a1 + 8));
return a1;
}