//
// std::__ndk1::basic_ios>::copyfmt from 0xf42aa8 to 0xf42b6c (196 bytes)
//
// 1 xrefs:
// > ??> @ 0xf99e8
//
// 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:08 +0000
//
std::ios_base *__fastcall std::ios::copyfmt(std::ios_base *this, std::ios_base *a2)
{
__int64 v4; // x8
__int64 v5; // x21
__int64 v6; // x8
__int64 v7; // x21
int v8; // w1
if ( this != a2 )
{
v4 = *((_QWORD *)this + 9);
if ( v4 )
{
v5 = v4 - 1;
do
{
(*(void (__fastcall **)(_QWORD, std::ios_base *, _QWORD))(*((_QWORD *)this + 7) + 8 * v5))(
0,
this,
*(unsigned int *)(*((_QWORD *)this + 8) + 4 * v5));
--v5;
}
while ( v5 != -1 );
}
std::ios_base::copyfmt(this, a2);
*((_QWORD *)this + 17) = *((_QWORD *)a2 + 17);
v6 = *((_QWORD *)this + 9);
*((_DWORD *)this + 36) = *((_DWORD *)a2 + 36);
if ( v6 )
{
v7 = v6 - 1;
do
{
(*(void (__fastcall **)(__int64, std::ios_base *, _QWORD))(*((_QWORD *)this + 7) + 8 * v7))(
2,
this,
*(unsigned int *)(*((_QWORD *)this + 8) + 4 * v7));
--v7;
}
while ( v7 != -1 );
}
v8 = *((_DWORD *)this + 8);
*((_DWORD *)this + 9) = *((_DWORD *)a2 + 9);
std::ios_base::clear((__int64)this, v8);
}
return this;
}