//
// sub_CDD49C from 0xcdd49c to 0xcdd508 (108 bytes)
//
// 3 xrefs:
// > sub_CCE960 @ 0xcce9b4
// > sub_CCED04 @ 0xcced28
// > sub_CCEDD8 @ 0xccedf0
//
// 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_CDD49C(__int64 a1)
{
unsigned __int64 v2; // x0
unsigned int v3; // w2
const void *v4; // x0
v2 = sub_CEA974(&unk_125D350);
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;
}