// // AutoBackupPopup::onSelectAll from 0x1400cc5f0 to 0x1400cc74f (351 bytes) // // 4 xrefs: // > AutoBackupPopup::init @ 0x1400c9fc3 // > @ 0x140891120 // > @ 0x140891154 // > @ 0x140914078 // // This function is hookable on this platform (idp: pc, 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 11:26:23 +0000 // unsigned __int64 __fastcall AutoBackupPopup::onSelectAll(__int64 a1) { __int64 v2; // rcx unsigned __int64 result; // rax int v4; // ebp __int64 v5; // rsi __int64 v6; // r9 __int64 v7; // r8 unsigned __int64 v8; // rdi __int64 v9; // rcx __int64 v10; // rdx __int64 v11; // r14 __int64 v12; // rcx __int64 v13; // rcx __int64 v14; // rcx _BYTE v15[16]; // [rsp+20h] [rbp-28h] BYREF v2 = *(_QWORD *)(a1 + 864); result = *(_QWORD *)(a1 + 856); if ( result != v2 ) { v4 = *(_DWORD *)(a1 + 960); v5 = (__int64)(v2 - result) / 168; sub_1400CF730(a1 + 952); v7 = *(_QWORD *)(a1 + 856); v8 = 0; v9 = *(_QWORD *)(a1 + 864) - v7; result = (unsigned __int64)(v9 + ((unsigned __int128)(v9 * (__int128)(__int64)0xC30C30C30C30C30DuLL) >> 64)) >> 63; v10 = v9 / 168; if ( v9 / 168 ) { v11 = 0; do { if ( v4 != (_DWORD)v5 ) sub_1400CF4B0(a1 + 952, v15, v11 + v7); v12 = *(_QWORD *)(a1 + 968); if ( v8 < (*(_QWORD *)(a1 + 976) - v12) >> 3 ) { LOBYTE(v10) = v4 != (_DWORD)v5; CCMenuItemToggler::toggle(*(_QWORD *)(v12 + 8 * v8), v10); } v7 = *(_QWORD *)(a1 + 856); ++v8; v13 = *(_QWORD *)(a1 + 864) - v7; v11 += 168; result = (unsigned __int64)(v13 + ((unsigned __int128)(v13 * (__int128)(__int64)0xC30C30C30C30C30DuLL) >> 64)) >> 63; v10 = v13 / 168; } while ( v8 < v13 / 168 ); } v14 = *(_QWORD *)(a1 + 992); if ( v14 ) return GJSelectionStrip::setCount(v14, *(unsigned int *)(a1 + 960), v7, v6); } return result; }