package com.google.android.gms.internal.vision; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; import com.google.android.gms.dynamic.IObjectWrapper; /* loaded from: classes2.dex */ public final class zzad extends zza implements zzac { /* JADX INFO: Access modifiers changed from: package-private */ public zzad(IBinder iBinder) { super(iBinder, "com.google.android.gms.vision.text.internal.client.INativeTextRecognizerCreator"); } @Override // com.google.android.gms.internal.vision.zzac public final zzaa zza(IObjectWrapper iObjectWrapper, zzal zzalVar) throws RemoteException { zzaa zzabVar; Parcel obtainAndWriteInterfaceToken = obtainAndWriteInterfaceToken(); zzc.zza(obtainAndWriteInterfaceToken, iObjectWrapper); zzc.zza(obtainAndWriteInterfaceToken, zzalVar); Parcel zza = zza(1, obtainAndWriteInterfaceToken); IBinder readStrongBinder = zza.readStrongBinder(); if (readStrongBinder == null) { zzabVar = null; } else { IInterface queryLocalInterface = readStrongBinder.queryLocalInterface("com.google.android.gms.vision.text.internal.client.INativeTextRecognizer"); if (queryLocalInterface instanceof zzaa) { zzabVar = (zzaa) queryLocalInterface; } else { zzabVar = new zzab(readStrongBinder); } } zza.recycle(); return zzabVar; } }