{"type": "func", "start": 4297892016, "end": 4297892057, "name": "GJEffectManager::colorExists", "pseudocode": "// \n// GJEffectManager::colorExists from 0x1002ca0b0 to 0x1002ca0d9 (41 bytes)\n// \n// 12 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x1000c1041\n// > CustomizeObjectLayer::updateColorSprite @ 0x1001daa6a\n// > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1ba\n// > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3c7\n// > LevelSettingsLayer::updateColorSprites @ 0x100257bc6\n// > LevelSettingsLayer::updateColorSprites @ 0x100257c52\n// > LevelSettingsLayer::updateColorSprites @ 0x100257cde\n// > LevelSettingsLayer::updateColorSprites @ 0x100257d6a\n// > LevelSettingsLayer::updateColorSprites @ 0x100257df6\n// > LevelSettingsLayer::updateColorSprites @ 0x100257e64\n// > LevelSettingsLayer::updateColorSprite @ 0x10025902e\n// > EditorUI::spriteFromObjectString @ 0x10063896c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:28:09 +0000\n// \n\nbool __fastcall GJEffectManager::colorExists(__int64 a1, int a2)\n{\n  int v2; // eax\n  __int64 v3; // rcx\n\n  v2 = 0;\n  if ( a2 > 0 )\n    v2 = a2;\n  v3 = 1101;\n  if ( v2 < 1101 )\n    v3 = (unsigned int)v2;\n  return *(_QWORD *)(*(_QWORD *)(a1 + 640) + 8 * v3) != 0;\n}", "assembly": "; \n; GJEffectManager::colorExists from 0x1002ca0b0 to 0x1002ca0d9 (41 bytes)\n; \n; 12 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x1000c1041\n; > CustomizeObjectLayer::updateColorSprite @ 0x1001daa6a\n; > GJColorSetupLayer::updateSpriteColors @ 0x1001ef1ba\n; > GJColorSetupLayer::updateSpriteColor @ 0x1001ef3c7\n; > LevelSettingsLayer::updateColorSprites @ 0x100257bc6\n; > LevelSettingsLayer::updateColorSprites @ 0x100257c52\n; > LevelSettingsLayer::updateColorSprites @ 0x100257cde\n; > LevelSettingsLayer::updateColorSprites @ 0x100257d6a\n; > LevelSettingsLayer::updateColorSprites @ 0x100257df6\n; > LevelSettingsLayer::updateColorSprites @ 0x100257e64\n; > LevelSettingsLayer::updateColorSprite @ 0x10025902e\n; > EditorUI::spriteFromObjectString @ 0x10063896c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:28:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002ca0b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002ca0b1\nxor     eax, eax                                                       ; +0x4, 0x1002ca0b4\ntest    esi, esi                                                       ; +0x6, 0x1002ca0b6\ncmovg   eax, esi                                                       ; +0x8, 0x1002ca0b8\ncmp     eax, 44Dh                                                      ; +0xb, 0x1002ca0bb\nmov     ecx, 44Dh                                                      ; +0x10, 0x1002ca0c0\ncmovl   ecx, eax                                                       ; +0x15, 0x1002ca0c5\nmov     rax, [rdi+280h]                                                ; +0x18, 0x1002ca0c8\ncmp     qword ptr [rax+rcx*8], 0                                       ; +0x1f, 0x1002ca0cf\nsetnz   al                                                             ; +0x24, 0x1002ca0d4\npop     rbp                                                            ; +0x27, 0x1002ca0d7\nretn                                                                   ; +0x28, 0x1002ca0d8", "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"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}