//
// SetupPulsePopup::updateGroupSecondaryOnly from 0x1405d1020 to 0x1405d10aa (138 bytes)
//
// 5 xrefs:
// > SetupPulsePopup::onGroupMainOnly @ 0x1405d0e6d
// > SetupPulsePopup::onGroupSecondaryOnly @ 0x1405d0f7d
// > ??> @ 0x1408e0ff0
// > ??> @ 0x1408e1000
// > ??> @ 0x14092e6f4
//
// 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:34:55 +0000
//
void __fastcall SetupPulsePopup::updateGroupSecondaryOnly(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v3; // rcx
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
*(_BYTE *)(v2 + 1650) = *(_BYTE *)(a1 + 1249);
}
else
{
v3 = *(cocos2d::CCArray **)(a1 + 688);
if ( v3 )
{
v4 = 0;
if ( cocos2d::CCArray::count(v3) )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v4++);
*((_BYTE *)v5 + 1650) = *(_BYTE *)(a1 + 1249);
}
while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)) );
}
}
}
}