//
// sub_C27BC from 0xc27bc to 0xc2828 (108 bytes)
//
// 1 xrefs:
// > sub_C27A0 @ 0xc27ac
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:14:44 +0000
//
__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;
}