//
// sub_CBCB4 from 0xcbcb4 to 0xcbd54 (160 bytes)
//
// 2 xrefs:
// > sub_7755C @ 0x778c4
// > sub_CBC5C @ 0xcbcb0
//
// 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_CBCB4(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
int v4; // w21
__int64 v5; // x20
__int64 v6; // x0
__int64 v7; // x8
__int64 v9; // [xsp+0h] [xbp-40h] BYREF
v2 = sub_CD580();
sub_CD07C(v2);
v3 = *(_QWORD *)(a1 + 536);
if ( v3 )
{
v4 = *(unsigned __int8 *)(v3 + 1062);
if ( *(_BYTE *)(v3 + 1062) )
v5 = v3 + 532;
else
v5 = 0;
if ( *(_BYTE *)(v3 + 530) )
{
*(_DWORD *)(v3 + 524) = 0;
*(_WORD *)(v3 + 528) = 0;
memset((void *)v3, 0, 0x208u);
}
if ( v4 )
{
*(_DWORD *)(v5 + 524) = 0;
*(_WORD *)(v5 + 528) = 0;
memset((void *)v5, 0, 0x208u);
}
}
v6 = sub_51F94((__int64)&v9);
v7 = *(_QWORD *)(a1 + 232);
if ( v7 && *(_QWORD *)(v7 + 64) )
return sub_CD368(v6);
else
return 0;
}