//
// sub_EFC740 from 0xefc740 to 0xefc7b8 (120 bytes)
//
// 1 xrefs:
// > sub_EFFC48 @ 0xeffc9c
//
// 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 13:12:16 +0000
//
__int64 __fastcall sub_EFC740(__int64 result, int a2, int a3, int a4, char a5, char a6, __int64 a7)
{
bool v7; // cc
int v8; // w3
__int64 v9; // x1
__int64 v10; // x10
int v11; // w9
unsigned int v12; // w7
v7 = a4 <= 0;
v8 = a4 - 1;
if ( !v7 )
{
v9 = 4LL * a2;
do
{
if ( a3 > 0 )
{
v10 = 0;
do
{
v11 = *(_DWORD *)(result + 4 * v10++);
v12 = (unsigned __int8)(v11
- (((unsigned int)((__int64)(__int16)v11 >> 8) * a5) >> 5)
- ((unsigned int)((v11 << 8 >> 24) * a6) >> 5));
++*(_DWORD *)(a7 + 4LL * v12);
}
while ( a3 > (int)v10 );
}
--v8;
result += v9;
}
while ( v8 != -1 );
}
return result;
}