{"type": "func", "start": 9059620, "end": 9059732, "name": "ColorAction::isInUse", "pseudocode": "// \n// ColorAction::isInUse from 0x8a3d24 to 0x8a3d94 (112 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::getNextColorChannel @ 0x672cf0\n// > EditorUI::pasteObjects @ 0x6bf488\n// > <???> @ 0x3bbf8\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 ColorAction::isInUse(ColorAction *a1)\n{\n  bool v1; // w1\n\n  v1 = a1->m_fromColor.b == 255 && a1->m_fromColor.r == 255 && a1->m_fromColor.g == 255;\n  if ( !v1 )\n    return 1;\n  if ( a1->m_fromOpacity != 1.0 || a1->m_copyID || a1->m_blending )\n    return v1;\n  return a1->m_playerColor > 0;\n}", "assembly": "; \n; ColorAction::isInUse from 0x8a3d24 to 0x8a3d94 (112 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::getNextColorChannel @ 0x672cf0\n; > EditorUI::pasteObjects @ 0x6bf488\n; > <???> @ 0x3bbf8\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            W2, [X0,#0x48]                                         ; +0x0, 0x8a3d24\nLDRB            W1, [X0,#0x49]                                         ; +0x4, 0x8a3d28\nCMP             W2, #0xFF                                              ; +0x8, 0x8a3d2c\nLDRB            W3, [X0,#0x4A]                                         ; +0xc, 0x8a3d30\nCSET            W2, EQ                                                 ; +0x10, 0x8a3d34\nCMP             W1, #0xFF                                              ; +0x14, 0x8a3d38\nCSET            W1, EQ                                                 ; +0x18, 0x8a3d3c\nCMP             W3, #0xFF                                              ; +0x1c, 0x8a3d40\nAND             W1, W2, W1                                             ; +0x20, 0x8a3d44\nCSET            W2, EQ                                                 ; +0x24, 0x8a3d48\nANDS            W1, W2, W1                                             ; +0x28, 0x8a3d4c\nB.NE            loc_8A3D60                                             ; +0x2c, 0x8a3d50\nMOV             W1, #1                                                 ; +0x30, 0x8a3d54\nMOV             W0, W1                                                 ; +0x34, 0x8a3d58\nRET                                                                    ; +0x38, 0x8a3d5c\nLDR             S1, [X0,#0x60]                                         ; +0x3c, 0x8a3d60\nFMOV            S0, #1.0                                               ; +0x40, 0x8a3d64\nFCMP            S1, S0                                                 ; +0x44, 0x8a3d68\nB.NE            loc_8A3D58                                             ; +0x48, 0x8a3d6c\nLDR             W2, [X0,#0x78]                                         ; +0x4c, 0x8a3d70\nCBNZ            W2, loc_8A3D58                                         ; +0x50, 0x8a3d74\nLDRB            W2, [X0,#0x54]                                         ; +0x54, 0x8a3d78\nCBNZ            W2, loc_8A3D58                                         ; +0x58, 0x8a3d7c\nLDR             W0, [X0,#0x58]                                         ; +0x5c, 0x8a3d80\nCMP             W0, WZR                                                ; +0x60, 0x8a3d84\nCSET            W1, GT                                                 ; +0x64, 0x8a3d88\nMOV             W0, W1                                                 ; +0x68, 0x8a3d8c\nRET                                                                    ; +0x6c, 0x8a3d90", "xrefs": ["LevelEditorLayer::getNextColorChannel @ 0x672cf0", "EditorUI::pasteObjects @ 0x6bf488", "<???> @ 0x3bbf8"], "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"}