//
// __cxa_free_dependent_exception from 0x779828 to 0x7798b0 (136 bytes)
//
// 1 xrefs:
// > sub_779AE8 @ 0x779af8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall _cxa_free_dependent_exception(int *a1)
{
_BOOL4 v1; // r1
unsigned int v2; // r4
v1 = a1 >= dword_ACDDC0;
if ( a1 >= &dword_ACECC0 )
v1 = 0;
if ( v1 )
{
v2 = ((char *)a1 - (char *)dword_ACDDC0) / 0x78u;
if ( &pthread_create )
{
if ( pthread_mutex_lock((pthread_mutex_t *)&dword_ACECC0) )
sub_756FA8();
dword_ACDDBC &= ~(1 << v2);
if ( pthread_mutex_unlock((pthread_mutex_t *)&dword_ACECC0) )
sub_756274();
}
else
{
dword_ACDDBC &= ~(1 << v2);
}
}
else
{
sub_8E4210(a1);
}
}