//
// std::__ndk1::__sort3 from 0x795cb8 to 0x795dc0 (264 bytes)
//
// 6 xrefs:
// > std::__ndk1::__sort4 @ 0x795de2
// > std::__ndk1::__insertion_sort_incomplete @ 0x79600a
// > std::__ndk1::__insertion_sort_incomplete @ 0x796054
// > std::__ndk1::__sort @ 0x796172
// > std::__ndk1::__sort @ 0x7961be
// > std::__ndk1::__sort @ 0x796266
//
// 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::__sort3(
unsigned int *a1,
unsigned int *a2,
unsigned int *a3,
_DWORD **a4)
{
int result; // r0
int v9; // r0
_DWORD v10[7]; // [sp+0h] [bp-24h] BYREF
if ( sub_793D5E(a4, *a2, *a1) )
{
if ( sub_793D5E(a4, *a3, *a2) )
{
DropdownListRow::DropdownListRow(v10, a1);
DropdownListRow::operator=((int)a1, a3);
DropdownListRow::operator=((int)a3, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
}
else
{
DropdownListRow::DropdownListRow(v10, a1);
DropdownListRow::operator=((int)a1, a2);
DropdownListRow::operator=((int)a2, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
if ( sub_793D5E(a4, *a3, *a2) )
{
DropdownListRow::DropdownListRow(v10, a2);
DropdownListRow::operator=((int)a2, a3);
v9 = (int)a3;
goto LABEL_10;
}
}
return 1;
}
result = sub_793D5E(a4, *a3, *a2);
if ( !result )
return result;
DropdownListRow::DropdownListRow(v10, a2);
DropdownListRow::operator=((int)a2, a3);
DropdownListRow::operator=((int)a3, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
if ( !sub_793D5E(a4, *a2, *a1) )
return 1;
DropdownListRow::DropdownListRow(v10, a1);
DropdownListRow::operator=((int)a1, a2);
v9 = (int)a2;
LABEL_10:
DropdownListRow::operator=(v9, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
return 2;
}