//
// SetupGradientPopup::updateGradientLabels from 0x9f9f7c to 0x9fa0a8 (300 bytes)
//
// 3 xrefs:
// > SetupGradientPopup::updateToggleItem @ 0x9fa0f8
// > SetupGradientPopup::init @ 0x9fa8f4
// > ??> @ 0x44448
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupGradientPopup::updateGradientLabels(SetupGradientPopup *a1, bool a2)
{
unsigned int v3; // w19
_BOOL4 i; // w21
__int64 v5; // x0
void (*v6)(void); // x2
const char *v7; // x1
v3 = 0;
for ( i = a2; v3 < (unsigned int)cocos2d::CCArray::count(a1->m_gradientLabels); ++v3 )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gradientLabels, v3);
switch ( v3 )
{
case 0u:
v6 = *(void (**)(void))(*(_QWORD *)v5 + 912LL);
goto LABEL_4;
case 1u:
v6 = *(void (**)(void))(*(_QWORD *)v5 + 912LL);
goto LABEL_4;
case 2u:
v6 = *(void (**)(void))(*(_QWORD *)v5 + 912LL);
LABEL_4:
v6();
break;
case 3u:
if ( i )
v7 = "TR:";
else
v7 = "R:";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v5 + 912LL))(v5, v7);
break;
default:
continue;
}
}
}