//
// SetupGradientPopup::updateGradientLabels from 0x1405b72d0 to 0x1405b73d1 (257 bytes)
//
// 4 xrefs:
// > SetupGradientPopup::updateToggleItem @ 0x1405b72a8
// > ??> @ 0x1408dfb9c
// > ??> @ 0x1408dfbac
// > ??> @ 0x14092dd04
//
// 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:44 +0000
//
unsigned int __fastcall SetupGradientPopup::updateGradientLabels(__int64 a1, char a2)
{
unsigned int v4; // ebx
unsigned int result; // eax
struct cocos2d::CCObject *v6; // rax
const char *v7; // rdx
v4 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1032));
if ( result )
{
while ( 1 )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1032), v4);
if ( !v4 )
{
v7 = "U:";
if ( a2 )
v7 = (const char *)&unk_1407F3174;
goto LABEL_17;
}
if ( v4 == 1 )
{
v7 = "D:";
if ( a2 )
v7 = "BR:";
goto LABEL_17;
}
if ( v4 == 2 )
break;
if ( v4 == 3 )
{
v7 = "R:";
if ( a2 )
v7 = "TR:";
LABEL_17:
(**((void (__fastcall ***)(__int64, const char *))v6 + 45))((__int64)v6 + 360, v7);
}
++v4;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1032));
if ( v4 >= result )
return result;
}
v7 = "L:";
if ( a2 )
v7 = "TL:";
goto LABEL_17;
}
return result;
}