//
// SetupPulsePopup::updateGroupSecondaryOnly from 0x5ebfe0 to 0x5ec020 (64 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::onGroupMainOnly @ 0x5ec03e
// > SetupPulsePopup::onGroupSecondaryOnly @ 0x5ec08c
//
// 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:54:23 +0000
//
unsigned int __fastcall SetupPulsePopup::updateGroupSecondaryOnly(unsigned int this)
{
unsigned int v1; // r5
unsigned int v2; // r4
int v3; // r0
v1 = this;
v2 = *(_DWORD *)(this + 528);
if ( v2 )
{
*(_BYTE *)(v2 + 1454) = *(_BYTE *)(this + 837);
}
else if ( *(_DWORD *)(this + 532) )
{
while ( 1 )
{
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 532));
if ( v2 >= this )
break;
v3 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v1 + 532), v2++);
*(_BYTE *)(v3 + 1454) = *(_BYTE *)(v1 + 837);
}
}
return this;
}