// // AutoBackupPopup::assignRevs from 0xc5ca14 to 0xc5d040 (1580 bytes) // // 2 xrefs: // > AutoBackupPopup::reloadFiles @ 0xc5d0e8 // > @ 0xae838 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:05:19 +0000 // __int64 __fastcall AutoBackupPopup::assignRevs(AutoBackupPopup *this) { char *v2; // x28 __int64 v3; // x19 __int64 v4; // x1 __int64 v5; // x3 unsigned __int64 v6; // x19 _QWORD *v7; // x20 __int64 v8; // x2 __int64 **v9; // x24 __int64 **v10; // x22 __int64 v11; // x3 __int64 v12; // x3 char *v13; // x0 char *v14; // x1 __int64 v15; // x23 unsigned __int64 v16; // x22 char *v17; // x0 char *v18; // x22 __int64 *v20; // x0 __int64 v21; // x21 __int64 *v22; // x22 __int64 *v23; // x0 __int64 *v24; // x22 __int64 *v25; // x25 __int64 *v26; // x3 __int64 v27; // x1 __int64 *v28; // x23 size_t v29; // x25 size_t v30; // x21 const void *v31; // x0 const void *v32; // x1 size_t v33; // x2 int v34; // w0 const void *v35; // x1 size_t v36; // x2 __int64 *v37; // x1 __int64 v38; // x0 __int64 v39; // x0 __int64 *v40; // x1 char *v41; // x1 unsigned __int8 *v42; // x0 __int64 **v43; // [xsp+70h] [xbp+70h] char *v44; // [xsp+78h] [xbp+78h] char *v45; // [xsp+78h] [xbp+78h] __int64 *v46; // [xsp+78h] [xbp+78h] char v47[8]; // [xsp+88h] [xbp+88h] BYREF char *v48; // [xsp+98h] [xbp+98h] BYREF __int64 v49; // [xsp+A0h] [xbp+A0h] BYREF __int64 **v50; // [xsp+A8h] [xbp+A8h] BYREF __int64 *v51; // [xsp+B0h] [xbp+B0h] BYREF __int64 v52; // [xsp+B8h] [xbp+B8h] void *v53; // [xsp+C0h] [xbp+C0h] BYREF char *v54; // [xsp+C8h] [xbp+C8h] unsigned __int64 v55; // [xsp+D0h] [xbp+D0h] __int64 v56; // [xsp+D8h] [xbp+D8h] BYREF __int64 v57; // [xsp+E0h] [xbp+E0h] void *v58; // [xsp+E8h] [xbp+E8h] __int64 v59; // [xsp+F0h] [xbp+F0h] BYREF __int64 v60; // [xsp+F8h] [xbp+F8h] void *v61; // [xsp+100h] [xbp+100h] v2 = (char *)this + 896; v3 = *((_QWORD *)this + 113); if ( v3 ) { std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (__int64)v2, *(void **)v3); std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (__int64)v2, *(void **)(v3 + 8)); if ( (*(_BYTE *)(v3 + 32) & 1) != 0 ) operator delete(*(void **)(v3 + 48)); operator delete((void *)v3); } v4 = *((_QWORD *)this + 103); v5 = *((_QWORD *)this + 104); *((_QWORD *)this + 114) = 0; *((_QWORD *)this + 112) = (char *)this + 904; *((_QWORD *)this + 113) = 0; v6 = 0; v51 = nullptr; v52 = 0; v50 = &v51; if ( !((v5 - v4) >> 7) ) goto LABEL_35; do { v7 = (_QWORD *)(v4 + (v6 << 7)); v8 = *((_BYTE *)v7 + 24) >> 1; if ( (v7[3] & 1) != 0 ) v8 = v7[4]; if ( v8 ) { v20 = std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::__find_equal( (__int64)&v50, &v49, (__int64)(v7 + 6)); v21 = *v20; v22 = v20; if ( !*v20 ) { v21 = operator new(0x50u); std::string::basic_string(v21 + 32, v7 + 6); v39 = v49; *(_QWORD *)v21 = 0; *(_QWORD *)(v21 + 56) = v21 + 64; v40 = (__int64 *)v21; *(_QWORD *)(v21 + 16) = v39; *(_QWORD *)(v21 + 64) = 0; *(_QWORD *)(v21 + 72) = 0; *(_QWORD *)(v21 + 8) = 0; *v22 = v21; if ( *v50 ) { v50 = (__int64 **)*v50; v40 = (__int64 *)*v22; } std::__tree_balance_after_insert *>(v51, v40); ++v52; } v23 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__find_equal( v21 + 56, &v53, (__int64)(v7 + 3)); v24 = (__int64 *)*v23; v25 = v23; v26 = (__int64 *)(*v23 + 56); if ( !*v23 ) { v24 = (__int64 *)operator new(0x50u); std::string::basic_string((unsigned __int64)(v24 + 4), v7 + 3); v24[7] = 0; v37 = v24; v24[8] = 0; v24[9] = 0; v24[2] = (__int64)v53; *v24 = 0; v24[1] = 0; *v25 = (__int64)v24; v38 = **(_QWORD **)(v21 + 56); if ( v38 ) { *(_QWORD *)(v21 + 56) = v38; v37 = (__int64 *)*v25; } std::__tree_balance_after_insert *>(*(__int64 **)(v21 + 64), v37); v26 = v24 + 7; ++*(_QWORD *)(v21 + 72); } v27 = *(_BYTE *)v26 >> 1; if ( (*(_BYTE *)v26 & 1) != 0 ) v27 = v26[1]; v28 = v7 + 12; if ( v27 ) { v28 = v7 + 12; v29 = *((_BYTE *)v7 + 96) >> 1; if ( (v7[12] & 1) != 0 ) v29 = v7[13]; v30 = *(_BYTE *)v26 >> 1; if ( (*(_BYTE *)v26 & 1) != 0 ) v30 = v26[1]; v31 = (char *)v7 + 97; if ( (v7[12] & 1) != 0 ) v31 = (const void *)v7[14]; v32 = (char *)v24 + 57; if ( (*(_BYTE *)v26 & 1) != 0 ) v32 = (const void *)v26[2]; if ( v30 > v29 ) v33 = v29; else v33 = v30; if ( v33 && (v46 = v26, v34 = memcmp(v31, v32, v33), v26 = v46, v34) ) { if ( v34 >= 0 ) { LABEL_55: v4 = *((_QWORD *)this + 103); v5 = *((_QWORD *)this + 104); goto LABEL_9; } } else if ( v29 >= v30 ) { goto LABEL_55; } } if ( v26 != v28 ) { if ( (*(_BYTE *)v28 & 1) != 0 ) { v35 = (const void *)v28[2]; v36 = v28[1]; } else { v35 = (char *)v7 + 97; v36 = *(_BYTE *)v28 >> 1; } std::string::assign(v26, v35, v36); } goto LABEL_55; } LABEL_9: ++v6; } while ( v6 < (v5 - v4) >> 7 ); v43 = v50; if ( v50 != &v51 ) { while ( (unsigned __int64)v43[9] <= 1 ) { LABEL_34: v43 = (__int64 **)std::__tree_next *>(v43); if ( v43 == &v51 ) goto LABEL_35; } v53 = nullptr; v9 = v43 + 8; v54 = nullptr; v55 = 0; v10 = (__int64 **)v43[7]; if ( v10 == v43 + 8 ) { v41 = nullptr; v42 = nullptr; LABEL_24: v47[0] = 0; std::__sort,std::pair> &,std::pair*>( v42, v41, (__int64)v47); v14 = (char *)v53; if ( 0xAAAAAAAAAAAAAAABLL * ((v54 - (_BYTE *)v53) >> 4) ) { v15 = 0; v16 = 0; do { v48 = &v14[v15 + 24]; *(_DWORD *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>( (__int64)v2, (__int64)v48, (__int64)&unk_119DDF0, (_QWORD **)&v48) + 56) = ++v16; v15 += 48; v14 = (char *)v53; } while ( v16 < 0xAAAAAAAAAAAAAAABLL * ((v54 - (_BYTE *)v53) >> 4) ); } if ( v14 ) { while ( 1 ) { v17 = v54; if ( v14 == v54 ) break; while ( 1 ) { v18 = v17 - 48; v54 = v17 - 48; if ( (*(v17 - 24) & 1) != 0 ) { v45 = v14; operator delete(*((void **)v17 - 1)); v14 = v45; } if ( (*v18 & 1) == 0 ) break; v44 = v14; operator delete(*((void **)v18 + 2)); v14 = v44; v17 = v54; if ( v44 == v54 ) goto LABEL_33; } } LABEL_33: operator delete(v53); } goto LABEL_34; } while ( 2 ) { while ( 2 ) { std::string::basic_string((unsigned __int64)&v56, v10 + 7); std::string::basic_string((unsigned __int64)&v59, v10 + 4); v13 = v54; if ( (unsigned __int64)v54 < v55 ) { if ( v54 ) { v11 = v57; *(_QWORD *)v54 = v56; *((_QWORD *)v13 + 1) = v11; *((_QWORD *)v13 + 2) = v58; v56 = 0; v12 = v60; v57 = 0; v58 = nullptr; *((_QWORD *)v13 + 3) = v59; *((_QWORD *)v13 + 4) = v12; *((_QWORD *)v13 + 5) = v61; v59 = 0; v13 = v54; v60 = 0; v61 = nullptr; } v54 = v13 + 48; if ( (v59 & 1) != 0 ) goto LABEL_21; } else { std::vector>::__push_back_slow_path>( (void ***)&v53, &v56); if ( (v59 & 1) != 0 ) { LABEL_21: operator delete(v61); if ( (v56 & 1) == 0 ) { LABEL_18: v10 = (__int64 **)std::__tree_next *>(v10); if ( v9 == v10 ) goto LABEL_23; continue; } goto LABEL_22; } } break; } if ( (v56 & 1) == 0 ) goto LABEL_18; LABEL_22: operator delete(v58); v10 = (__int64 **)std::__tree_next *>(v10); if ( v9 == v10 ) { LABEL_23: v42 = (unsigned __int8 *)v53; v41 = v54; goto LABEL_24; } continue; } } LABEL_35: std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::~__tree((__int64)&v50); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source