//
// std::__ndk1::basic_streambuf>::sputbackc from 0x955748 to 0x955764 (28 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::sputbackc(int a1, int a2)
{
__int64 v2; // kr00_8
unsigned __int8 *v3; // r2
v2 = *(_QWORD *)(a1 + 8);
if ( (_DWORD)v2 == HIDWORD(v2) )
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 44))(a1);
v3 = (unsigned __int8 *)(HIDWORD(v2) - 1);
if ( *(unsigned __int8 *)(HIDWORD(v2) - 1) != a2 )
return (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 44))(a1);
*(_DWORD *)(a1 + 12) = v3;
return *v3;
}