//
// std::__ndk1::basic_ostream>::seekp from 0x95a7b0 to 0x95a864 (180 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::seekp(_DWORD *a1, int a2, int a3, int a4, int a5, int a6)
{
int v9; // r1
int v10; // r0
int v11; // r2
_DWORD *v12; // r0
_BYTE v14[8]; // [sp+10h] [bp-2Ch] BYREF
int v15; // [sp+18h] [bp-24h]
int v16; // [sp+1Ch] [bp-20h]
char v17[4]; // [sp+24h] [bp-18h] BYREF
_DWORD *v18; // [sp+28h] [bp-14h]
v17[0] = 0;
v18 = a1;
v9 = *a1;
v10 = *(_DWORD *)(*a1 - 12);
v11 = *(_DWORD *)((char *)v18 + v10 + 16);
if ( !v11 )
{
v12 = *(_DWORD **)((char *)v18 + v10 + 72);
if ( v12 )
{
std::ostream::flush(v12);
v9 = *a1;
}
v17[0] = 1;
v10 = *(_DWORD *)(v9 - 12);
v11 = *(_DWORD *)((char *)a1 + v10 + 16);
}
if ( (v11 & 5) == 0 )
{
(*(void (__fastcall **)(_BYTE *, _DWORD, int, int, int, int, int))(**(_DWORD **)((char *)a1 + v10 + 24) + 20))(
v14,
*(_DWORD *)((char *)a1 + v10 + 24),
a3,
a4,
a5,
a6,
16);
if ( (v15 & v16) == 0xFFFFFFFF )
std::ios_base::clear(
(std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)),
*(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | 4);
}
std::ostream::sentry::~sentry((int)v17);
return a1;
}