static void receive_from_chr_layer(SCLPConsoleLM *scon, const uint8_t *buf,

                                   int size)

{

    assert(size == 1);



    if (*buf == '\r' || *buf == '\n') {

        scon->event.event_pending = true;

        return;

    }

    scon->buf[scon->length] = *buf;

    scon->length += 1;

    if (scon->echo) {

        qemu_chr_fe_write(scon->chr, buf, size);

    }

}

static void receive_from_chr_layer(SCLPConsoleLM *scon, const uint8_t *buf,

                                   int size)

{

    assert(size == 1);



    if (*buf == '\r' || *buf == '\n') {

        scon->event.event_pending = true;

        return;

    }

    scon->buf[scon->length] = *buf;

    scon->length += 1;

    if (scon->echo) {

        qemu_chr_fe_write(scon->chr, buf, size);

    }

}

static void receive_from_chr_layer(SCLPConsoleLM *scon, const uint8_t *buf,                                    int size)
static void FUNC_0(SCLPConsoleLM *VAR_0, const uint8_t *VAR_1,

                                   int VAR_2)

{

    assert(VAR_2 == 1);



    if (*VAR_1 == '\r' || *VAR_1 == '\n') {

        VAR_0->event.event_pending = true;

        return;

    }

    VAR_0->VAR_1[VAR_0->length] = *VAR_1;

    VAR_0->length += 1;

    if (VAR_0->echo) {

        qemu_chr_fe_write(VAR_0->chr, VAR_1, VAR_2);

    }

}

static void FUNC_0(SCLPConsoleLM *VAR_0, const uint8_t *VAR_1,
int VAR_2)
{ assert(VAR_2 == 1); if (*VAR_1 == '\r' || *VAR_1 == '\n') { VAR_0->event.event_pending = true; return; } VAR_0->VAR_1[VAR_0->length] = *VAR_1; VAR_0->length += 1; if (VAR_0->echo) { qemu_chr_fe_write(VAR_0->chr, VAR_1, VAR_2); } }