static ssize_t drop_sync(QIOChannel *ioc, size_t size)

{

    ssize_t ret = 0;

    char small[1024];

    char *buffer;



    buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size));

    while (size > 0) {

        ssize_t count = read_sync(ioc, buffer, MIN(65536, size));



        if (count <= 0) {

            goto cleanup;

        }

        assert(count <= size);

        size -= count;

        ret += count;

    }



 cleanup:

    if (buffer != small) {

        g_free(buffer);

    }

    return ret;

}

static ssize_t drop_sync(QIOChannel *ioc, size_t size)

{

    ssize_t ret = 0;

    char small[1024];

    char *buffer;



    buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size));

    while (size > 0) {

        ssize_t count = read_sync(ioc, buffer, MIN(65536, size));



        if (count <= 0) {

            goto cleanup;

        }

        assert(count <= size);

        size -= count;

        ret += count;

    }



 cleanup:

    if (buffer != small) {

        g_free(buffer);

    }

    return ret;

}

    buffer = sizeof(small) < size ? small : g_malloc(MIN(65536, size));
static ssize_t FUNC_0(QIOChannel *ioc, size_t size)

{

    ssize_t ret = 0;

    char VAR_0[1024];

    char *VAR_1;



    VAR_1 = sizeof(VAR_0) < size ? VAR_0 : g_malloc(MIN(65536, size));

    while (size > 0) {

        ssize_t count = read_sync(ioc, VAR_1, MIN(65536, size));



        if (count <= 0) {

            goto cleanup;

        }

        assert(count <= size);

        size -= count;

        ret += count;

    }



 cleanup:

    if (VAR_1 != VAR_0) {

        g_free(VAR_1);

    }

    return ret;

}

static ssize_t FUNC_0(QIOChannel *ioc, size_t size)
{ ssize_t ret = 0; char VAR_0[1024]; char *VAR_1; VAR_1 = sizeof(VAR_0) < size ? VAR_0 : g_malloc(MIN(65536, size)); while (size > 0) { ssize_t count = read_sync(ioc, VAR_1, MIN(65536, size)); if (count <= 0) { goto cleanup; } assert(count <= size); size -= count; ret += count; } cleanup:
if (VAR_1 != VAR_0) { g_free(VAR_1); } return ret; }