package L1;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class i {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f3967a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f3968b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final long f3969c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final long f3970d;

    public i(int i, int i5, long j8, long j9) {
        this.f3967a = i;
        this.f3968b = i5;
        this.f3969c = j8;
        this.f3970d = j9;
    }

    public static i a(File file) throws IOException {
        DataInputStream dataInputStream = new DataInputStream(new FileInputStream(file));
        try {
            i iVar = new i(dataInputStream.readInt(), dataInputStream.readInt(), dataInputStream.readLong(), dataInputStream.readLong());
            dataInputStream.close();
            return iVar;
        } finally {
        }
    }

    public final void b(File file) throws IOException {
        file.delete();
        DataOutputStream dataOutputStream = new DataOutputStream(new FileOutputStream(file));
        try {
            dataOutputStream.writeInt(this.f3967a);
            dataOutputStream.writeInt(this.f3968b);
            dataOutputStream.writeLong(this.f3969c);
            dataOutputStream.writeLong(this.f3970d);
            dataOutputStream.close();
        } catch (Throwable th) {
            try {
                dataOutputStream.close();
            } catch (Throwable th2) {
                th.addSuppressed(th2);
            }
            throw th;
        }
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && (obj instanceof i)) {
            i iVar = (i) obj;
            if (this.f3968b == iVar.f3968b && this.f3969c == iVar.f3969c && this.f3967a == iVar.f3967a && this.f3970d == iVar.f3970d) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return Objects.hash(Integer.valueOf(this.f3968b), Long.valueOf(this.f3969c), Integer.valueOf(this.f3967a), Long.valueOf(this.f3970d));
    }
}
