//
// sub_CF0370 from 0xcf0370 to 0xcf0458 (232 bytes)
//
// 7 xrefs:
// > sub_CD0588 @ 0xcd0604
// > sub_CD0588 @ 0xcd0610
// > sub_CD0588 @ 0xcd061c
// > sub_CD43C0 @ 0xcd43fc
// > sub_CF0874 @ 0xcf08ac
// > sub_CF0E8C @ 0xcf0ed4
// > sub_CF0EE4 @ 0xcf0ee4
//
// 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
//
char *__fastcall sub_CF0370(char *a1)
{
__int64 v2; // x0
v2 = *(_QWORD *)&a1[*(_QWORD *)(*(_QWORD *)a1 - 24LL) + 232];
if ( v2 && (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v2 + 48LL))(v2) == -1 )
sub_CCF1DC(
(__int64)&a1[*(_QWORD *)(*(_QWORD *)a1 - 24LL)],
*(_DWORD *)&a1[*(_QWORD *)(*(_QWORD *)a1 - 24LL) + 32] | 1);
return a1;
}