//
// std::__ndk1::basic_ostream>::write from 0x95a69c to 0x95a764 (200 bytes)
//
// 0 xrefs:
//
// 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 12:05:32 +0000
//
_DWORD *__fastcall std::ostream::write(_DWORD *a1, int a2, int a3)
{
char *v6; // r0
_DWORD *v7; // r0
int v8; // r0
int v10; // [sp+0h] [bp-18h] BYREF
_DWORD *v11; // [sp+4h] [bp-14h]
LOBYTE(v10) = 0;
v11 = a1;
v6 = (char *)a1 + *(_DWORD *)(*a1 - 12);
if ( !*((_DWORD *)v6 + 4) )
{
v7 = *((_DWORD **)v6 + 18);
if ( v7 )
std::ostream::flush(v7);
LOBYTE(v10) = 1;
if ( a3 )
{
v8 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24);
if ( (*(int (__fastcall **)(int, int, int, _DWORD, int, _DWORD *))(*(_DWORD *)v8 + 48))(
v8,
a2,
a3,
*(_DWORD *)(*(_DWORD *)v8 + 48),
v10,
v11) != a3 )
std::ios_base::clear(
(std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)),
*(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | 1);
}
}
std::ostream::sentry::~sentry((int)&v10);
return a1;
}