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

{

    if (bdrv_is_inserted(s->bs)) {

        ide_atapi_cmd_ok(s);

    } else {

        ide_atapi_cmd_error(s, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT);

    }

}

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

{

    if (bdrv_is_inserted(s->bs)) {

        ide_atapi_cmd_ok(s);

    } else {

        ide_atapi_cmd_error(s, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT);

    }

}

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

{

    if (bdrv_is_inserted(VAR_0->bs)) {

        ide_atapi_cmd_ok(VAR_0);

    } else {

        ide_atapi_cmd_error(VAR_0, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT);

    }

}

static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1)
{ if (bdrv_is_inserted(VAR_0->bs)) { ide_atapi_cmd_ok(VAR_0); } else { ide_atapi_cmd_error(VAR_0, SENSE_NOT_READY, ASC_MEDIUM_NOT_PRESENT); } }