//
// std::__ndk1::basic_streambuf>::sungetc from 0xf44140 to 0xf4416c (44 bytes)
//
// 1 xrefs:
// > ??> @ 0x959b0
//
// 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::sungetc(_QWORD *a1)
{
__int64 v1; // x8
v1 = a1[3];
if ( a1[2] == v1 )
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 88LL))(a1, 0xFFFFFFFFLL);
a1[3] = v1 - 1;
return *(unsigned __int8 *)(v1 - 1);
}