// Detect It Easy: detection rule file format

init("format", "Hermes JavaScript bytecode");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (Binary.getSize() >= 0xC) {
        if (Binary.compare("C61FBC03C103191F", Binary.read_uint64(0, _BE))) {
            sVersion = Binary.read_uint32(8);
            bDetected = true;
        }
    }

    _setLang("JavaScript", bDetected);
    return result(bShowType, bShowVersion, bShowOptions);
}