// // AutoBackupPopup::onToggleRow from 0x1400cc500 to 0x1400cc5ea (234 bytes) // // 4 xrefs: // > AutoBackupPopup::buildRows @ 0x1400cb0c8 // > @ 0x1408910ec // > @ 0x1408910fc // > @ 0x140914054 // // 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 // __int64 __fastcall AutoBackupPopup::onToggleRow(__int64 a1, __int64 a2) { __int64 result; // rax __int64 v5; // rcx __int64 v6; // r9 __int64 v7; // r8 __int64 v8; // rsi __int64 v9; // rax __int64 v10; // rcx bool v11; // r14 __int64 v12; // r8 __int64 v13; // r9 __int64 v14; // rcx _BYTE v15[24]; // [rsp+20h] [rbp-18h] BYREF result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v5 = (int)result; if ( (int)result >= 0 ) { v6 = *(_QWORD *)(a1 + 856); v7 = *(_QWORD *)(a1 + 864) - v6; result = (unsigned __int64)(v7 + ((unsigned __int128)(v7 * (__int128)(__int64)0xC30C30C30C30C30DuLL) >> 64)) >> 63; if ( (int)v5 < (int)(v7 / 168) ) { v8 = v6 + 168 * v5; v9 = sub_1400CF6A0(a1 + 952, v8, v7, v6); v10 = a1 + 952; v11 = v9 == 0; if ( v9 ) sub_1400CF7C0(v10, v8); else sub_1400CF4B0(v10, v15, v8); result = CCMenuItemToggler::toggle(a2, v11); v14 = *(_QWORD *)(a1 + 992); if ( v14 ) return GJSelectionStrip::setCount(v14, *(unsigned int *)(a1 + 960), v12, v13); } } return result; }