int qed_read_l1_table_sync(BDRVQEDState *s)

{

    int ret = -EINPROGRESS;



    async_context_push();



    qed_read_table(s, s->header.l1_table_offset,

                   s->l1_table, qed_sync_cb, &ret);

    while (ret == -EINPROGRESS) {

        qemu_aio_wait();

    }



    async_context_pop();



    return ret;

}

int qed_read_l1_table_sync(BDRVQEDState *s)

{

    int ret = -EINPROGRESS;



    async_context_push();



    qed_read_table(s, s->header.l1_table_offset,

                   s->l1_table, qed_sync_cb, &ret);

    while (ret == -EINPROGRESS) {

        qemu_aio_wait();

    }



    async_context_pop();



    return ret;

}

int FUNC_0(BDRVQEDState *VAR_0)

{

    int VAR_1 = -EINPROGRESS;



    async_context_push();



    qed_read_table(VAR_0, VAR_0->header.l1_table_offset,

                   VAR_0->l1_table, qed_sync_cb, &VAR_1);

    while (VAR_1 == -EINPROGRESS) {

        qemu_aio_wait();

    }



    async_context_pop();



    return VAR_1;

}

int FUNC_0(BDRVQEDState *VAR_0)
{ int VAR_1 = -EINPROGRESS; async_context_push(); qed_read_table(VAR_0, VAR_0->header.l1_table_offset,
VAR_0->l1_table, qed_sync_cb, &VAR_1); while (VAR_1 == -EINPROGRESS) { qemu_aio_wait(); } async_context_pop(); return VAR_1; }