//
// std::length_error::~length_error from 0xf8bd34 to 0xf8bd90 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x972e8
// > ??> @ 0x1536d30
//
// 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:56 +0000
//
void __fastcall std::length_error::~length_error(std::length_error *this)
{
__int64 v2; // x8
unsigned int *v3; // x9
unsigned int v4; // w10
unsigned int v5; // w10
v2 = *((_QWORD *)this + 1);
*(_QWORD *)this = off_1536C30;
v3 = (unsigned int *)(v2 - 8);
do
{
v4 = __ldaxr(v3);
v5 = v4 - 1;
}
while ( __stlxr(v5, v3) );
if ( (v5 & 0x80000000) != 0 )
operator delete((void *)(v2 - 24));
std::bad_exception::~bad_exception(this);
operator delete(this);
}