//
// IDNameInput::useRankLess from 0x793d14 to 0x793d5e (74 bytes)
//
// 2 xrefs:
// > sub_78F31C @ 0x78f31e
// > sub_793D5E @ 0x793d60
//
// 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:43 +0000
//
bool __fastcall IDNameInput::useRankLess(_DWORD *a1, unsigned int a2, unsigned int a3)
{
_DWORD *v4; // r4
_DWORD *v5; // r0
int v6; // r2
int v7; // r3
int v9; // [sp+0h] [bp-Ch] BYREF
unsigned int v10[2]; // [sp+4h] [bp-8h] BYREF
v10[1] = a3;
v10[0] = a2;
v9 = a3;
v4 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
a1,
v10);
v5 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
a1,
(unsigned int *)&v9);
if ( v4 )
{
v6 = v4[3];
if ( !v5 )
{
v7 = 0x7FFFFFFF;
goto LABEL_7;
}
}
else
{
if ( !v5 )
return (signed int)v10[0] < v9;
v6 = 0x7FFFFFFF;
}
v7 = v5[3];
LABEL_7:
if ( v6 != v7 )
return v6 < v7;
return (signed int)v10[0] < v9;
}