//
// sub_4DC3D8 from 0x4dc3d8 to 0x4dc44e (118 bytes)
//
// 2 xrefs:
// > std::__ndk1::basic_stringstream,std::__ndk1::allocator>::~basic_stringstream @ 0x4dc460
// > std::__ndk1::basic_stringstream,std::__ndk1::allocator>::~basic_stringstream @ 0x4ddc76
//
// 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 11:50:57 +0000
//
_DWORD *__fastcall sub_4DC3D8(_DWORD *a1, int a2, int a3)
{
_UNKNOWN **v6; // r3
int v7; // r3
_DWORD *v8; // r3
_UNKNOWN **v9; // r2
_UNKNOWN **v10; // r3
_UNKNOWN **v11; // r1
if ( a2 )
v6 = &off_C993D4;
else
v6 = *(_UNKNOWN ***)a3;
*a1 = v6;
if ( a2 )
v7 = 64;
else
v7 = (int)*(v6 - 3);
v8 = (_DWORD *)((char *)a1 + v7);
if ( a2 )
v9 = &off_C993FC;
else
v9 = *(_UNKNOWN ***)(a3 + 32);
*v8 = v9;
if ( a2 )
v10 = &off_C993E8;
else
v10 = *(_UNKNOWN ***)(a3 + 36);
a1[2] = v10;
std::stringbuf::~stringbuf(a1 + 3);
if ( a2 )
v11 = &off_C993A4;
else
v11 = (_UNKNOWN **)(a3 + 4);
std::iostream::~iostream(a1, (int)v11);
if ( (a2 & 2) != 0 )
std::ios::~ios((std::ios_base *)(a1 + 16));
if ( (a2 & 1) != 0 )
operator delete(a1);
return a1;
}