//
// sub_F889A0 from 0xf889a0 to 0xf88a08 (104 bytes)
//
// 1 xrefs:
// > __cxa_rethrow_primary_exception @ 0xf88910
//
// 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:54 +0000
//
__int64 __fastcall sub_F889A0(int a1, __int64 a2)
{
__int64 *v2; // x19
__int64 v3; // x0
unsigned __int64 *v4; // x20
unsigned __int64 v5; // x8
unsigned __int64 v6; // x8
void (*v7)(void); // x8
v2 = (__int64 *)(a2 - 88);
if ( a1 != 1 )
sub_F88D90(*(_QWORD *)(a2 - 56));
v3 = *v2;
if ( *v2 )
{
v4 = (unsigned __int64 *)(v3 - 120);
do
{
v5 = __ldaxr(v4);
v6 = v5 - 1;
}
while ( __stlxr(v6, v4) );
if ( !v6 )
{
v7 = *(void (**)(void))(v3 - 104);
if ( v7 )
v7();
_cxa_free_dependent_exception_0(v4);
}
}
return _cxa_free_dependent_exception_0(v2);
}