//
// std::__ndk1::__sort5 from 0x795e94 to 0x795f9c (264 bytes)
//
// 3 xrefs:
// > std::__ndk1::__insertion_sort_incomplete @ 0x79603a
// > std::__ndk1::__sort @ 0x7961a2
// > std::__ndk1::__sort @ 0x796252
//
// 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::__sort5(
unsigned int *a1,
unsigned int *a2,
unsigned int *a3,
unsigned int *a4,
unsigned int *a5,
_DWORD **a6)
{
int v10; // r11
_DWORD v12[7]; // [sp+10h] [bp-24h] BYREF
v10 = std::__sort4(a1, a2, a3, a4, a6);
if ( sub_793D5E(a6, *a5, *a4) )
{
DropdownListRow::DropdownListRow(v12, a4);
DropdownListRow::operator=((int)a4, a5);
DropdownListRow::operator=((int)a5, v12);
DropdownListRow::~DropdownListRow((DropdownListRow *)v12);
if ( sub_793D5E(a6, *a4, *a3) )
{
DropdownListRow::DropdownListRow(v12, a3);
DropdownListRow::operator=((int)a3, a4);
DropdownListRow::operator=((int)a4, v12);
DropdownListRow::~DropdownListRow((DropdownListRow *)v12);
if ( sub_793D5E(a6, *a3, *a2) )
{
DropdownListRow::DropdownListRow(v12, a2);
DropdownListRow::operator=((int)a2, a3);
DropdownListRow::operator=((int)a3, v12);
DropdownListRow::~DropdownListRow((DropdownListRow *)v12);
if ( sub_793D5E(a6, *a2, *a1) )
{
DropdownListRow::DropdownListRow(v12, a1);
v10 += 4;
DropdownListRow::operator=((int)a1, a2);
DropdownListRow::operator=((int)a2, v12);
DropdownListRow::~DropdownListRow((DropdownListRow *)v12);
}
else
{
v10 += 3;
}
}
else
{
v10 += 2;
}
}
else
{
++v10;
}
}
return v10;
}