package com.google.android.gms.internal.ads;

import android.os.Bundle;
import android.os.Parcel;

/* JADX INFO: loaded from: classes2.dex */
public final class xp1 extends zi {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final xyz.stream.utils.a0 f18509a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ yp1 f18510b;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public xp1(yp1 yp1Var, xyz.stream.utils.a0 a0Var) {
        super("com.google.android.play.core.lmd.protocol.ILmdOverlayServiceListener");
        this.f18510b = yp1Var;
        this.f18509a = a0Var;
    }

    @Override // com.google.android.gms.internal.ads.zi
    public final boolean Q2(int i10, Parcel parcel, Parcel parcel2) {
        gq1 gq1Var;
        if (i10 != 1) {
            return false;
        }
        Bundle bundle = (Bundle) aj.a(parcel, Bundle.CREATOR);
        aj.e(parcel);
        int i11 = bundle.getInt("statusCode", 8150);
        String string = bundle.getString("sessionToken");
        int i12 = bundle.getInt("uiMode", 0);
        oi1 oi1Var = new oi1();
        byte b10 = (byte) (oi1Var.f15082d | 1);
        oi1Var.f15079a = i11;
        byte b11 = (byte) (b10 | 1);
        oi1Var.f15082d = b11;
        if (string != null) {
            oi1Var.f15080b = string;
        }
        oi1Var.f15081c = i12;
        oi1Var.f15082d = (byte) (b11 | 2);
        ((com.google.android.gms.ads.internal.overlay.s) this.f18509a.f36098a).g(oi1Var.b());
        if (i11 != 8157 || (gq1Var = this.f18510b.f18927a) == null) {
            return true;
        }
        yp1.f18925c.zza("unbind LMD display overlay service", new Object[0]);
        gq1Var.e(new na1(gq1Var, 15));
        return true;
    }
}
