static int oss_ctl_in (HWVoiceIn *hw, int cmd, ...)

{

    OSSVoiceIn *oss = (OSSVoiceIn *) hw;



    switch (cmd) {

    case VOICE_ENABLE:

        {

            va_list ap;

            int poll_mode;



            va_start (ap, cmd);

            poll_mode = va_arg (ap, int);

            va_end (ap);



            if (poll_mode && oss_poll_in (hw)) {

                poll_mode = 0;

            }

            hw->poll_mode = poll_mode;

        }

        break;



    case VOICE_DISABLE:

        if (hw->poll_mode) {

            hw->poll_mode = 0;

            qemu_set_fd_handler (oss->fd, NULL, NULL, NULL);

        }

        break;

    }

    return 0;

}

static int oss_ctl_in (HWVoiceIn *hw, int cmd, ...)

{

    OSSVoiceIn *oss = (OSSVoiceIn *) hw;



    switch (cmd) {

    case VOICE_ENABLE:

        {

            va_list ap;

            int poll_mode;



            va_start (ap, cmd);

            poll_mode = va_arg (ap, int);

            va_end (ap);



            if (poll_mode && oss_poll_in (hw)) {

                poll_mode = 0;

            }

            hw->poll_mode = poll_mode;

        }

        break;



    case VOICE_DISABLE:

        if (hw->poll_mode) {

            hw->poll_mode = 0;

            qemu_set_fd_handler (oss->fd, NULL, NULL, NULL);

        }

        break;

    }

    return 0;

}

            if (poll_mode && oss_poll_in (hw)) {
static int FUNC_0 (HWVoiceIn *VAR_0, int VAR_1, ...)

{

    OSSVoiceIn *oss = (OSSVoiceIn *) VAR_0;



    switch (VAR_1) {

    case VOICE_ENABLE:

        {

            va_list ap;

            int VAR_2;



            va_start (ap, VAR_1);

            VAR_2 = va_arg (ap, int);

            va_end (ap);



            if (VAR_2 && oss_poll_in (VAR_0)) {

                VAR_2 = 0;

            }

            VAR_0->VAR_2 = VAR_2;

        }

        break;



    case VOICE_DISABLE:

        if (VAR_0->VAR_2) {

            VAR_0->VAR_2 = 0;

            qemu_set_fd_handler (oss->fd, NULL, NULL, NULL);

        }

        break;

    }

    return 0;

}

static int FUNC_0 (HWVoiceIn *VAR_0, int VAR_1, ...)
{ OSSVoiceIn *oss = (OSSVoiceIn *) VAR_0; switch (VAR_1) { case VOICE_ENABLE:
{ va_list ap; int VAR_2; va_start (ap, VAR_1); VAR_2 = va_arg (ap, int); va_end (ap); if (VAR_2 && oss_poll_in (VAR_0)) { VAR_2 = 0; } VAR_0->VAR_2 = VAR_2; } break; case VOICE_DISABLE:
if (VAR_0->VAR_2) { VAR_0->VAR_2 = 0; qemu_set_fd_handler (oss->fd, NULL, NULL, NULL); } break; } return 0; }