//
// __deregister_frame_info_bases from 0xe8d1c0 to 0xe8d2c0 (256 bytes)
//
// 2 xrefs:
// > __deregister_frame_info @ 0xe8d2c0
// > ??> @ 0x63870
//
// 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
//
__int64 __fastcall _deregister_frame_info_bases(_DWORD *a1)
{
__int64 *j; // x0
__int64 i; // x19
if ( !a1 || !*a1 )
return 0;
if ( &pthread_create )
pthread_mutex_lock((pthread_mutex_t *)&unk_1260040);
j = &qword_1260068;
for ( i = qword_1260068; i; i = *(_QWORD *)(i + 40) )
{
if ( *(_DWORD **)(i + 24) == a1 )
{
LABEL_14:
*j = *(_QWORD *)(i + 40);
goto LABEL_21;
}
j = (__int64 *)(i + 40);
}
for ( j = &qword_1260070; ; j = (__int64 *)(i + 40) )
{
i = *j;
if ( !*j )
{
if ( !&pthread_create )
goto LABEL_20;
goto LABEL_19;
}
if ( (*(_BYTE *)(i + 32) & 1) != 0 )
break;
if ( *(_DWORD **)(i + 24) == a1 )
goto LABEL_14;
LABEL_10:
;
}
if ( **(_DWORD ***)(i + 24) != a1 )
goto LABEL_10;
*j = *(_QWORD *)(i + 40);
free(*(void **)(i + 24));
LABEL_21:
if ( &pthread_create )
{
LABEL_19:
pthread_mutex_unlock((pthread_mutex_t *)&unk_1260040);
if ( i )
return i;
LABEL_20:
abort();
}
return i;
}