//
// sub_913060 from 0x913060 to 0x913104 (164 bytes)
//
// 1 xrefs:
// > sub_913114 @ 0x913128
//
// 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 12:04:28 +0000
//
unsigned __int8 *__fastcall sub_913060(int a1, int a2, int a3)
{
int v3; // r2
unsigned __int8 *result; // r0
unsigned __int8 *v5; // r7
char *v6; // r8
char *v7; // r12
int v8; // r6
_BYTE *v9; // r9
int v10; // r10
int v11; // r5
int v12; // r3
int v13; // r4
int v14; // r5
v3 = 2 * a3 + 1;
result = (unsigned __int8 *)(a1 - 2);
v5 = (unsigned __int8 *)off_C76020;
v6 = (char *)off_C7602C;
v7 = (char *)off_C76028;
v8 = 16;
v9 = off_C76024;
do
{
while ( 1 )
{
v10 = result[1];
v11 = result[2];
v12 = *result - result[3];
if ( v3 >= 4 * v5[v10 - v11] + v5[v12] )
break;
--v8;
result += a2;
if ( !v8 )
return result;
}
--v8;
v13 = 3 * (v11 - v10) + v6[v12];
v14 = v11 - v7[(v13 + 4) >> 3];
result[1] = v9[v10 + v7[(v13 + 3) >> 3]];
result[2] = v9[v14];
result += a2;
}
while ( v8 );
return result;
}