//
// sub_D208B8 from 0xd208b8 to 0xd20950 (152 bytes)
//
// 2 xrefs:
// > sub_CEAFF4 @ 0xceb0c0
// > sub_D20A88 @ 0xd20aac
//
// 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
//
void *__fastcall sub_D208B8(__int64 a1, __int64 a2, char a3, __int64 a4)
{
__int64 v5; // x0
void *result; // x0
*(_DWORD *)(a1 + 8) = a4 != 0;
v5 = a2;
*(_QWORD *)(a1 + 32) = 0;
*(_BYTE *)(a1 + 24) = a3 & (a2 != 0);
*(_QWORD *)a1 = off_121EE00;
*(_QWORD *)(a1 + 40) = 0;
if ( !a2 )
v5 = ctype_ + 1LL;
*(_QWORD *)(a1 + 48) = v5;
memset((void *)(a1 + 57), 0, 0x100u);
*(_BYTE *)(a1 + 56) = 0;
result = memset((void *)(a1 + 313), 0, 0x100u);
*(_BYTE *)(a1 + 569) = 0;
return result;
}