//
// SetupGradientPopup::updateGradientLabels from 0xb30668 to 0xb30794 (300 bytes)
//
// 3 xrefs:
// > SetupGradientPopup::updateToggleItem @ 0xb307e4
// > SetupGradientPopup::init @ 0xb30f84
// > ??> @ 0x61348
//
// This function is hookable on this platform (idp: arm, 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 13:01:43 +0000
//
__int64 __fastcall SetupGradientPopup::updateGradientLabels(cocos2d::CCArray **this, unsigned __int8 a2)
{
unsigned int v3; // w19
int v4; // w21
__int64 result; // x0
__int64 v6; // x0
void (*v7)(void); // x2
const char *v8; // x1
v3 = 0;
v4 = a2;
result = cocos2d::CCArray::count(*(this + 131));
if ( (_DWORD)result )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 131), v3);
switch ( v3 )
{
case 0u:
v7 = *(void (**)(void))(*(_QWORD *)v6 + 928LL);
goto LABEL_4;
case 1u:
v7 = *(void (**)(void))(*(_QWORD *)v6 + 928LL);
goto LABEL_4;
case 2u:
v7 = *(void (**)(void))(*(_QWORD *)v6 + 928LL);
LABEL_4:
v7();
break;
case 3u:
if ( v4 )
v8 = "TR:";
else
v8 = "R:";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 928LL))(v6, v8);
break;
default:
break;
}
++v3;
result = cocos2d::CCArray::count(*(this + 131));
}
while ( v3 < (unsigned int)result );
}
return result;
}