//
// AutoBackupPopup::onSelectAll from 0x73eccc to 0x73ed6c (160 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:33 +0000
//
GJSelectionStrip **__fastcall AutoBackupPopup::onSelectAll(GJSelectionStrip **this, cocos2d::CCObject *a2, int a3)
{
GJSelectionStrip **v3; // r4
unsigned int v4; // r5
_BOOL4 v5; // r6
GJSelectionStrip *v6; // r2
GJSelectionStrip *v7; // r2
_DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = this;
v8[1] = a2;
v8[2] = a3;
v3 = this;
if ( *(this + 158) != *(this + 159) )
{
v4 = 0;
v5 = AutoBackupPopup::selectedCount((AutoBackupPopup *)this) == (*(this + 159) - *(this + 158)) >> 6;
std::__tree::destroy((int)(v3 + 170), v3[171]);
v3[172] = nullptr;
v3[170] = (GJSelectionStrip *)(v3 + 171);
v3[171] = nullptr;
while ( 1 )
{
v6 = v3[158];
if ( v4 >= (v3[159] - v6) >> 6 )
break;
if ( !v5 )
std::__tree::__emplace_unique_key_args(
(int)v8,
(int **)v3 + 170,
(unsigned __int8 *)v6 + 64 * v4,
(int)v6 + 64 * v4);
v7 = v3[173];
if ( v4 < (v3[174] - v7) >> 2 )
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)v7 + v4), !v5);
++v4;
}
return AutoBackupPopup::updateSelectUI(v3);
}
return this;
}