//
// std::__ndk1::__sort4 from 0x794f54 to 0x79500a (182 bytes)
//
// 3 xrefs:
// > std::__ndk1::__sort5 @ 0x795036
// > std::__ndk1::__insertion_sort_incomplete @ 0x795180
// > std::__ndk1::__sort @ 0x7952da
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:44 +0000
//
int __fastcall std::__sort4(int *a1, int *a2, int *a3, int *a4)
{
int v8; // r5
_DWORD v10[7]; // [sp+0h] [bp-20h] BYREF
v8 = std::__sort3(a1, a2, a3);
if ( sub_793930(a4, a3) )
{
DropdownListRow::DropdownListRow(v10, a3);
DropdownListRow::operator=((int)a3, a4);
DropdownListRow::operator=((int)a4, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
if ( sub_793930(a3, a2) )
{
DropdownListRow::DropdownListRow(v10, a2);
DropdownListRow::operator=((int)a2, a3);
DropdownListRow::operator=((int)a3, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
if ( sub_793930(a2, a1) )
{
DropdownListRow::DropdownListRow(v10, a1);
v8 += 3;
DropdownListRow::operator=((int)a1, a2);
DropdownListRow::operator=((int)a2, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
}
else
{
v8 += 2;
}
}
else
{
++v8;
}
}
return v8;
}