//
// std::__ndk1::basic_ostream>::put from 0x95a5c0 to 0x95a694 (212 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::put(_DWORD *a1, int a2)
{
int v4; // r1
char *v5; // r0
_DWORD *v6; // r0
_QWORD *v7; // r0
__int64 v8; // kr00_8
char v10[4]; // [sp+4h] [bp-14h] BYREF
_DWORD *v11; // [sp+8h] [bp-10h]
v10[0] = 0;
v11 = a1;
v4 = *a1;
v5 = (char *)a1 + *(_DWORD *)(*a1 - 12);
if ( !*((_DWORD *)v5 + 4) )
{
v6 = *((_DWORD **)v5 + 18);
if ( v6 )
{
std::ostream::flush(v6);
v4 = *a1;
}
v10[0] = 1;
v7 = *(_QWORD **)((char *)a1 + *(_DWORD *)(v4 - 12) + 24);
if ( v7 )
{
v8 = v7[3];
if ( (_DWORD)v8 != HIDWORD(v8) )
{
*((_DWORD *)v7 + 6) = v8 + 1;
*(_BYTE *)v8 = a2;
goto LABEL_9;
}
if ( (*(int (__fastcall **)(_QWORD *, int))(*(_DWORD *)v7 + 52))(v7, a2) != -1 )
goto LABEL_9;
}
std::ios_base::clear(
(std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)),
*(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | 1);
}
LABEL_9:
std::ostream::sentry::~sentry((int)v10);
return a1;
}