package v11; import android.content.Intent; import dm3.p; import em3.q; import java.io.IOException; import jp.naver.line.android.R; import kotlin.ResultKt; import kotlin.Unit; import og.a; import rg.a; import um3.h0; import vl3.a; import wl3.e; import wl3.i; import x11.e; @e(c = "com.linecorp.line.settings.backuprestore.data.BackupRestoreRepository$checkGoogleDriveAuthenticated$2", f = "BackupRestoreRepository.kt", l = {147}, m = "invokeSuspend") public final class d extends i implements p<h0, ul3.d<? super x11.e>, Object> { /* renamed from: b reason: collision with root package name */ public int f169385b; /* renamed from: c reason: collision with root package name */ public final /* synthetic */ a f169386c; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(a aVar, ul3.d<? super d> dVar) { super(2, dVar); this.f169386c = aVar; } @Override // wl3.a public final ul3.d<Unit> create(Object obj, ul3.d<?> dVar) { return new d(this.f169386c, dVar); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */ @Override // dm3.p public Object invoke(h0 h0Var, ul3.d<? super x11.e> dVar) { return new d(this.f169386c, dVar).invokeSuspend(Unit.INSTANCE); } @Override // wl3.a public final Object invokeSuspend(Object obj) { a aVar = a.COROUTINE_SUSPENDED; int i14 = this.f169385b; boolean z14 = true; if (i14 == 0) { ResultKt.throwOnFailure(obj); a aVar2 = this.f169386c; this.f169385b = 1; obj = aVar2.e(this); if (obj == aVar) { return aVar; } } else if (i14 == 1) { ResultKt.throwOnFailure(obj); } else { throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine"); } String str = (String) obj; if (str.length() != 0) { z14 = false; } if (z14) { return e.b.f179532a; } fg.a e14 = fg.a.e(this.f169386c.f169372a, ql3.p.f("https://www.googleapis.com/auth/drive.appdata")); e14.d(str); a.b bVar = new a.b(new lg.e(), a.C2197a.f122925a, e14); bVar.f87660f = this.f169386c.f169372a.getString(R.string.app_name_RES_2131952796); try { a.C2614a.C2615a aVar3 = new a.C2614a.C2615a(new a.C2614a()); aVar3.p("storageQuota"); aVar3.h(); return e.a.f179531a; } catch (fg.d e15) { Intent c14 = e15.c(); q.e(c14, "e.intent"); return new e.c(c14); } catch (IOException unused) { return e.d.f179534a; } } }