//
// __deregister_frame_info_bases from 0x1109ea4 to 0x1109fa4 (256 bytes)
//
// 2 xrefs:
// > __deregister_frame_info @ 0x1109fa4
// > ??> @ 0x87898
//
// 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:18:31 +0000
//
__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_1568E40);
j = &qword_1568E68;
for ( i = qword_1568E68; 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_1568E70; ; 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_1568E40);
if ( i )
return i;
LABEL_20:
abort();
}
return i;
}