static int get_qcd(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q,
                   uint8_t *properties)
{
    Jpeg2000QuantStyle tmp;
    int compno, ret;
    if ((ret = get_qcx(s, n, &tmp)) < 0)
        return ret;
    for (compno = 0; compno < s->ncomponents; compno++)
        if (!(properties[compno] & HAD_QCC))
            memcpy(q + compno, &tmp, sizeof(tmp));
    return 0;
}
static int get_qcd(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q,
                   uint8_t *properties)
{
    Jpeg2000QuantStyle tmp;
    int compno, ret;
    if ((ret = get_qcx(s, n, &tmp)) < 0)
        return ret;
    for (compno = 0; compno < s->ncomponents; compno++)
        if (!(properties[compno] & HAD_QCC))
            memcpy(q + compno, &tmp, sizeof(tmp));
    return 0;
}
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2,
                   uint8_t *VAR_3)
{
    Jpeg2000QuantStyle tmp;
    int VAR_4, VAR_5;
    if ((VAR_5 = get_qcx(VAR_0, VAR_1, &tmp)) < 0)
        return VAR_5;
    for (VAR_4 = 0; VAR_4 < VAR_0->ncomponents; VAR_4++)
        if (!(VAR_3[VAR_4] & HAD_QCC))
            memcpy(VAR_2 + VAR_4, &tmp, sizeof(tmp));
    return 0;
}
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2,
uint8_t *VAR_3)
{ Jpeg2000QuantStyle tmp; int VAR_4, VAR_5; if ((VAR_5 = get_qcx(VAR_0, VAR_1, &tmp)) < 0)
return VAR_5; for (VAR_4 = 0; VAR_4 < VAR_0->ncomponents; VAR_4++) if (!(VAR_3[VAR_4] & HAD_QCC))
memcpy(VAR_2 + VAR_4, &tmp, sizeof(tmp)); return 0; }