static int tmp105_tx(I2CSlave *i2c, uint8_t data)

{

    TMP105State *s = (TMP105State *) i2c;



    if (!s->len ++)

        s->pointer = data;

    else {

        if (s->len <= 2)

            s->buf[s->len - 1] = data;

        tmp105_write(s);

    }



    return 0;

}

static int tmp105_tx(I2CSlave *i2c, uint8_t data)

{

    TMP105State *s = (TMP105State *) i2c;



    if (!s->len ++)

        s->pointer = data;

    else {

        if (s->len <= 2)

            s->buf[s->len - 1] = data;

        tmp105_write(s);

    }



    return 0;

}

    if (!s->len ++)     else {         if (s->len <= 2)
static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)

{

    TMP105State *s = (TMP105State *) VAR_0;



    if (!s->len ++)

        s->pointer = VAR_1;

    else {

        if (s->len <= 2)

            s->buf[s->len - 1] = VAR_1;

        tmp105_write(s);

    }



    return 0;

}

static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)
{ TMP105State *s = (TMP105State *) VAR_0; if (!s->len ++)
s->pointer = VAR_1; else { if (s->len <= 2)
s->buf[s->len - 1] = VAR_1; tmp105_write(s); } return 0; }