//
// std::__ndk1::basic_filebuf>::basic_filebuf from 0x80c00c to 0x80c0c0 (180 bytes)
//
// 6 xrefs:
// > DS_Dictionary::saveRootSubDictToFile @ 0x80e462
// > DS_Dictionary::saveRootSubDictToFile @ 0x80e4d4
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x80e81c
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x80e888
// > DS_Dictionary::copyFile @ 0x80ea32
// > DS_Dictionary::copyFile @ 0x80ea8c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:01:31 +0000
//
// Alternative name is '_ZNSt6__ndk113basic_filebufIcNS_11char_traitsIcEEEC1Ev'
int __fastcall std::filebuf::basic_filebuf(int a1, int a2, int a3)
{
const std::locale *v4; // r8
int has_facet; // r9
_DWORD v7[3]; // [sp+0h] [bp-Ch] BYREF
v7[0] = a1;
v7[1] = a2;
v7[2] = a3;
v4 = (const std::locale *)(a1 + 4);
std::streambuf::basic_streambuf((_DWORD *)a1);
*(_DWORD *)a1 = &off_D12D98;
*(_DWORD *)(a1 + 32) = 0;
*(_DWORD *)(a1 + 36) = 0;
*(_DWORD *)(a1 + 40) = 0;
*(_DWORD *)(a1 + 52) = 0;
*(_DWORD *)(a1 + 56) = 0;
*(_DWORD *)(a1 + 60) = 0;
*(_DWORD *)(a1 + 64) = 0;
*(_DWORD *)(a1 + 68) = 0;
*(_DWORD *)(a1 + 72) = 0;
*(_DWORD *)(a1 + 76) = 0;
*(_DWORD *)(a1 + 80) = 0;
*(_DWORD *)(a1 + 84) = 0;
*(_DWORD *)(a1 + 88) = 0;
*(_DWORD *)(a1 + 92) = 0;
*(_BYTE *)(a1 + 96) = 0;
*(_BYTE *)(a1 + 97) = 0;
*(_BYTE *)(a1 + 98) = 0;
std::locale::locale((std::locale *)v7, v4);
has_facet = std::locale::has_facet((std::locale *)v7, (std::locale::id *)&std::codecvt::id);
std::locale::~locale((std::locale *)v7);
if ( has_facet )
{
std::locale::locale((std::locale *)v7, v4);
*(_DWORD *)(a1 + 68) = std::locale::use_facet(
(std::locale *)v7,
(std::locale::id *)&std::codecvt::id);
std::locale::~locale((std::locale *)v7);
*(_BYTE *)(a1 + 98) = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 68) + 28))(*(_DWORD *)(a1 + 68));
}
std::filebuf::setbuf(a1, 0, 4096);
return a1;
}