//
// std::__ndk1::__sort3 from 0x7955ac to 0x79568e (226 bytes)
//
// 6 xrefs:
// > std::__ndk1::__sort4 @ 0x7956ae
// > std::__ndk1::__insertion_sort_incomplete @ 0x7958b0
// > std::__ndk1::__insertion_sort_incomplete @ 0x7958f8
// > std::__ndk1::__sort @ 0x7959f4
// > std::__ndk1::__sort @ 0x795a42
// > std::__ndk1::__sort @ 0x795ace
//
// 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(int *a1, int *a2, int *a3)
{
int v6; // r3
int v7; // r2
int v8; // r0
_DWORD v10[7]; // [sp+0h] [bp-20h] BYREF
v6 = *a3;
v7 = *a2;
if ( *a2 < *a1 )
{
if ( v6 >= v7 )
{
DropdownListRow::DropdownListRow(v10, a1);
DropdownListRow::operator=((int)a1, a2);
DropdownListRow::operator=((int)a2, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
if ( *a3 < *a2 )
{
DropdownListRow::DropdownListRow(v10, a2);
DropdownListRow::operator=((int)a2, a3);
v8 = (int)a3;
goto LABEL_10;
}
}
else
{
DropdownListRow::DropdownListRow(v10, a1);
DropdownListRow::operator=((int)a1, a3);
DropdownListRow::operator=((int)a3, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
}
return 1;
}
if ( v6 < v7 )
{
DropdownListRow::DropdownListRow(v10, a2);
DropdownListRow::operator=((int)a2, a3);
DropdownListRow::operator=((int)a3, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
if ( *a2 < *a1 )
{
DropdownListRow::DropdownListRow(v10, a1);
DropdownListRow::operator=((int)a1, a2);
v8 = (int)a2;
LABEL_10:
DropdownListRow::operator=(v8, v10);
DropdownListRow::~DropdownListRow((DropdownListRow *)v10);
return 2;
}
return 1;
}
return 0;
}