static char **breakline(char *input, int *count)

{

    int c = 0;

    char *p;

    char **rval = g_malloc0(sizeof(char *));

    char **tmp;



    while (rval && (p = qemu_strsep(&input, " ")) != NULL) {

        if (!*p) {

            continue;

        }

        c++;

        tmp = g_realloc(rval, sizeof(*rval) * (c + 1));

        if (!tmp) {

            g_free(rval);

            rval = NULL;

            c = 0;

            break;

        } else {

            rval = tmp;

        }

        rval[c - 1] = p;

        rval[c] = NULL;

    }

    *count = c;

    return rval;

}

static char **breakline(char *input, int *count)

{

    int c = 0;

    char *p;

    char **rval = g_malloc0(sizeof(char *));

    char **tmp;



    while (rval && (p = qemu_strsep(&input, " ")) != NULL) {

        if (!*p) {

            continue;

        }

        c++;

        tmp = g_realloc(rval, sizeof(*rval) * (c + 1));

        if (!tmp) {

            g_free(rval);

            rval = NULL;

            c = 0;

            break;

        } else {

            rval = tmp;

        }

        rval[c - 1] = p;

        rval[c] = NULL;

    }

    *count = c;

    return rval;

}

    char **rval = g_malloc0(sizeof(char *));
static char **FUNC_0(char *VAR_0, int *VAR_1)

{

    int VAR_2 = 0;

    char *VAR_3;

    char **VAR_4 = g_malloc0(sizeof(char *));

    char **VAR_5;



    while (VAR_4 && (VAR_3 = qemu_strsep(&VAR_0, " ")) != NULL) {

        if (!*VAR_3) {

            continue;

        }

        VAR_2++;

        VAR_5 = g_realloc(VAR_4, sizeof(*VAR_4) * (VAR_2 + 1));

        if (!VAR_5) {

            g_free(VAR_4);

            VAR_4 = NULL;

            VAR_2 = 0;

            break;

        } else {

            VAR_4 = VAR_5;

        }

        VAR_4[VAR_2 - 1] = VAR_3;

        VAR_4[VAR_2] = NULL;

    }

    *VAR_1 = VAR_2;

    return VAR_4;

}

static char **FUNC_0(char *VAR_0, int *VAR_1)
{ int VAR_2 = 0; char *VAR_3; char **VAR_4 = g_malloc0(sizeof(char *)); char **VAR_5; while (VAR_4 && (VAR_3 = qemu_strsep(&VAR_0, " ")) != NULL) { if (!*VAR_3) { continue; } VAR_2++; VAR_5 = g_realloc(VAR_4, sizeof(*VAR_4) * (VAR_2 + 1)); if (!VAR_5) { g_free(VAR_4); VAR_4 = NULL; VAR_2 = 0; break; } else { VAR_4 = VAR_5; } VAR_4[VAR_2 - 1] = VAR_3; VAR_4[VAR_2] = NULL; } *VAR_1 = VAR_2; return VAR_4; }