//
// sub_CB118 from 0xcb118 to 0xcb148 (48 bytes)
//
// 2 xrefs:
// > sub_CAABC @ 0xcad90
// > sub_CAF24 @ 0xcb0a8
//
// 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_CB118(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x8
if ( *(_WORD *)(a1 + 424) != 1 || (v1 = *(_QWORD *)(*(_QWORD *)(a1 + 120) + 16LL), (*(_BYTE *)(v1 + 124) & 4) != 0) )
v2 = 0;
else
v2 = *(_QWORD *)(v1 + 88);
*(_QWORD *)(a1 + 112) = v2;
return 0;
}