//
// std::__ndk1::__sort4 from 0x795dc4 to 0x795e8e (202 bytes)
//
// 3 xrefs:
// > std::__ndk1::__sort5 @ 0x795eb8
// > std::__ndk1::__insertion_sort_incomplete @ 0x796020
// > std::__ndk1::__sort @ 0x796188
//
// 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:45 +0000
//
int __fastcall std::__sort4(
unsigned int *a1,
unsigned int *a2,
unsigned int *a3,
unsigned int *a4,
_DWORD **a5)
{
int v9; // r5
_DWORD v11[7]; // [sp+0h] [bp-24h] BYREF
v9 = std::__sort3(a1, a2, a3, a5);
if ( sub_793D5E(a5, *a4, *a3) )
{
DropdownListRow::DropdownListRow(v11, a3);
DropdownListRow::operator=((int)a3, a4);
DropdownListRow::operator=((int)a4, v11);
DropdownListRow::~DropdownListRow((DropdownListRow *)v11);
if ( sub_793D5E(a5, *a3, *a2) )
{
DropdownListRow::DropdownListRow(v11, a2);
DropdownListRow::operator=((int)a2, a3);
DropdownListRow::operator=((int)a3, v11);
DropdownListRow::~DropdownListRow((DropdownListRow *)v11);
if ( sub_793D5E(a5, *a2, *a1) )
{
DropdownListRow::DropdownListRow(v11, a1);
v9 += 3;
DropdownListRow::operator=((int)a1, a2);
DropdownListRow::operator=((int)a2, v11);
DropdownListRow::~DropdownListRow((DropdownListRow *)v11);
}
else
{
v9 += 2;
}
}
else
{
++v9;
}
}
return v9;
}