//
// AutoBackupPopup::assignRevs from 0x741dd0 to 0x741fec (540 bytes)
//
// 1 xrefs:
// > AutoBackupPopup::reloadFiles @ 0x74207a
//
// 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:58:39 +0000
//
void __fastcall AutoBackupPopup::assignRevs(AutoBackupPopup *this)
{
int **v1; // r8
unsigned int v3; // r5
int v4; // r4
int v5; // r4
int v6; // r3
int v7; // r3
int *v8; // r0
unsigned __int8 *v9; // r0
int v10; // r3
unsigned __int8 *v11; // r11
int v12; // r2
int v13; // r1
int v14; // r10
int v15; // r1
unsigned int v16; // r10
unsigned int v17; // r3
const void *v18; // r0
const void *v19; // r1
size_t v20; // r2
int v21; // r0
int *i; // r5
int *v23; // r6
unsigned __int8 *v24; // r3
int v25; // r1
int v26; // r2
_DWORD *v27; // r3
int v28; // r1
int v29; // r2
unsigned int v30; // r4
unsigned int v31; // [sp+Ch] [bp-4Ch]
char v32[4]; // [sp+10h] [bp-48h] BYREF
unsigned __int8 *v33; // [sp+18h] [bp-40h] BYREF
int v34; // [sp+1Ch] [bp-3Ch] BYREF
int *v35; // [sp+24h] [bp-34h] BYREF
_DWORD *v36[2]; // [sp+28h] [bp-30h] BYREF
_BYTE *v37; // [sp+30h] [bp-28h] BYREF
unsigned __int8 *v38; // [sp+34h] [bp-24h]
unsigned int v39; // [sp+38h] [bp-20h]
int v40; // [sp+3Ch] [bp-1Ch] BYREF
int v41; // [sp+40h] [bp-18h]
int v42; // [sp+44h] [bp-14h]
int v43; // [sp+48h] [bp-10h] BYREF
int v44; // [sp+4Ch] [bp-Ch]
int v45; // [sp+50h] [bp-8h]
v1 = (int **)((char *)this + 656);
v3 = 0;
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy(
(int)this + 656,
*((_DWORD **)this + 165));
*((_DWORD *)this + 166) = 0;
*((_DWORD *)this + 164) = (char *)this + 660;
*((_DWORD *)this + 165) = 0;
v36[0] = nullptr;
v36[1] = nullptr;
v35 = (int *)v36;
while ( 1 )
{
v4 = *((_DWORD *)this + 155);
if ( v3 >= (*((_DWORD *)this + 156) - v4) >> 6 )
break;
v5 = v4 + (v3 << 6);
v6 = *(unsigned __int8 *)(v5 + 12);
if ( (v6 & 1) != 0 )
v7 = *(_DWORD *)(v5 + 16);
else
v7 = v6 >> 1;
if ( v7 )
{
v8 = std::map>::operator[](&v35, (unsigned __int8 *)(v5 + 24));
v9 = (unsigned __int8 *)std::map::operator[](v8, (int *)(v5 + 12));
v10 = *v9;
v11 = v9;
v12 = v10 & 1;
if ( (v10 & 1) != 0 )
v13 = *((_DWORD *)v9 + 1);
else
v13 = v10 >> 1;
if ( !v13 )
goto LABEL_47;
v14 = *(unsigned __int8 *)(v5 + 48);
v15 = v14 & 1;
if ( (v14 & 1) != 0 )
v16 = *(_DWORD *)(v5 + 52);
else
v16 = v14 >> 1;
if ( (v10 & 1) != 0 )
v17 = *((_DWORD *)v9 + 1);
else
v17 = v10 >> 1;
if ( v15 )
v18 = *(const void **)(v5 + 56);
else
v18 = (const void *)(v5 + 49);
if ( v12 )
v19 = *((const void **)v11 + 2);
else
v19 = v11 + 1;
v20 = v17;
v31 = v17;
if ( v17 >= v16 )
v20 = v16;
v21 = std::char_traits::compare(v18, v19, v20);
if ( v21 )
{
if ( v21 >= 0 )
goto LABEL_29;
LABEL_47:
std::string::operator=(v11, (unsigned __int8 *)(v5 + 48));
goto LABEL_29;
}
if ( v16 < v31 )
goto LABEL_47;
}
LABEL_29:
++v3;
}
for ( i = v35; i != (int *)v36; i = std::__tree_next *>(i) )
{
if ( (unsigned int)i[9] > 1 )
{
v23 = (int *)i[7];
v37 = nullptr;
v38 = nullptr;
v39 = 0;
while ( v23 != i + 8 )
{
std::string::basic_string(&v40, (int)(v23 + 7));
std::string::basic_string(&v43, (int)(v23 + 4));
v24 = v38;
if ( (unsigned int)v38 >= v39 )
{
std::vector>::__push_back_slow_path>(
(void **)&v37,
&v40);
}
else
{
if ( v38 )
{
v25 = v41;
v26 = v42;
*(_DWORD *)v38 = v40;
*((_DWORD *)v24 + 1) = v25;
*((_DWORD *)v24 + 2) = v26;
v27 = v24 + 12;
v40 = 0;
v41 = 0;
v42 = 0;
v28 = v44;
v29 = v45;
*v27 = v43;
v27[1] = v28;
v27[2] = v29;
v43 = 0;
v44 = 0;
v45 = 0;
}
v38 += 24;
}
std::pair::~pair((int)&v40);
v23 = std::__tree_next *>(v23);
}
v30 = 0;
v32[0] = 0;
std::__sort,std::pair> &,std::pair*>(
(int)v37,
v38,
(int)v32);
while ( v30 < -1431655765 * ((v38 - v37) >> 3) )
{
v33 = &v37[24 * v30 + 12];
std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(int)&v34,
v1,
v33,
(int)&unk_BF0648,
(int *)&v33);
*(_DWORD *)(v34 + 28) = ++v30;
}
std::__vector_base>::~__vector_base((int)&v37);
}
}
std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::destroy(
(int)&v35,
v36[0]);
}