//
// SetupPulsePopup::onSelectSpecialTargetID from 0x1405d1100 to 0x1405d114e (78 bytes)
//
// 2 xrefs:
// > SetupPulsePopup::init @ 0x1405ce57c
// > ??> @ 0x14092e724
//
// 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:34:55 +0000
//
__int64 __fastcall SetupPulsePopup::onSelectSpecialTargetID(__int64 a1)
{
__int64 v1; // rdx
bool v2; // zf
unsigned int v3; // ecx
_QWORD *v4; // rbx
v1 = a1 + 1008;
v2 = a1 == 0;
v3 = *(_DWORD *)(a1 + 1252);
if ( v2 )
v1 = 0;
v4 = GJSpecialColorSelect::create(v3, v1, 0);
(*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 64LL))(v4, 6);
return (*(__int64 (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);
}