//
// sub_CFFCB8 from 0xcffcb8 to 0xcffd24 (108 bytes)
//
// 6 xrefs:
// > sub_CCF30C @ 0xccf37c
// > sub_CCF30C @ 0xccf3e8
// > sub_CCF5E4 @ 0xccf624
// > sub_CCF5E4 @ 0xccf690
// > sub_CCF6B8 @ 0xccf6ec
// > sub_CCF6B8 @ 0xccf734
//
// 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_CFFCB8(__int64 a1)
{
unsigned __int64 v2; // x0
unsigned int v3; // w2
const void *v4; // x0
v2 = sub_CEA974(&qword_124B668);
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::num_put>,
0) != nullptr;
}
return v3;
}