//
// sub_100435660 from 0x100435660 to 0x1004356f0 (144 bytes)
//
// 1 xrefs:
// > sub_10011CF7C @ 0x10011cff4
//
// 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:05:08 +0000
//
_QWORD *__fastcall sub_100435660(_QWORD *result, int a2, int a3)
{
char *v3; // x20
char *v4; // x8
_QWORD *v5; // x19
unsigned __int64 v6; // x9
size_t v7; // x21
v3 = (char *)result[230];
v4 = (char *)result[231];
if ( v3 != v4 )
{
v5 = result;
v6 = (v4 - v3) >> 4;
if ( v6 <= 1 )
v6 = 1;
v7 = v4 - v3 - 16;
while ( *(_DWORD *)v3 != a2 || *((_DWORD *)v3 + 2) != a3 )
{
v3 += 16;
v7 -= 16LL;
if ( !--v6 )
return result;
}
if ( v3 + 16 != v4 )
result = memmove(v3, v3 + 16, v7);
v5[231] = &v3[v7];
}
return result;
}