static void rtas_power_off(sPAPREnvironment *spapr,

                           uint32_t token, uint32_t nargs, target_ulong args,

                           uint32_t nret, target_ulong rets)

{

    if (nargs != 2 || nret != 1) {

        rtas_st(rets, 0, -3);

        return;

    }

    qemu_system_shutdown_request();

    rtas_st(rets, 0, 0);

}

static void rtas_power_off(sPAPREnvironment *spapr,

                           uint32_t token, uint32_t nargs, target_ulong args,

                           uint32_t nret, target_ulong rets)

{

    if (nargs != 2 || nret != 1) {

        rtas_st(rets, 0, -3);

        return;

    }

    qemu_system_shutdown_request();

    rtas_st(rets, 0, 0);

}

static void FUNC_0(sPAPREnvironment *VAR_0,

                           uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3,

                           uint32_t VAR_4, target_ulong VAR_5)

{

    if (VAR_2 != 2 || VAR_4 != 1) {

        rtas_st(VAR_5, 0, -3);

        return;

    }

    qemu_system_shutdown_request();

    rtas_st(VAR_5, 0, 0);

}

static void FUNC_0(sPAPREnvironment *VAR_0,
uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{ if (VAR_2 != 2 || VAR_4 != 1) { rtas_st(VAR_5, 0, -3); return; } qemu_system_shutdown_request(); rtas_st(VAR_5, 0, 0); }