//
// sub_10043143C from 0x10043143c to 0x1004314b4 (120 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::onDeleteSelected @ 0x10026b1d0
//
// 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:06 +0000
//
_QWORD *__fastcall sub_10043143C(_QWORD *result, unsigned int a2)
{
_QWORD *v2; // x19
__int64 v3; // x8
__int64 v4; // x9
__int64 v6; // x20
__int64 v7; // x21
if ( (a2 & 0x80000000) == 0 )
{
v2 = result;
v3 = result[231];
v4 = result[230];
if ( v3 != v4 && ((v3 - v4) >> 4) - 1 >= (unsigned __int64)a2 )
{
v6 = v4 + 16LL * a2;
v7 = v3 - (v6 + 16);
if ( v3 != v6 + 16 )
result = memmove((void *)(v4 + 16LL * a2), (const void *)(v6 + 16), v3 - (v6 + 16));
v2[231] = v6 + v7;
*((_DWORD *)v2 + 490) = -1;
}
}
return result;
}