//
// sub_CF6990 from 0xcf6990 to 0xcf6b00 (368 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
//
bool __fastcall sub_CF6990(__int64 a1, int a2)
{
__int64 v2; // x20
v2 = a1 + 96;
sub_CCFA58(a1 + 96);
*(_QWORD *)(v2 + 216) = 0;
*(_DWORD *)(v2 + 224) = 0;
*(_BYTE *)(v2 + 228) = 0;
*(_QWORD *)(v2 + 232) = 0;
*(_QWORD *)(v2 + 240) = 0;
*(_QWORD *)(v2 + 248) = 0;
*(_QWORD *)(v2 + 256) = 0;
*(_QWORD *)a1 = &unk_121DAE8;
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 96) = &unk_121DB10;
sub_CCF5E4(v2, 0);
*(_QWORD *)a1 = off_111E5F8;
*(_QWORD *)(a1 + 96) = off_111E620;
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 16) = off_111E9B0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0;
*(_QWORD *)(a1 + 64) = 0;
sub_CEBFFC((_QWORD *)(a1 + 72));
*(_QWORD *)(a1 + 16) = off_121DA60;
*(_DWORD *)(a1 + 80) = a2 | 8;
*(_QWORD *)(a1 + 88) = &unk_124B6E8;
return sub_CCF5E4(v2, a1 + 16);
}