//
// ColorAction::isInUse from 0x1002c44f0 to 0x1002c453c (76 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::getNextColorChannel @ 0x1000c1067
// > EditorUI::pasteObjects @ 0x1005b69e2
//
// 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:28:06 +0000
//
bool __fastcall ColorAction::isInUse(__int64 a1)
{
int v1; // eax
unsigned int v2; // ecx
bool v3; // dl
bool result; // al
v1 = *(unsigned __int16 *)(a1 + 72);
v2 = v1 | (*(unsigned __int8 *)(a1 + 74) << 16);
v3 = (_WORD)v1 != 0xFFFF;
result = 1;
if ( !v3 && v2 >= 0xFF0000 && *(float *)(a1 + 96) == 1.0 && !*(_DWORD *)(a1 + 120) && !*(_BYTE *)(a1 + 84) )
return *(_DWORD *)(a1 + 88) > 0;
return result;
}