{"type": "func", "start": 4295022132, "end": 4295022220, "name": "ColorAction::isInUse", "pseudocode": "// \n// ColorAction::isInUse from 0x10000d634 to 0x10000d68c (88 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x1003603dc\n// > EditorUI::pasteObjects @ 0x1003eca70\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall ColorAction::isInUse(ColorAction *a1)\n{\n  bool v1; // zf\n\n  v1 = (*(unsigned __int16 *)&a1->m_fromColor.r | (a1->m_fromColor.b << 16)) >= 0xFF0000u\n    && *(unsigned __int16 *)&a1->m_fromColor.r == 0xFFFF;\n  return !v1 || a1->m_fromOpacity != 1.0 || a1->m_copyID || a1->m_blending || a1->m_playerColor > 0;\n}", "assembly": "; \n; ColorAction::isInUse from 0x10000d634 to 0x10000d68c (88 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x1003603dc\n; > EditorUI::pasteObjects @ 0x1003eca70\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDRB            W8, [X0,#0x4A]                                         ; +0x0, 0x10000d634\nLDRH            W9, [X0,#0x48]                                         ; +0x4, 0x10000d638\nORR             W8, W9, W8,LSL#16                                      ; +0x8, 0x10000d63c\nAND             W9, W8, #0xFFFF                                        ; +0xc, 0x10000d640\nCMP             W8, #0xFF0,LSL#12                                      ; +0x10, 0x10000d644\nMOV             W8, #0xFFFF                                            ; +0x14, 0x10000d648\nCCMP            W9, W8, #0, CS                                         ; +0x18, 0x10000d64c\nB.NE            loc_10000D674                                          ; +0x1c, 0x10000d650\nLDR             S0, [X0,#0x60]                                         ; +0x20, 0x10000d654\nFMOV            S1, #1.0                                               ; +0x24, 0x10000d658\nFCMP            S0, S1                                                 ; +0x28, 0x10000d65c\nB.NE            loc_10000D674                                          ; +0x2c, 0x10000d660\nLDR             W8, [X0,#0x78]                                         ; +0x30, 0x10000d664\nCBNZ            W8, loc_10000D674                                      ; +0x34, 0x10000d668\nLDRB            W8, [X0,#0x54]                                         ; +0x38, 0x10000d66c\nTBZ             W8, #0, loc_10000D67C                                  ; +0x3c, 0x10000d670\nMOV             W0, #1                                                 ; +0x40, 0x10000d674\nRET                                                                    ; +0x44, 0x10000d678\nLDR             W8, [X0,#0x58]                                         ; +0x48, 0x10000d67c\nCMP             W8, #0                                                 ; +0x4c, 0x10000d680\nCSET            W0, GT                                                 ; +0x50, 0x10000d684\nRET                                                                    ; +0x54, 0x10000d688", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x1003603dc", "EditorUI::pasteObjects @ 0x1003eca70"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}