//
// sub_C75418 from 0xc75418 to 0xc75500 (232 bytes)
//
// 2 xrefs:
// > sub_C75500 @ 0xc7553c
// > sub_C76D40 @ 0xc76e68
//
// 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
//
__int64 __fastcall sub_C75418(__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_F54BCF[v10] + 4 * byte_F54BCF[v9 - v8] )
break;
if ( ++v5 == 16 )
return result;
}
v11 = 3 * (v8 - v9) + byte_F546CC[v10];
v12 = v8 - byte_F54250[(v11 + 4) >> 3];
*(_BYTE *)(v7 + v3 + v5) = byte_F53FDF[v9 + byte_F54250[(v11 + 3) >> 3]];
*(_BYTE *)(result + v5++) = byte_F53FDF[v12];
}
while ( v5 != 16 );
return result;
}