//
// sub_6C43C from 0x6c43c to 0x6c474 (56 bytes)
//
// 2 xrefs:
// > sub_6BE4E @ 0x6beb4
// > sub_6BF70 @ 0x6bf98
//
// 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
//
int __fastcall sub_6C43C(_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_6CC26)(a1, &v10, a2, &v9) )
return *(_DWORD *)(v9 + 8);
}
return v6;
}