static void cd_read_sector_cb(void *opaque, int ret)

{

    IDEState *s = opaque;



    block_acct_done(blk_get_stats(s->blk), &s->acct);



#ifdef DEBUG_IDE_ATAPI

    printf("cd_read_sector_cb: lba=%d ret=%d\n", s->lba, ret);

#endif



    if (ret < 0) {

        ide_atapi_io_error(s, ret);

        return;

    }



    if (s->cd_sector_size == 2352) {

        cd_data_to_raw(s->io_buffer, s->lba);

    }



    s->lba++;

    s->io_buffer_index = 0;

    s->status &= ~BUSY_STAT;



    ide_atapi_cmd_reply_end(s);

}

static void cd_read_sector_cb(void *opaque, int ret)

{

    IDEState *s = opaque;



    block_acct_done(blk_get_stats(s->blk), &s->acct);



#ifdef DEBUG_IDE_ATAPI

    printf("cd_read_sector_cb: lba=%d ret=%d\n", s->lba, ret);

#endif



    if (ret < 0) {

        ide_atapi_io_error(s, ret);

        return;

    }



    if (s->cd_sector_size == 2352) {

        cd_data_to_raw(s->io_buffer, s->lba);

    }



    s->lba++;

    s->io_buffer_index = 0;

    s->status &= ~BUSY_STAT;



    ide_atapi_cmd_reply_end(s);

}

    block_acct_done(blk_get_stats(s->blk), &s->acct);
static void FUNC_0(void *VAR_0, int VAR_1)

{

    IDEState *s = VAR_0;



    block_acct_done(blk_get_stats(s->blk), &s->acct);



#ifdef DEBUG_IDE_ATAPI

    printf("FUNC_0: lba=%d VAR_1=%d\n", s->lba, VAR_1);

#endif



    if (VAR_1 < 0) {

        ide_atapi_io_error(s, VAR_1);

        return;

    }



    if (s->cd_sector_size == 2352) {

        cd_data_to_raw(s->io_buffer, s->lba);

    }



    s->lba++;

    s->io_buffer_index = 0;

    s->status &= ~BUSY_STAT;



    ide_atapi_cmd_reply_end(s);

}

static void FUNC_0(void *VAR_0, int VAR_1)
{ IDEState *s = VAR_0; block_acct_done(blk_get_stats(s->blk), &s->acct); #ifdef DEBUG_IDE_ATAPI
printf("FUNC_0: lba=%d VAR_1=%d\n", s->lba, VAR_1); #endif
if (VAR_1 < 0) { ide_atapi_io_error(s, VAR_1); return; } if (s->cd_sector_size == 2352) { cd_data_to_raw(s->io_buffer, s->lba); } s->lba++; s->io_buffer_index = 0; s->status &= ~BUSY_STAT; ide_atapi_cmd_reply_end(s); }