//
// sub_C27BC from 0xc27bc to 0xc2828 (108 bytes)
//
// 1 xrefs:
// > sub_C27A0 @ 0xc27ac
//
// 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_C27BC(__int64 a1, _DWORD *a2)
{
int v2; // w8
__int64 v3; // x8
int v4; // w8
__int64 result; // x0
__int64 v6; // [xsp+0h] [xbp-10h] BYREF
__int64 v7; // [xsp+8h] [xbp-8h] BYREF
if ( !*(_DWORD *)(a1 + 36) )
return 0;
v2 = *(_DWORD *)(a1 + 8);
if ( !v2 )
return 0;
v3 = *(_QWORD *)a1 + 4LL * (*a2 & (v2 - 1));
v6 = 0;
v7 = v3;
v4 = sub_C2E10(a1, &v7, a2, &v6);
result = 0;
if ( !v4 )
return *(_QWORD *)(v6 + 8);
return result;
}