//
// std::__ndk1::basic_streambuf>::sputbackc from 0xf4410c to 0xf44140 (52 bytes)
//
// 1 xrefs:
// > ??> @ 0x42d18
//
// 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::sputbackc(_QWORD *a1, unsigned __int8 a2)
{
__int64 v2; // x8
unsigned __int8 *v3; // x8
int v4; // t1
v2 = a1[3];
if ( a1[2] == v2 )
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 88LL))(a1, a2);
v4 = *(unsigned __int8 *)(v2 - 1);
v3 = (unsigned __int8 *)(v2 - 1);
if ( v4 != a2 )
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1 + 88LL))(a1, a2);
a1[3] = v3;
return *v3;
}