void qemu_co_rwlock_rdlock(CoRwlock *lock)
{
    while (lock->writer) {
        qemu_co_queue_wait(&lock->queue);
    }
    lock->reader++;
}
void qemu_co_rwlock_rdlock(CoRwlock *lock)
{
    while (lock->writer) {
        qemu_co_queue_wait(&lock->queue);
    }
    lock->reader++;
}
void FUNC_0(CoRwlock *VAR_0)
{
    while (VAR_0->writer) {
        qemu_co_queue_wait(&VAR_0->queue);
    }
    VAR_0->reader++;
}
void FUNC_0(CoRwlock *VAR_0)
{ while (VAR_0->writer) { qemu_co_queue_wait(&VAR_0->queue); } VAR_0->reader++; }