//
// std::__ndk1::basic_ostream>::sentry::~sentry from 0x811f54 to 0x812004 (176 bytes)
//
// 43 xrefs:
// > std::__ndk1::basic_ostream>::flush @ 0x8350e0
// > std::__ndk1::basic_ostream>::flush @ 0x835154
// > std::__ndk1::basic_ostream>::operator<< @ 0x8b7a18
// > std::__ndk1::basic_ostream>::operator<< @ 0x8b7ae4
// > std::__ndk1::__put_character_sequence> @ 0x8b7dd4
// > std::__ndk1::__put_character_sequence> @ 0x8b7eac
// > std::__ndk1::basic_ostream>::operator<< @ 0xdb8274
// > pugi::xml_writer_stream::write @ 0xddb930
// > fmt::print @ 0xde1524
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a294
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a2f0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a488
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a4e8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a65c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a6b8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a82c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a888
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4a9fc
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4aa58
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4abcc
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4ac28
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4ad9c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4adf8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4af6c
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4afc8
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b140
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b1a0
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b314
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b370
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b4e4
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b540
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b718
// > std::__ndk1::basic_ostream>::operator<< @ 0xf4b764
// > std::__ndk1::basic_ostream>::put @ 0xf4b864
// > std::__ndk1::basic_ostream>::put @ 0xf4b8a4
// > std::__ndk1::basic_ostream>::write @ 0xf4b994
// > std::__ndk1::basic_ostream>::write @ 0xf4b9d8
// > std::__ndk1::basic_ostream>::seekp @ 0xf4bb30
// > std::__ndk1::basic_ostream>::seekp @ 0xf4bb70
// > std::__ndk1::basic_ostream>::seekp @ 0xf4bc38
// > std::__ndk1::basic_ostream>::seekp @ 0xf4bc78
// > ??> @ 0x8e2d0
// > ??> @ 0xb6cc8
//
// 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 12:54:50 +0000
//
// Alternative name is '_ZNSt6__ndk113basic_ostreamIcNS_11char_traitsIcEEE6sentryD2Ev'
__int64 __fastcall std::ostream::sentry::~sentry(__int64 result)
{
__int64 v1; // x1
__int64 v2; // x19
__int64 v3; // x0
std::ios_base *v4; // x0
v1 = *(_QWORD *)(result + 8) + *(_QWORD *)(**(_QWORD **)(result + 8) - 24LL);
if ( *(_QWORD *)(v1 + 40) )
{
if ( !*(_DWORD *)(v1 + 32) && (*(_DWORD *)(v1 + 8) & 0x2000) != 0 )
{
v2 = result;
result = (unsigned __int8)std::uncaught_exception();
if ( !(_BYTE)result )
{
v3 = *(_QWORD *)(*(_QWORD *)(v2 + 8) + *(_QWORD *)(**(_QWORD **)(v2 + 8) - 24LL) + 40LL);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 48LL))(v3);
if ( (_DWORD)result == -1 )
{
v4 = (std::ios_base *)(*(_QWORD *)(v2 + 8) + *(_QWORD *)(**(_QWORD **)(v2 + 8) - 24LL));
return std::ios_base::clear(v4, *((_DWORD *)v4 + 8) | 1u);
}
}
}
}
return result;
}