//
// sub_100412C74 from 0x100412c74 to 0x100412cf0 (124 bytes)
//
// 1 xrefs:
// > sub_1004067E4 @ 0x1004068e4
//
// 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 11:04:51 +0000
//
int *__fastcall sub_100412C74(int *a1, int *a2)
{
int *result; // x0
int *v4; // x8
int v5; // w9
int v6; // w10
int *v7; // x8
int *v8; // x9
int v9; // w10
int v10; // w11
result = a2;
if ( a1 != a2 )
{
v4 = a1 + 1;
while ( v4 != a2 )
{
v5 = *(v4 - 1);
v6 = *v4++;
if ( v5 == v6 )
{
v7 = v4 - 2;
goto LABEL_7;
}
}
v7 = a2;
LABEL_7:
result = a2;
if ( v7 != a2 )
{
v8 = v7 + 2;
if ( v7 + 2 != a2 )
{
v9 = *v7;
do
{
v10 = v9;
v9 = *v8;
if ( v10 != *v8 )
{
v7[1] = v9;
++v7;
}
++v8;
}
while ( v8 != a2 );
}
return v7 + 1;
}
}
return result;
}