def METHOD_NAME(mnemonic_file):
    mnemonic_map = {}
    for line in mnemonic_file:
        match = MNEMONIC_RE.match(line)
        if match:
            mnemonic_map[match.group(1)] = match.group(2)
    return mnemonic_map