//
// std::__ndk1::basic_ostream>::sentry::sentry from 0xf4a0b0 to 0xf4a0fc (76 bytes)
//
// 2 xrefs:
// > ??> @ 0x6d618
// > ??> @ 0xd32b8
//
// 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:12 +0000
//
// Alternative name is '_ZNSt6__ndk113basic_ostreamIcNS_11char_traitsIcEEE6sentryC2ERS3_'
_QWORD *__fastcall std::ostream::sentry::sentry(_QWORD *result, _QWORD *a2)
{
_BYTE *v2; // x19
char *v3; // x8
v2 = result;
*(_BYTE *)result = 0;
result[1] = a2;
v3 = (char *)a2 + *(_QWORD *)(*a2 - 24LL);
if ( !*((_DWORD *)v3 + 8) )
{
result = *((_QWORD **)v3 + 17);
if ( result )
result = std::ostream::flush(result);
*v2 = 1;
}
return result;
}