//
// sub_1001D5D84 from 0x1001d5d84 to 0x1001d5e00 (124 bytes)
//
// 1 xrefs:
// > sub_1001D5C9C @ 0x1001d5cd0
//
// 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:00:25 +0000
//
_DWORD *__fastcall sub_1001D5D84(_DWORD *a1, _DWORD *a2, _DWORD *a3)
{
_DWORD *result; // x0
_DWORD *i; // x8
result = a2;
if ( a1 != a2 )
{
result = a1;
while ( *result != *a3 || result[1] != a3[1] )
{
result += 2;
if ( result == a2 )
{
result = a2;
break;
}
}
if ( result != a2 )
{
for ( i = result + 2; i != a2; i += 2 )
{
if ( *i != *a3 || i[1] != a3[1] )
{
*result = *i;
result[1] = i[1];
result += 2;
}
}
}
}
return result;
}