//
// sub_CCC414 from 0xccc414 to 0xccc490 (124 bytes)
//
// 7 xrefs:
// > sub_CCC490 @ 0xccc4d8
// > __gxx_personality_v0 @ 0xccc7fc
// > __gxx_personality_v0 @ 0xccc80c
// > __gxx_personality_v0 @ 0xccc848
// > __gxx_personality_v0 @ 0xccc898
// > __gxx_personality_v0 @ 0xccc8c0
// > __gxx_personality_v0 @ 0xccc8e8
//
// 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 sub_CCC414(unsigned __int8 a1, __int64 a2)
{
unsigned int v2; // w2
if ( a1 == 255 )
return 0;
v2 = a1 & 0x70;
if ( v2 == 32 )
return Unwind_GetTextRelBase(a2);
if ( v2 <= 0x20 )
{
if ( (a1 & 0x70) != 0 && v2 != 16 )
goto LABEL_11;
return 0;
}
if ( v2 != 64 )
{
if ( v2 != 80 )
{
if ( v2 == 48 )
return Unwind_GetDataRelBase(a2);
LABEL_11:
abort();
}
return 0;
}
return Unwind_GetRegionStart(a2);
}