//
// GJEffectManager::colorExists from 0x1002ca0b0 to 0x1002ca0d9 (41 bytes)
//
// 12 xrefs:
// > LevelEditorLayer::getNextColorChannel @ 0x1000c1041
// > CustomizeObjectLayer::updateColorSprite @ 0x1001daa6a
// > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1ba
// > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3c7
// > LevelSettingsLayer::updateColorSprites @ 0x100257bc6
// > LevelSettingsLayer::updateColorSprites @ 0x100257c52
// > LevelSettingsLayer::updateColorSprites @ 0x100257cde
// > LevelSettingsLayer::updateColorSprites @ 0x100257d6a
// > LevelSettingsLayer::updateColorSprites @ 0x100257df6
// > LevelSettingsLayer::updateColorSprites @ 0x100257e64
// > LevelSettingsLayer::updateColorSprite @ 0x10025902e
// > EditorUI::spriteFromObjectString @ 0x10063896c
//
// 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:09 +0000
//
bool __fastcall GJEffectManager::colorExists(__int64 a1, int a2)
{
int v2; // eax
__int64 v3; // rcx
v2 = 0;
if ( a2 > 0 )
v2 = a2;
v3 = 1101;
if ( v2 < 1101 )
v3 = (unsigned int)v2;
return *(_QWORD *)(*(_QWORD *)(a1 + 640) + 8 * v3) != 0;
}