{
    "Function": "removeFromTree",
    "File": "src/libraries/TreeMath.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function removeFromTree(mapping(uint256 => uint256)[3] storage _tree, uint256 _id) internal {\n        unchecked {\n            // removes 1 at the right indices\n            uint256 _idDepth2 = _id >> 8;\n            // Optimization of `_tree[2][_idDepth2] & (type(uint256).max - (1 << (_id & 255)))`\n            uint256 _newLeafValue = _tree[2][_idDepth2] & (type(uint256).max ^ (1 << (_id & 255)));\n            _tree[2][_idDepth2] = _newLeafValue;\n            if (_newLeafValue == 0) {\n                uint256 _idDepth1 = _id >> 16;\n                // Optimization of `_tree[1][_idDepth1] & (type(uint256).max - (1 << (_idDepth2 & 255)))`\n                _newLeafValue = _tree[1][_idDepth1] & (type(uint256).max ^ (1 << (_idDepth2 & 255)));\n                _tree[1][_idDepth1] = _newLeafValue;\n                if (_newLeafValue == 0) {\n                    // Optimization of `type(uint256).max - (1 << _idDepth1)`\n                    _tree[0][0] &= type(uint256).max ^ (1 << _idDepth1);\n                }\n            }\n        }\n    }"
}