//
// sub_EEB5D8 from 0xeeb5d8 to 0xeeb6c0 (232 bytes)
//
// 2 xrefs:
// > sub_EEB6C0 @ 0xeeb6fc
// > sub_EECF00 @ 0xeed028
//
// 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:11:55 +0000
//
__int64 __fastcall sub_EEB5D8(__int64 result, int a2, int a3)
{
__int64 v3; // x14
int v4; // w2
__int64 v5; // x3
__int64 v6; // x8
__int64 v7; // x11
int v8; // w6
int v9; // w7
__int64 v10; // x4
int v11; // w5
int v12; // w6
v3 = -2 * a2;
v4 = 2 * a3 + 1;
v5 = 0;
v6 = result + v3;
v7 = result + a2;
do
{
while ( 1 )
{
v8 = *(unsigned __int8 *)(result + v5);
v9 = *(unsigned __int8 *)(v6 + a2 + v5);
v10 = *(unsigned __int8 *)(v6 + v5) - *(unsigned __int8 *)(v7 + v5);
if ( v4 >= byte_11E4BAF[v10] + 4 * byte_11E4BAF[v9 - v8] )
break;
if ( ++v5 == 16 )
return result;
}
v11 = 3 * (v8 - v9) + byte_11E46AC[v10];
v12 = v8 - byte_11E4230[(v11 + 4) >> 3];
*(_BYTE *)(v7 + v3 + v5) = byte_11E3FBF[v9 + byte_11E4230[(v11 + 3) >> 3]];
*(_BYTE *)(result + v5++) = byte_11E3FBF[v12];
}
while ( v5 != 16 );
return result;
}