//
// std::__ndk1::__sort3 from 0x794e54 to 0x794f50 (252 bytes)
//
// 6 xrefs:
// > std::__ndk1::__sort4 @ 0x794f6e
// > std::__ndk1::__insertion_sort_incomplete @ 0x79516c
// > std::__ndk1::__insertion_sort_incomplete @ 0x7951b4
// > std::__ndk1::__sort @ 0x7952c2
// > std::__ndk1::__sort @ 0x795310
// > std::__ndk1::__sort @ 0x7953ac
//
// 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::__sort3(int *a1, int *a2, int *a3)
{
int result; // r0
int v7; // r0
_DWORD v8[7]; // [sp+0h] [bp-20h] BYREF
if ( sub_793930(a2, a1) )
{
if ( sub_793930(a3, a2) )
{
DropdownListRow::DropdownListRow(v8, a1);
DropdownListRow::operator=((int)a1, a3);
DropdownListRow::operator=((int)a3, v8);
DropdownListRow::~DropdownListRow((DropdownListRow *)v8);
}
else
{
DropdownListRow::DropdownListRow(v8, a1);
DropdownListRow::operator=((int)a1, a2);
DropdownListRow::operator=((int)a2, v8);
DropdownListRow::~DropdownListRow((DropdownListRow *)v8);
if ( sub_793930(a3, a2) )
{
DropdownListRow::DropdownListRow(v8, a2);
DropdownListRow::operator=((int)a2, a3);
v7 = (int)a3;
goto LABEL_10;
}
}
return 1;
}
result = sub_793930(a3, a2);
if ( !result )
return result;
DropdownListRow::DropdownListRow(v8, a2);
DropdownListRow::operator=((int)a2, a3);
DropdownListRow::operator=((int)a3, v8);
DropdownListRow::~DropdownListRow((DropdownListRow *)v8);
if ( !sub_793930(a2, a1) )
return 1;
DropdownListRow::DropdownListRow(v8, a1);
DropdownListRow::operator=((int)a1, a2);
v7 = (int)a2;
LABEL_10:
DropdownListRow::operator=(v7, v8);
DropdownListRow::~DropdownListRow((DropdownListRow *)v8);
return 2;
}