//
// std::__ndk1::basic_istream>::basic_istream from 0xf44a18 to 0xf44a9c (132 bytes)
//
// 1 xrefs:
// > ??> @ 0xec560
//
// 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:09 +0000
//
__int64 __fastcall std::istream::basic_istream(__int64 *a1, __int64 *a2, __int64 a3)
{
__int64 v3; // x8
__int64 v4; // x8
char *v5; // x20
__int64 result; // x0
v3 = *a2;
*a1 = *a2;
*(__int64 *)((char *)a1 + *(_QWORD *)(v3 - 24)) = a2[1];
v4 = *a1;
a1[1] = 0;
v5 = (char *)a1 + *(_QWORD *)(v4 - 24);
*((_QWORD *)v5 + 5) = a3;
*((_DWORD *)v5 + 8) = a3 == 0;
*((_DWORD *)v5 + 9) = 0;
*((_DWORD *)v5 + 2) = 4098;
*((_QWORD *)v5 + 2) = 6;
*((_QWORD *)v5 + 3) = 0;
memset(v5 + 56, 0, 0x50u);
result = std::locale::locale((std::locale *)(v5 + 48));
*((_QWORD *)v5 + 17) = 0;
*((_DWORD *)v5 + 36) = -1;
return result;
}