// // AutoBackupPopup::pruneBackups from 0x73e854 to 0x73e95a (262 bytes) // // 3 xrefs: // > sub_46BB18 @ 0x46bba2 // > AutoBackupOptionsPopup::onPrune @ 0x73e9a0 // > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb38 // // 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:33 +0000 // int __fastcall AutoBackupPopup::pruneBackups(unsigned __int8 *a1, int a2, unsigned __int8 *a3, int a4) { int v5; // r4 unsigned int v6; // r5 unsigned __int8 *v7; // r2 int v8; // r3 int v9; // r3 int v10; // r3 const char *v11; // r0 int v12; // r8 char *v16; // [sp+1Ch] [bp-38h] BYREF int v17; // [sp+20h] [bp-34h] BYREF unsigned __int8 *v18; // [sp+28h] [bp-2Ch] BYREF int v19; // [sp+2Ch] [bp-28h] int v20; // [sp+30h] [bp-24h] int *v21; // [sp+34h] [bp-20h] BYREF _DWORD *v22[2]; // [sp+38h] [bp-1Ch] BYREF int v23[3]; // [sp+40h] [bp-14h] BYREF v5 = 0; if ( a2 > 0 ) { v18 = nullptr; v19 = 0; v20 = 0; AutoBackupPopup::listBackups(a1, (unsigned int *)&v18, a3); v21 = (int *)v22; v6 = 0; v22[0] = nullptr; v22[1] = nullptr; while ( v6 < (v19 - (int)v18) >> 6 ) { v7 = &v18[64 * v6]; v8 = v7[12]; if ( (v8 & 1) != 0 ) v9 = *((_DWORD *)v7 + 4); else v9 = v8 >> 1; if ( v9 ) { v16 = (char *)(v7 + 12); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (int)&v17, &v21, v7 + 12, (int)&unk_BF0648, (int *)&v16); v10 = *(_DWORD *)(v17 + 28) + 1; *(_DWORD *)(v17 + 28) = v10; if ( v10 > a2 ) { if ( a4 || ((std::operator+(v23, a1, &v18[64 * v6]), (v23[0] & 1) != 0) ? (v11 = (const char *)v23[2]) : (v11 = (char *)v23 + 1), v12 = remove(v11), std::string::~string((int)v23), !v12) ) { ++v5; } } } ++v6; } std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (int)&v21, v22[0]); std::__vector_base::~__vector_base((void **)&v18); } return v5; }