//
// sub_C2668 from 0xc2668 to 0xc2700 (152 bytes)
//
// 1 xrefs:
// > sub_C2638 @ 0xc2658
//
// 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_C2668(__int64 a1, _DWORD *a2, __int64 a3)
{
__int64 result; // x0
int v7; // w8
__int64 v8; // [xsp+8h] [xbp-28h] BYREF
__int64 v9; // [xsp+18h] [xbp-18h] BYREF
result = sub_C2DC4();
if ( !(_DWORD)result )
{
v7 = *(_DWORD *)(a1 + 8);
if ( v7 && (v9 = *(_QWORD *)a1 + 4LL * (*a2 & (v7 - 1)), v8 = 0, (unsigned int)sub_C2E10(a1, &v9, a2, &v8) == 74) )
return sub_C2E58(a1, a2, a3, v9);
else
return 28;
}
return result;
}