static int find_hw_breakpoint(target_ulong addr, int len, int type)

{

    int n;



    for (n = 0; n < nb_hw_breakpoint; n++)

        if (hw_breakpoint[n].addr == addr && hw_breakpoint[n].type == type &&

            (hw_breakpoint[n].len == len || len == -1))

            return n;

    return -1;

}

static int find_hw_breakpoint(target_ulong addr, int len, int type)

{

    int n;



    for (n = 0; n < nb_hw_breakpoint; n++)

        if (hw_breakpoint[n].addr == addr && hw_breakpoint[n].type == type &&

            (hw_breakpoint[n].len == len || len == -1))

            return n;

    return -1;

}

static int FUNC_0(target_ulong VAR_0, int VAR_1, int VAR_2)

{

    int VAR_3;



    for (VAR_3 = 0; VAR_3 < nb_hw_breakpoint; VAR_3++)

        if (hw_breakpoint[VAR_3].VAR_0 == VAR_0 && hw_breakpoint[VAR_3].VAR_2 == VAR_2 &&

            (hw_breakpoint[VAR_3].VAR_1 == VAR_1 || VAR_1 == -1))

            return VAR_3;

    return -1;

}

static int FUNC_0(target_ulong VAR_0, int VAR_1, int VAR_2)
{ int VAR_3; for (VAR_3 = 0; VAR_3 < nb_hw_breakpoint; VAR_3++) if (hw_breakpoint[VAR_3].VAR_0 == VAR_0 && hw_breakpoint[VAR_3].VAR_2 == VAR_2 &&
(hw_breakpoint[VAR_3].VAR_1 == VAR_1 || VAR_1 == -1))
return VAR_3; return -1; }