//
// std::__ndk1::basic_iostream>::basic_iostream from 0xf4e0fc to 0xf4e1c4 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0xea328
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:15 +0000
//
__int64 __fastcall std::iostream::basic_iostream(__int64 *a1, __int64 *a2, __int64 a3)
{
__int64 v4; // x8
__int64 v6; // x8
char *v7; // x22
__int64 result; // x0
__int64 v9; // x8
__int64 v10; // x8
v4 = a2[1];
*a1 = v4;
*(__int64 *)((char *)a1 + *(_QWORD *)(v4 - 24)) = a2[2];
v6 = *a1;
a1[1] = 0;
v7 = (char *)a1 + *(_QWORD *)(v6 - 24);
*((_QWORD *)v7 + 5) = a3;
*((_DWORD *)v7 + 8) = a3 == 0;
*((_DWORD *)v7 + 9) = 0;
*((_DWORD *)v7 + 2) = 4098;
*((_QWORD *)v7 + 2) = 6;
*((_QWORD *)v7 + 3) = 0;
memset(v7 + 56, 0, 0x50u);
result = std::locale::locale((std::locale *)(v7 + 48));
*((_QWORD *)v7 + 17) = 0;
*((_DWORD *)v7 + 36) = -1;
v9 = a2[3];
a1[2] = v9;
*(__int64 *)((char *)a1 + *(_QWORD *)(v9 - 24) + 16) = a2[4];
v10 = *a2;
*a1 = *a2;
*(__int64 *)((char *)a1 + *(_QWORD *)(v10 - 24)) = a2[5];
a1[2] = a2[6];
return result;
}