//
// AutoBackupPopup::onToggleRow from 0x73f570 to 0x73f5dc (108 bytes)
//
// 0 xrefs:
//
// 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:34 +0000
//
int __fastcall AutoBackupPopup::onToggleRow(AutoBackupPopup *this, cocos2d::CCObject *a2)
{
int result; // r0
int v5; // r3
unsigned __int8 *v6; // r4
int v7; // r0
_BOOL4 v8; // r5
_DWORD v9[2]; // [sp+0h] [bp-8h] BYREF
v9[0] = this;
v9[1] = a2;
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( result >= 0 )
{
v5 = *((_DWORD *)this + 158);
if ( result < (*((_DWORD *)this + 159) - v5) >> 6 )
{
v6 = (unsigned __int8 *)(v5 + (result << 6));
v7 = std::__tree::__count_unique((int)this + 680, v6);
v8 = v7 == 0;
if ( v7 )
std::__tree::__erase_unique((int **)this + 170, v6);
else
std::__tree::__emplace_unique_key_args(
(int)v9,
(int **)this + 170,
v6,
(int)v6);
CCMenuItemToggler::toggle(a2, v8);
return (int)AutoBackupPopup::updateSelectUI((GJSelectionStrip **)this);
}
}
return result;
}