package c.b.a.u.y;

import c.b.a.r;
import com.google.gson.Gson;
import com.google.gson.internal.bind.ReflectiveTypeAdapterFactory;
import com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper;
import java.lang.reflect.Field;

/* JADX INFO: loaded from: classes.dex */
public class c extends ReflectiveTypeAdapterFactory.a {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Field f1373d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ boolean f1374e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ r f1375f;
    public final /* synthetic */ Gson g;
    public final /* synthetic */ c.b.a.v.a h;
    public final /* synthetic */ boolean i;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public c(ReflectiveTypeAdapterFactory reflectiveTypeAdapterFactory, String str, boolean z, boolean z2, Field field, boolean z3, r rVar, Gson gson, c.b.a.v.a aVar, boolean z4) {
        super(str, z, z2);
        this.f1373d = field;
        this.f1374e = z3;
        this.f1375f = rVar;
        this.g = gson;
        this.h = aVar;
        this.i = z4;
    }

    @Override // com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a
    public void a(c.b.a.w.a aVar, Object obj) throws IllegalAccessException {
        Object objA = this.f1375f.a(aVar);
        if (objA == null && this.i) {
            return;
        }
        this.f1373d.set(obj, objA);
    }

    @Override // com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a
    public void b(c.b.a.w.c cVar, Object obj) throws IllegalAccessException {
        (this.f1374e ? this.f1375f : new TypeAdapterRuntimeTypeWrapper(this.g, this.f1375f, this.h.f1382b)).b(cVar, this.f1373d.get(obj));
    }

    @Override // com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.a
    public boolean c(Object obj) {
        return this.f1595b && this.f1373d.get(obj) != obj;
    }
}
