{
    "Function": "shiftDivRoundDown",
    "File": "src/libraries/Math512Bits.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "_getEndOfDivRoundDown",
        "revert Math512Bits__OffsetOverflows(uint256)"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function shiftDivRoundDown(\n        uint256 x,\n        uint256 offset,\n        uint256 denominator\n    ) internal pure returns (uint256 result) {\n        if (offset > 255) revert Math512Bits__OffsetOverflows(offset);\n        uint256 prod0;\n        uint256 prod1;\n\n        prod0 = x << offset; // Least significant 256 bits of the product\n        unchecked {\n            prod1 = x >> (256 - offset); // Most significant 256 bits of the product\n        }\n\n        return _getEndOfDivRoundDown(x, 1 << offset, denominator, prod0, prod1);\n    }"
}