//
// sub_C9BBD8 from 0xc9bbd8 to 0xc9bc14 (60 bytes)
//
// 4 xrefs:
// > sub_CA34E8 @ 0xca3590
// > sub_CA3658 @ 0xca3754
// > sub_CA4098 @ 0xca421c
// > sub_CB3070 @ 0xcb3220
//
// 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_C9BBD8(__int64 result)
{
__int64 v1; // x1
__int64 v2; // x2
__int64 v3; // x3
v1 = **(_QWORD **)(result + 8);
if ( v1 )
{
v2 = *(int *)(v1 + 16);
v3 = *(_QWORD *)(v1 + 8);
*(_QWORD *)result = v3;
*(_QWORD *)(result + 8) = v1;
*(_QWORD *)(result + 16) = v3 + 8 * v2;
}
else
{
*(_QWORD *)result = 0;
*(_QWORD *)(result + 16) = 0;
*(_QWORD *)(result + 8) = 0;
}
return result;
}