//
// SetupGradientPopup::updateToggleItem from 0x1005f3280 to 0x1005f3385 (261 bytes)
//
// 1 xrefs:
// > ??> @ 0x10097b2a0
//
// 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 __fastcall SetupGradientPopup::updateToggleItem(SetupGradientPopup *a1, int a2, bool a3)
{
const char *v4; // rcx
const char *v5; // rcx
const char *v6; // r13
const char *v7; // r15
unsigned int v8; // r14d
const char *v9; // rsi
__int64 v10; // rax
const char *v11; // [rsp+8h] [rbp-38h]
const char *v12; // [rsp+10h] [rbp-30h]
SetupTriggerPopup::updateToggleItem(a1, a2, a3);
if ( a2 == 207 && (unsigned int)sub_100720070(a1->m_gradientLabels) )
{
v4 = "R:";
if ( a3 )
v4 = "TR:";
v11 = v4;
v5 = "L:";
if ( a3 )
v5 = "TL:";
v12 = v5;
v6 = "D:";
if ( a3 )
v6 = "BR:";
v7 = "U:";
if ( a3 )
v7 = "BL:";
v8 = 0;
do
{
v10 = sub_1007200C0(a1->m_gradientLabels, v8);
v9 = v7;
switch ( v8 )
{
case 0u:
goto LABEL_13;
case 1u:
v9 = v6;
goto LABEL_13;
case 2u:
v9 = v12;
goto LABEL_13;
case 3u:
v9 = v11;
LABEL_13:
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v10 + 912LL))(v10, v9);
break;
default:
break;
}
++v8;
}
while ( v8 < (unsigned int)sub_100720070(a1->m_gradientLabels) );
}
}