//
// sub_CF41D8 from 0xcf41d8 to 0xcf42a4 (204 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_CF41D8(__int64 a1, __int64 *a2, int a3)
{
__int64 v5; // x1
__int64 v6; // x2
__int64 v7; // x1
__int64 v8; // x3
char v11; // [xsp+48h] [xbp+48h] BYREF
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)a1 = off_111E930;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 32) = 0;
*(_QWORD *)(a1 + 40) = 0;
*(_QWORD *)(a1 + 48) = 0;
sub_CEBFFC((_QWORD *)(a1 + 56));
v5 = *a2;
*(_DWORD *)(a1 + 64) = 0;
v6 = *(_QWORD *)(v5 - 24);
*(_QWORD *)a1 = off_121D820;
sub_D1527C(a1 + 72, v5, v6, &v11);
*(_DWORD *)(a1 + 64) = a3;
v7 = *(_QWORD *)(a1 + 72);
v8 = 0;
if ( (a3 & 3) != 0 )
v8 = *(_QWORD *)(v7 - 24);
return sub_CF4060(a1, v7, 0, v8);
}