static void cmd_prevent_allow_medium_removal(IDEState *s, uint8_t* buf)

{

    s->tray_locked = buf[4] & 1;

    bdrv_lock_medium(s->bs, buf[4] & 1);

    ide_atapi_cmd_ok(s);

}

static void cmd_prevent_allow_medium_removal(IDEState *s, uint8_t* buf)

{

    s->tray_locked = buf[4] & 1;

    bdrv_lock_medium(s->bs, buf[4] & 1);

    ide_atapi_cmd_ok(s);

}

static void FUNC_0(IDEState *VAR_0, uint8_t* VAR_1)

{

    VAR_0->tray_locked = VAR_1[4] & 1;

    bdrv_lock_medium(VAR_0->bs, VAR_1[4] & 1);

    ide_atapi_cmd_ok(VAR_0);

}

static void FUNC_0(IDEState *VAR_0, uint8_t* VAR_1)
{ VAR_0->tray_locked = VAR_1[4] & 1; bdrv_lock_medium(VAR_0->bs, VAR_1[4] & 1); ide_atapi_cmd_ok(VAR_0); }