//
// sub_701660 from 0x701660 to 0x7016a2 (66 bytes)
//
// 4 xrefs:
// > sub_6FA024 @ 0x6fa0ae
// > sub_6FA0BC @ 0x6fa10a
// > WebPPictureRescale @ 0x72b9a8
// > WebPPictureRescale @ 0x72ba22
//
// 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_701660(int result, int a2, int a3, int a4, int a5, int a6, int a7)
{
int v10; // r6
int v11; // r1
int v12; // r0
int v13; // [sp+4h] [bp-8h]
if ( a6 > 0 )
{
v10 = 0;
v13 = result;
do
{
v11 = a3;
++v10;
a3 += a4;
v12 = v13;
v13 += a2;
result = off_AD5168(v12, v11, a5, a7);
}
while ( v10 != a6 );
}
return result;
}