package o;

import android.view.View;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class U5 implements InterfaceC2235qO {
    public final /* synthetic */ Tj0 a;
    public final /* synthetic */ C2420sK b;

    public U5(Tj0 tj0, C2420sK c2420sK) {
        this.a = tj0;
        this.b = c2420sK;
    }

    @Override // o.InterfaceC2235qO
    public final InterfaceC2329rO a(InterfaceC2424sO interfaceC2424sO, List list, long j) {
        Tj0 tj0 = this.a;
        int childCount = tj0.getChildCount();
        C0358Nv c0358Nv = C0358Nv.l;
        if (childCount == 0) {
            return interfaceC2424sO.H(C0634Yl.j(j), C0634Yl.i(j), c0358Nv, C1160f3.x);
        }
        if (C0634Yl.j(j) != 0) {
            tj0.getChildAt(0).setMinimumWidth(C0634Yl.j(j));
        }
        if (C0634Yl.i(j) != 0) {
            tj0.getChildAt(0).setMinimumHeight(C0634Yl.i(j));
        }
        tj0.measure(Z5.k(tj0, C0634Yl.j(j), C0634Yl.h(j), tj0.getLayoutParams().width), Z5.k(tj0, C0634Yl.i(j), C0634Yl.g(j), tj0.getLayoutParams().height));
        return interfaceC2424sO.H(tj0.getMeasuredWidth(), tj0.getMeasuredHeight(), c0358Nv, new S5(tj0, this.b, 1));
    }

    @Override // o.InterfaceC2235qO
    public final int c(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        Tj0 tj0 = this.a;
        tj0.measure(Z5.k(tj0, 0, i, tj0.getLayoutParams().width), View.MeasureSpec.makeMeasureSpec(0, 0));
        return tj0.getMeasuredHeight();
    }

    @Override // o.InterfaceC2235qO
    public final int g(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        Tj0 tj0 = this.a;
        tj0.measure(Z5.k(tj0, 0, i, tj0.getLayoutParams().width), View.MeasureSpec.makeMeasureSpec(0, 0));
        return tj0.getMeasuredHeight();
    }

    @Override // o.InterfaceC2235qO
    public final int i(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        int iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, 0);
        Tj0 tj0 = this.a;
        tj0.measure(iMakeMeasureSpec, Z5.k(tj0, 0, i, tj0.getLayoutParams().height));
        return tj0.getMeasuredWidth();
    }

    @Override // o.InterfaceC2235qO
    public final int j(InterfaceC2608uI interfaceC2608uI, List list, int i) {
        int iMakeMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, 0);
        Tj0 tj0 = this.a;
        tj0.measure(iMakeMeasureSpec, Z5.k(tj0, 0, i, tj0.getLayoutParams().height));
        return tj0.getMeasuredWidth();
    }
}
