//
// sub_CF9158 from 0xcf9158 to 0xcf9194 (60 bytes)
//
// 4 xrefs:
// > ??> @ 0x111e980
// > ??> @ 0x121d870
// > ??> @ 0x121e4d0
// > ??> @ 0x121f060
//
// 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_CF9158(_QWORD *a1)
{
__int64 result; // x0
unsigned __int8 *v3; // x1
result = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 72LL))(a1);
if ( (_DWORD)result != -1 )
{
v3 = (unsigned __int8 *)a1[2];
result = *v3;
a1[2] = v3 + 1;
}
return result;
}