//
// sub_4C6DA0 from 0x4c6da0 to 0x4c6dea (74 bytes)
//
// 2 xrefs:
// > std::__ndk1::basic_ostream>::~basic_ostream @ 0x4c6df8
// > std::__ndk1::basic_ostream>::~basic_ostream @ 0x4c6e2a
//
// 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:32 +0000
//
_DWORD *__fastcall sub_4C6DA0(_DWORD *a1, int a2, int a3)
{
_UNKNOWN **v5; // r3
int v6; // r1
_DWORD *v7; // r1
_UNKNOWN **v8; // r3
if ( a2 )
v5 = &off_C99204;
else
v5 = *(_UNKNOWN ***)a3;
*a1 = v5;
if ( a2 )
v6 = 4;
else
v6 = (int)*(v5 - 3);
v7 = (_DWORD *)((char *)a1 + v6);
if ( a2 )
v8 = &off_C99218;
else
v8 = *(_UNKNOWN ***)(a3 + 4);
*v7 = v8;
if ( (a2 & 2) != 0 )
std::ios::~ios((std::ios_base *)(a1 + 1));
if ( (a2 & 1) != 0 )
operator delete(a1);
return a1;
}