//
// sub_65A6C from 0x65a6c to 0x65abc (80 bytes)
//
// 2 xrefs:
// > sub_6A544 @ 0x6a7dc
// > sub_77BA0 @ 0x77c18
//
// 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_65A6C(__int64 a1)
{
__int64 result; // x0
result = *(_QWORD *)(a1 + 8);
if ( result )
{
result = sub_CB928(result, 0, 0, 4);
if ( !(_DWORD)result )
{
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 8) + 16LL))(*(_QWORD *)(a1 + 8));
if ( !(_DWORD)result )
*(_QWORD *)(a1 + 8) = 0;
}
}
return result;
}