//
// sub_CD2414 from 0xcd2414 to 0xcd2540 (300 bytes)
//
// 0 xrefs:
//
// 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_CD2414(unsigned __int64 *a1)
{
_QWORD *v2; // x0
unsigned __int8 *v3; // x1
unsigned int v4; // w20
char v6; // [xsp+38h] [xbp+38h] BYREF
a1[1] = 0;
sub_CD14C0(&v6, a1, 1);
if ( !v6 )
return (unsigned int)-1;
v2 = *(_QWORD **)((char *)a1 + *(_QWORD *)(*a1 - 24) + 232);
v3 = (unsigned __int8 *)v2[2];
if ( (unsigned __int64)v3 < v2[3] )
return *v3;
v4 = (*(__int64 (__fastcall **)(_QWORD *))(*v2 + 72LL))(v2);
if ( v4 != -1 )
return v4;
sub_CCE830((__int64)a1 + *(_QWORD *)(*a1 - 24), *(_DWORD *)((char *)a1 + *(_QWORD *)(*a1 - 24) + 32) | 2);
return 0xFFFFFFFFLL;
}