//
// SequenceTriggerGameObject::reorderTarget from 0x10038ad90 to 0x10038ae04 (116 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::onChangeOrder @ 0x1001d3270
//
// 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
//
bool __fastcall SequenceTriggerGameObject::reorderTarget(SequenceTriggerGameObject *a1, int a2, bool a3)
{
std::__vector_base::pointer end; // x9
std::__vector_base::pointer begin; // x8
unsigned __int64 v5; // x10
bool result; // w0
bool v8; // w10
int v9; // w9
ChanceObject v10; // q0
end = a1->m_chanceObjects.__end_;
begin = a1->m_chanceObjects.__begin_;
v5 = (unsigned __int64)((char *)end - (char *)begin) >> 4;
if ( (int)v5 <= a2 )
return 0;
if ( (_DWORD)v5 - 1 == a2 && !a3 )
return 0;
result = 0;
if ( a2 )
v8 = 0;
else
v8 = a3;
if ( !v8 && begin != end )
{
v9 = a2 - 1;
if ( !a3 )
v9 = a2 + 1;
v10 = begin[a2];
begin[a2] = begin[v9];
begin[v9] = v10;
return 1;
}
return result;
}