def __do_case_6_work(d_w, d_u, case_1, case_2, case_3, dfs_data):
<EOL>if case_2:<EOL><INDENT>return False<EOL><DEDENT>comp_d_w = abs(d_w)<EOL>__insert_frond_RF(d_w, d_u, dfs_data)<EOL>m = dfs_data['<STR_LIT>']['<STR_LIT:m>']<EOL>Rm = R(m, dfs_data)<EOL>if comp_d_w < Rm['<STR_LIT:x>']:<EOL><INDENT>Rm['<STR_LIT:x>'] = d_w<EOL><DEDENT>if d_u > Rm['<STR_LIT:y>']:<EOL><INDENT>Rm['<STR_LIT:y>'] = d_u<EOL><DEDENT>if case_3:<EOL><INDENT>Rm['<STR_LIT:x>'] = d_w<EOL>u_m1 = u(m-<NUM_LIT:1>, dfs_data)<EOL>while comp_d_w < u_m1:<EOL><INDENT>merge_Fm(dfs_data)<EOL>m = dfs_data['<STR_LIT>']['<STR_LIT:m>']<EOL>u_m1 = u(m-<NUM_LIT:1>, dfs_data)<EOL><DEDENT><DEDENT>return True<EOL>
Encapsulates the work that will be done for case 6 of __embed_frond,
    since it gets used in more than one place.