{"type": "func", "start": 4297868528, "end": 4297868604, "name": "ColorAction::isInUse", "pseudocode": "// \n// ColorAction::isInUse from 0x1002c44f0 to 0x1002c453c (76 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x1000c1067\n// > EditorUI::pasteObjects @ 0x1005b69e2\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:06 +0000\n// \n\nbool __fastcall ColorAction::isInUse(__int64 a1)\n{\n  int v1; // eax\n  unsigned int v2; // ecx\n  bool v3; // dl\n  bool result; // al\n\n  v1 = *(unsigned __int16 *)(a1 + 72);\n  v2 = v1 | (*(unsigned __int8 *)(a1 + 74) << 16);\n  v3 = (_WORD)v1 != 0xFFFF;\n  result = 1;\n  if ( !v3 && v2 >= 0xFF0000 && *(float *)(a1 + 96) == 1.0 && !*(_DWORD *)(a1 + 120) && !*(_BYTE *)(a1 + 84) )\n    return *(_DWORD *)(a1 + 88) > 0;\n  return result;\n}", "assembly": "; \n; ColorAction::isInUse from 0x1002c44f0 to 0x1002c453c (76 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x1000c1067\n; > EditorUI::pasteObjects @ 0x1005b69e2\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:06 +0000\n; \nmovzx   eax, word ptr [rdi+48h]                                        ; +0x0, 0x1002c44f0\nmovzx   ecx, byte ptr [rdi+4Ah]                                        ; +0x4, 0x1002c44f4\nshl     ecx, 10h                                                       ; +0x8, 0x1002c44f8\nor      ecx, eax                                                       ; +0xb, 0x1002c44fb\ncmp     ax, 0FFFFh                                                     ; +0xd, 0x1002c44fd\nsetnz   dl                                                             ; +0x11, 0x1002c4501\ncmp     ecx, 0FF0000h                                                  ; +0x14, 0x1002c4504\nsetb    cl                                                             ; +0x1a, 0x1002c450a\nmov     al, 1                                                          ; +0x1d, 0x1002c450d\nor      cl, dl                                                         ; +0x1f, 0x1002c450f\njnz     short locret_1002C453B                                         ; +0x21, 0x1002c4511\npush    rbp                                                            ; +0x23, 0x1002c4513\nmov     rbp, rsp                                                       ; +0x24, 0x1002c4514\nmovss   xmm0, dword ptr [rdi+60h]                                      ; +0x27, 0x1002c4517\nucomiss xmm0, cs:alpha                                                 ; +0x2c, 0x1002c451c\njnz     short loc_1002C453A                                            ; +0x33, 0x1002c4523\njp      short loc_1002C453A                                            ; +0x35, 0x1002c4525\ncmp     dword ptr [rdi+78h], 0                                         ; +0x37, 0x1002c4527\njnz     short loc_1002C453A                                            ; +0x3b, 0x1002c452b\ncmp     byte ptr [rdi+54h], 0                                          ; +0x3d, 0x1002c452d\njnz     short loc_1002C453A                                            ; +0x41, 0x1002c4531\ncmp     dword ptr [rdi+58h], 0                                         ; +0x43, 0x1002c4533\nsetnle  al                                                             ; +0x47, 0x1002c4537\npop     rbp                                                            ; +0x4a, 0x1002c453a\nretn                                                                   ; +0x4b, 0x1002c453b", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x1000c1067", "EditorUI::pasteObjects @ 0x1005b69e2"], "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"}