//
// sub_6C746 from 0x6c746 to 0x6c788 (66 bytes)
//
// 1 xrefs:
// > sub_6C72C @ 0x6c734
//
// 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_6C746(_DWORD *a1, int a2)
{
int v3; // r0
int result; // r0
int v6; // r1
v3 = a1[2];
if ( v3 < 0 )
v3 = -v3;
if ( v3 >= a2 || (result = sub_6C7A6(a1, a2)) == 0 )
{
v6 = a1[1];
if ( v6 < a2 )
memset((void *)(*a1 + 12 * v6), 0, 12 * (a2 - v6));
a1[1] = a2;
return 0;
}
return result;
}