void ioinst_handle_csch(S390CPU *cpu, uint64_t reg1)

{

    int cssid, ssid, schid, m;

    SubchDev *sch;

    int ret = -ENODEV;

    int cc;



    if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {

        program_interrupt(&cpu->env, PGM_OPERAND, 2);

        return;

    }

    trace_ioinst_sch_id("csch", cssid, ssid, schid);

    sch = css_find_subch(m, cssid, ssid, schid);

    if (sch && css_subch_visible(sch)) {

        ret = css_do_csch(sch);

    }

    if (ret == -ENODEV) {

        cc = 3;

    } else {

        cc = 0;

    }

    setcc(cpu, cc);

}

void ioinst_handle_csch(S390CPU *cpu, uint64_t reg1)

{

    int cssid, ssid, schid, m;

    SubchDev *sch;

    int ret = -ENODEV;

    int cc;



    if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {

        program_interrupt(&cpu->env, PGM_OPERAND, 2);

        return;

    }

    trace_ioinst_sch_id("csch", cssid, ssid, schid);

    sch = css_find_subch(m, cssid, ssid, schid);

    if (sch && css_subch_visible(sch)) {

        ret = css_do_csch(sch);

    }

    if (ret == -ENODEV) {

        cc = 3;

    } else {

        cc = 0;

    }

    setcc(cpu, cc);

}

void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1)

{

    int VAR_2, VAR_3, VAR_4, VAR_5;

    SubchDev *sch;

    int VAR_6 = -ENODEV;

    int VAR_7;



    if (ioinst_disassemble_sch_ident(VAR_1, &VAR_5, &VAR_2, &VAR_3, &VAR_4)) {

        program_interrupt(&VAR_0->env, PGM_OPERAND, 2);

        return;

    }

    trace_ioinst_sch_id("csch", VAR_2, VAR_3, VAR_4);

    sch = css_find_subch(VAR_5, VAR_2, VAR_3, VAR_4);

    if (sch && css_subch_visible(sch)) {

        VAR_6 = css_do_csch(sch);

    }

    if (VAR_6 == -ENODEV) {

        VAR_7 = 3;

    } else {

        VAR_7 = 0;

    }

    setcc(VAR_0, VAR_7);

}

void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1)
{ int VAR_2, VAR_3, VAR_4, VAR_5; SubchDev *sch; int VAR_6 = -ENODEV; int VAR_7; if (ioinst_disassemble_sch_ident(VAR_1, &VAR_5, &VAR_2, &VAR_3, &VAR_4)) { program_interrupt(&VAR_0->env, PGM_OPERAND, 2); return; } trace_ioinst_sch_id("csch", VAR_2, VAR_3, VAR_4); sch = css_find_subch(VAR_5, VAR_2, VAR_3, VAR_4); if (sch && css_subch_visible(sch)) { VAR_6 = css_do_csch(sch); } if (VAR_6 == -ENODEV) { VAR_7 = 3; } else { VAR_7 = 0; } setcc(VAR_0, VAR_7); }