//
// SetColorIDPopup::onSelectSpecialColor from 0x1403a6530 to 0x1403a659c (108 bytes)
//
// 2 xrefs:
// > SetColorIDPopup::init @ 0x1403a6423
// > ??> @ 0x1409237bc
//
// 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:31:19 +0000
//
__int64 __fastcall SetColorIDPopup::onSelectSpecialColor(__int64 a1, __int64 a2)
{
bool v3; // zf
__int64 v4; // rdx
__int64 v5; // rcx
__int64 v6; // rdi
__int64 v7; // rbx
unsigned int v8; // eax
v3 = a1 == 0;
v4 = a1 + 704;
v5 = *(unsigned int *)(a1 + 672);
if ( v3 )
v4 = 0;
v6 = GJSpecialColorSelect::create(v5, v4, 2);
v7 = *(_QWORD *)v6;
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
(*(void (__fastcall **)(__int64, _QWORD))(v7 + 64))(v6, v8);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1064LL))(v6);
}