//
// SetupGradientPopup::updateGradientLabels from 0x140421de0 to 0x140421ee1 (257 bytes)
//
// 4 xrefs:
// > SetupGradientPopup::updateToggleItem @ 0x140421dbe
// > ??> @ 0x1406a0648
// > ??> @ 0x1406a0658
// > ??> @ 0x1406d9590
//
// 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 v4; // ebx
struct cocos2d::CCObject *v5; // rax
const char *v6; // rdx
v4 = 0;
if ( cocos2d::CCArray::count(a1->m_gradientLabels) )
{
while ( 1 )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gradientLabels, v4);
if ( !v4 )
{
v6 = "U:";
if ( a2 )
v6 = "BL:";
goto LABEL_17;
}
if ( v4 == 1 )
{
v6 = "D:";
if ( a2 )
v6 = "BR:";
goto LABEL_17;
}
if ( v4 == 2 )
break;
if ( v4 == 3 )
{
v6 = (const char *)&unk_14053FEC0;
if ( a2 )
v6 = "TR:";
LABEL_17:
(**(void (__fastcall ***)(__int64, const char *))&v5[6].m_uAutoReleaseCount)(
(__int64)&v5[6].m_uAutoReleaseCount,
v6);
}
if ( ++v4 >= cocos2d::CCArray::count(a1->m_gradientLabels) )
return;
}
v6 = "L:";
if ( a2 )
v6 = "TL:";
goto LABEL_17;
}
}