def _modify_new_lines(code_to_modify, all_inserted_code):
    """
    Update new lines in order to hide inserted code inside the original code
    :param code_to_modify: code to modify
    :param all_inserted_code: list of tuples (offset, list of code instructions) with all inserted pieces of code
    :return: bytes sequence of code with updated lines offsets
    """
    new_list = list(code_to_modify.co_lnotab)
    abs_offset = prev_abs_offset = 0
    i = 0
    while i < len(new_list):
        prev_abs_offset = abs_offset
        abs_offset += new_list[i]
        for (inserted_offset, inserted_code) in all_inserted_code:
            if prev_abs_offset <= inserted_offset < abs_offset:
                size_of_inserted = len(inserted_code)
                new_list[i] += size_of_inserted
                abs_offset += size_of_inserted
        if new_list[i] > MAX_BYTE:
            new_list[i] = new_list[i] - MAX_BYTE
            new_list = new_list[:i] + [MAX_BYTE, 0] + new_list[i:]
        i += 2
    return bytes(new_list)

    Update new lines in order to hide inserted code inside the original code
    :param code_to_modify: code to modify
    :param all_inserted_code: list of tuples (offset, list of code instructions) with all inserted pieces of code
    :return: bytes sequence of code with updated lines offsets
    
debugger/src/_pydevd_frame_eval/pydevd_modify_bytecode.py