package com.applovin.impl; import android.os.Binder; import android.os.Bundle; import android.os.IBinder; import android.os.Parcel; import android.os.RemoteException; import com.applovin.impl.eb; /* loaded from: classes.dex */ public abstract class m2 extends Binder { private static final int a; static { a = xp.a >= 30 ? IBinder.getSuggestedMaxIpcSizeBytes() : 65536; } public static eb a(IBinder iBinder) { int readInt; eb.a f = eb.f(); int i = 0; int i2 = 1; while (i2 != 0) { Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInt(i); try { iBinder.transact(1, obtain, obtain2, 0); while (true) { readInt = obtain2.readInt(); if (readInt == 1) { f.b((Bundle) b1.a(obtain2.readBundle())); i++; } } obtain2.recycle(); obtain.recycle(); i2 = readInt; } catch (RemoteException e) { throw new RuntimeException(e); } } catch (Throwable th) { obtain2.recycle(); obtain.recycle(); throw th; } } return f.a(); } }