//
// AutoBackupPopup::onToggleRow from 0xc59240 to 0xc59354 (276 bytes)
//
// 3 xrefs:
// > ??> @ 0xf9880
// > AutoBackupPopup::buildRows @ 0xc57e68
// > ??> @ 0x1547958
//
// 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:13 +0000
//
__int64 __fastcall AutoBackupPopup::onToggleRow(AutoBackupPopup *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
__int64 v5; // x19
_QWORD *v6; // x19
_BOOL4 v7; // w22
__int64 *v8; // x0
__int64 *v9; // x19
_QWORD *v10; // x0
__int64 *v11; // x0
result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (result & 0x80000000) == 0 )
{
v5 = *((_QWORD *)this + 106);
if ( (int)result < (int)((*((_QWORD *)this + 107) - v5) >> 7) )
{
v6 = (_QWORD *)(v5 + ((__int64)(int)result << 7));
v7 = std::__tree::__count_unique((__int64)this + 944, (__int64)v6) == 0;
if ( v7 )
{
std::__tree::__emplace_unique_key_args(
(__int64)this + 944,
(__int64)v6,
v6);
}
else
{
v8 = std::__tree::find((__int64)this + 944, (__int64)v6);
v9 = v8;
if ( v8 != (__int64 *)((char *)this + 952) )
{
v10 = std::__tree_next *>(v8);
if ( v9 == *((__int64 **)this + 118) )
*((_QWORD *)this + 118) = v10;
v11 = *((__int64 **)this + 119);
--*((_QWORD *)this + 120);
std::__tree_remove *>(v11, v9);
std::string::~string((__int64)(v9 + 4));
operator delete(v9);
}
}
CCMenuItemToggler::toggle(a2, v7);
return (__int64)AutoBackupPopup::updateSelectUI((GJSelectionStrip **)this);
}
}
return result;
}