//
// sub_CFFB08 from 0xcffb08 to 0xcffb74 (108 bytes)
//
// 3 xrefs:
// > sub_CCF30C @ 0xccf360
// > sub_CCF5E4 @ 0xccf608
// > sub_CCF6B8 @ 0xccf6d0
//
// 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_CFFB08(__int64 a1)
{
unsigned __int64 v2; // x0
unsigned int v3; // w2
const void *v4; // x0
v2 = sub_CEA974(&qword_125D358);
v3 = 0;
if ( v2 < *(_QWORD *)(*(_QWORD *)a1 + 16LL) )
{
v4 = *(const void **)(*(_QWORD *)(*(_QWORD *)a1 + 8LL) + 8 * v2);
if ( v4 )
return _dynamic_cast(
v4,
(const struct __class_type_info *)&`typeinfo for'std::locale::facet,
(const struct __class_type_info *)&`typeinfo for'std::ctype,
0) != nullptr;
}
return v3;
}