//
// sub_6C2A8 from 0x6c2a8 to 0x6c2e0 (56 bytes)
//
// 3 xrefs:
// > sub_6BE10 @ 0x6be2e
// > sub_6BF0E @ 0x6bf2c
// > sub_6C474 @ 0x6c49e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:40:58 +0000
//
int __fastcall sub_6C2A8(_DWORD *a1, _DWORD *a2, int a3, int a4)
{
int v5; // r1
int v6; // r4
int v7; // r1
int v9; // [sp+0h] [bp-10h] BYREF
int v10; // [sp+4h] [bp-Ch] BYREF
v9 = a3;
v10 = a4;
if ( !a1[7] )
return 0;
v5 = a1[1];
v6 = 0;
if ( v5 )
{
v7 = *a1 + 4 * ((v5 - 1) & *a2);
v9 = 0;
v10 = v7;
if ( !((int (__fastcall *)(_DWORD *, int *, _DWORD *, int *))sub_6CA18)(a1, &v10, a2, &v9) )
return *(_DWORD *)(v9 + 8);
}
return v6;
}