You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: panic_message.rs
    path of file: ./repos/rustig/lib/panic_analysis/src/panic_calls
    
    the code of the file until where you have to start completion: // (C) COPYRIGHT 2018 TECHNOLUTION BV, GOUDA NL

// Licensed under the Apache Lice
    
fn get_mem_op_value(mem_operand: &X86OpMem, base_reg_value: u64) -> Option<u64> {
    if mem_operand.index() == RegId(0) {
        Some(base_reg_value + mem_operand.disp() as u64)
    } else {
        None
    }
}