//
// std::__ndk1::basic_streambuf>::snextc from 0xf4403c to 0xf440b8 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0xcb098
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:13:09 +0000
//
__int64 __fastcall std::streambuf::snextc(_QWORD *a1)
{
unsigned __int8 *v2; // x8
unsigned __int8 *v3; // x9
unsigned __int8 *v4; // x9
v3 = (unsigned __int8 *)a1[3];
v2 = (unsigned __int8 *)a1[4];
if ( v3 == v2 )
{
if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a1 + 80LL))(a1) == -1 )
return 0xFFFFFFFFLL;
v4 = (unsigned __int8 *)a1[3];
v2 = (unsigned __int8 *)a1[4];
}
else
{
v4 = v3 + 1;
a1[3] = v4;
}
if ( v4 == v2 )
return (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 72LL))(a1);
else
return *v4;
}