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