//
// SetupGradientPopup::updateGradientLabels from 0x1006c5a40 to 0x1006c5b35 (245 bytes)
//
// 0 xrefs:
//
// 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 12:35:33 +0000
//
__int64 __fastcall SetupGradientPopup::updateGradientLabels(__int64 a1, char a2)
{
__int64 result; // rax
const char *v3; // rcx
const char *v4; // rcx
const char *v5; // r13
const char *v6; // r15
unsigned int v7; // r14d
const char *v8; // rsi
__int64 v9; // rax
const char *v10; // [rsp+8h] [rbp-38h]
const char *v11; // [rsp+10h] [rbp-30h]
result = sub_1007FEF90(*(_QWORD *)(a1 + 1048));
if ( (_DWORD)result )
{
v3 = "R:";
if ( a2 )
v3 = "TR:";
v10 = v3;
v4 = "L:";
if ( a2 )
v4 = "TL:";
v11 = v4;
v5 = "D:";
if ( a2 )
v5 = "BR:";
v6 = "U:";
if ( a2 )
v6 = "BL:";
v7 = 0;
do
{
v9 = sub_1007FEFE0(*(_QWORD *)(a1 + 1048), v7);
v8 = v6;
switch ( v7 )
{
case 0u:
goto LABEL_12;
case 1u:
v8 = v5;
goto LABEL_12;
case 2u:
v8 = v11;
goto LABEL_12;
case 3u:
v8 = v10;
LABEL_12:
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v9 + 928LL))(v9, v8);
break;
default:
break;
}
++v7;
result = sub_1007FEF90(*(_QWORD *)(a1 + 1048));
}
while ( v7 < (unsigned int)result );
}
return result;
}