//
// std::__ndk1::basic_streambuf>::snextc from 0x9556da to 0x95571a (64 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:27 +0000
//
int __fastcall std::streambuf::snextc(unsigned __int8 **a1)
{
unsigned __int8 *v2; // r0
__int64 v3; // kr00_8
unsigned __int8 *v4; // r1
v3 = *(_QWORD *)(a1 + 3);
v2 = a1[4];
if ( (unsigned __int8 *)v3 == v2 )
{
if ( (*((int (__fastcall **)(unsigned __int8 **))*a1 + 10))(a1) == -1 )
return -1;
v2 = a1[4];
v4 = a1[3];
}
else
{
v4 = (unsigned __int8 *)(v3 + 1);
a1[3] = (unsigned __int8 *)(v3 + 1);
}
if ( v4 == v2 )
return (*((int (__fastcall **)(unsigned __int8 **))*a1 + 9))(a1);
else
return *v4;
}