package f0; import d0.y.b; import d0.z.d.m; import g0.n; import g0.y; import java.io.File; import java.io.FileInputStream; import okhttp3.MediaType; import okhttp3.RequestBody; import okio.BufferedSink; /* compiled from: RequestBody.kt */ public final class a0 extends RequestBody { public final /* synthetic */ File a; public final /* synthetic */ MediaType b; public a0(File file, MediaType mediaType) { this.a = file; this.b = mediaType; } @Override // okhttp3.RequestBody public long contentLength() { return this.a.length(); } @Override // okhttp3.RequestBody public MediaType contentType() { return this.b; } /* JADX WARNING: Code restructure failed: missing block: B:10:0x002c, code lost: throw r1; */ /* JADX WARNING: Code restructure failed: missing block: B:8:0x0028, code lost: r1 = move-exception; */ /* JADX WARNING: Code restructure failed: missing block: B:9:0x0029, code lost: d0.y.b.closeFinally(r0, r4); */ @Override // okhttp3.RequestBody public void writeTo(BufferedSink bufferedSink) { m.checkParameterIsNotNull(bufferedSink, "sink"); File file = this.a; m.checkParameterIsNotNull(file, "$this$source"); FileInputStream fileInputStream = new FileInputStream(file); m.checkParameterIsNotNull(fileInputStream, "$this$source"); n nVar = new n(fileInputStream, new y()); bufferedSink.O(nVar); b.closeFinally(nVar, null); } }