//
// EditorUI::colorSelectClosed_1 from 0x100019e00 to 0x100019f41 (321 bytes)
//
// 2 xrefs:
// > sub_100019FE0 @ 0x100019fec
// > ??> @ 0x100ab5130
//
// 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:18:55 +0000
//
unsigned int *__fastcall EditorUI::colorSelectClosed_1(_QWORD *a1, unsigned int *a2)
{
__int64 v3; // rax
unsigned int *result; // rax
char v5; // r14
__int64 v6; // rdi
_QWORD *v7; // r15
unsigned __int64 v8; // r12
_QWORD *v9; // r15
unsigned __int64 v10; // r12
v3 = a1[193];
if ( (unsigned int *)v3 == a2 )
{
v5 = *(_BYTE *)(v3 + 857);
a1[193] = 0;
v6 = a1[187];
if ( !v6 )
{
result = (unsigned int *)sub_1007FEF90(a1[112]);
if ( (_DWORD)result )
{
result = (unsigned int *)a1[112];
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v9 = *((_QWORD **)result + 2);
v10 = (unsigned __int64)&v9[*result - 1];
do
{
if ( !*v9 )
break;
result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v9 + 1528LL))(
*v9,
65280);
++v9;
}
while ( (unsigned __int64)v9 <= v10 );
}
}
}
goto LABEL_13;
}
}
else
{
result = (unsigned int *)a1[194];
if ( result != a2 )
return result;
v5 = *((_BYTE *)result + 730);
a1[194] = 0;
v6 = a1[187];
if ( !v6 )
{
result = (unsigned int *)sub_1007FEF90(a1[112]);
if ( (_DWORD)result )
{
result = (unsigned int *)a1[112];
if ( result )
{
result = *((unsigned int **)result + 7);
if ( *result )
{
v7 = *((_QWORD **)result + 2);
v8 = (unsigned __int64)&v7[*result - 1];
do
{
if ( !*v7 )
break;
result = (unsigned int *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v7 + 1528LL))(
*v7,
65280);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
}
goto LABEL_13;
}
}
result = (unsigned int *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 1528LL))(v6, 65280);
LABEL_13:
if ( v5 )
return (unsigned int *)EditorUI::updateEditColorButton(a1);
return result;
}