//
// std::__ndk1::basic_istream>::ignore from 0x957228 to 0x957330 (264 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:29 +0000
//
_DWORD *__fastcall std::istream::ignore(_DWORD *a1, int a2, int a3)
{
int v6; // r0
__int64 v7; // kr00_8
int v8; // r0
int v9; // r1
int v10; // r0
__int64 v11; // r2
int v12; // r0
int v13; // r1
bool v15; // [sp+4h] [bp-14h] BYREF
a1[1] = 0;
std::istream::sentry::sentry(&v15, a1, 1);
if ( v15 )
{
if ( a2 == 0x7FFFFFFF )
{
do
{
v6 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24);
v7 = *(_QWORD *)(v6 + 12);
if ( (_DWORD)v7 == HIDWORD(v7) )
{
v8 = (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 40))(v6);
if ( v8 == -1 )
goto LABEL_16;
}
else
{
*(_DWORD *)(v6 + 12) = v7 + 1;
v8 = *(unsigned __int8 *)v7;
}
++a1[1];
}
while ( v8 != a3 );
}
else
{
v9 = a1[1];
while ( v9 < a2 )
{
v10 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24);
v11 = *(_QWORD *)(v10 + 12);
if ( (_DWORD)v11 == HIDWORD(v11) )
{
v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 40))(v10);
if ( v12 == -1 )
{
LABEL_16:
v13 = 2;
goto LABEL_17;
}
v9 = a1[1];
}
else
{
*(_DWORD *)(v10 + 12) = v11 + 1;
v12 = *(unsigned __int8 *)v11;
}
a1[1] = ++v9;
if ( v12 == a3 )
break;
}
}
v13 = 0;
LABEL_17:
std::ios_base::clear(
(std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)),
v13 | *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16));
}
return a1;
}