//
// sub_14012CC90 from 0x14012cc90 to 0x14012ccda (74 bytes)
//
// 1 xrefs:
// > ColorSelectPopup::hexToColor @ 0x14012b152
//
// 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:27:01 +0000
//
__int64 __fastcall sub_14012CC90(__int64 *a1, __int64 a2, char *a3)
{
__int64 v3; // r9
char *v4; // rax
char v5; // r8
int v6; // ecx
v3 = *a1;
*(_DWORD *)(a2 + 8) = 0;
*(_QWORD *)(a2 + 16) = v3;
v4 = *(char **)(v3 + 8);
*(_QWORD *)a2 = v4;
if ( !v4[25] )
{
v5 = *a3;
do
{
*(_QWORD *)a2 = v4;
if ( v4[28] >= v5 )
{
*(_QWORD *)(a2 + 16) = v4;
v6 = 1;
}
else
{
v6 = 0;
v4 += 16;
}
v4 = *(char **)v4;
*(_DWORD *)(a2 + 8) = v6;
}
while ( !v4[25] );
}
return a2;
}