jimu-decompiled/sources/com/tencent/bugly/proguard/p.java
2025-05-13 19:24:51 +02:00

812 lines
30 KiB
Java

package com.tencent.bugly.proguard;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.liulishuo.filedownloader.model.FileDownloadModel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/* compiled from: BUGLY */
/* loaded from: classes.dex */
public final class p {
private static p a = null;
private static q b = null;
private static boolean c = false;
/* compiled from: BUGLY */
class a extends Thread {
private int a;
private o b;
private String c;
private ContentValues d;
private boolean e;
private String[] f;
private String g;
private String[] h;
private String i;
private String j;
private String k;
private String l;
private String m;
private String[] n;
private int o;
private String p;
private byte[] q;
public a(int i, o oVar) {
this.a = i;
this.b = oVar;
}
public final void a(int i, String str, byte[] bArr) {
this.o = i;
this.p = str;
this.q = bArr;
}
@Override // java.lang.Thread, java.lang.Runnable
public final void run() {
switch (this.a) {
case 1:
p.this.a(this.c, this.d, this.b);
break;
case 2:
p.this.a(this.c, this.m, this.n, this.b);
break;
case 3:
Cursor a = p.this.a(this.e, this.c, this.f, this.g, this.h, this.i, this.j, this.k, this.l, this.b);
if (a != null) {
a.close();
break;
}
break;
case 4:
p.this.a(this.o, this.p, this.q, this.b);
break;
case 5:
p.this.a(this.o, this.b);
break;
case 6:
p.this.a(this.o, this.p, this.b);
break;
}
}
}
private p(Context context, List<com.tencent.bugly.a> list) {
b = new q(context, list);
}
private synchronized boolean b(r rVar) {
ContentValues d;
if (rVar == null) {
return false;
}
try {
SQLiteDatabase writableDatabase = b.getWritableDatabase();
if (writableDatabase == null || (d = d(rVar)) == null) {
return false;
}
long replace = writableDatabase.replace("t_pf", FileDownloadModel.ID, d);
if (replace < 0) {
return false;
}
x.c("[Database] insert %s success.", "t_pf");
rVar.a = replace;
return true;
} catch (Throwable th) {
try {
if (!x.a(th)) {
th.printStackTrace();
}
return false;
} finally {
}
}
}
private static ContentValues c(r rVar) {
if (rVar == null) {
return null;
}
try {
ContentValues contentValues = new ContentValues();
if (rVar.a > 0) {
contentValues.put(FileDownloadModel.ID, Long.valueOf(rVar.a));
}
contentValues.put("_tp", Integer.valueOf(rVar.b));
contentValues.put("_pc", rVar.c);
contentValues.put("_th", rVar.d);
contentValues.put("_tm", Long.valueOf(rVar.e));
if (rVar.g != null) {
contentValues.put("_dt", rVar.g);
}
return contentValues;
} catch (Throwable th) {
if (!x.a(th)) {
th.printStackTrace();
}
return null;
}
}
private static ContentValues d(r rVar) {
if (rVar != null && !z.a(rVar.f)) {
try {
ContentValues contentValues = new ContentValues();
if (rVar.a > 0) {
contentValues.put(FileDownloadModel.ID, Long.valueOf(rVar.a));
}
contentValues.put("_tp", rVar.f);
contentValues.put("_tm", Long.valueOf(rVar.e));
if (rVar.g != null) {
contentValues.put("_dt", rVar.g);
}
return contentValues;
} catch (Throwable th) {
if (!x.a(th)) {
th.printStackTrace();
}
}
}
return null;
}
public static synchronized p a(Context context, List<com.tencent.bugly.a> list) {
p pVar;
synchronized (p.class) {
if (a == null) {
a = new p(context, list);
}
pVar = a;
}
return pVar;
}
public static synchronized p a() {
p pVar;
synchronized (p.class) {
pVar = a;
}
return pVar;
}
public final long a(String str, ContentValues contentValues, o oVar, boolean z) {
return a(str, contentValues, (o) null);
}
private synchronized List<r> c(int i) {
Cursor cursor;
try {
SQLiteDatabase writableDatabase = b.getWritableDatabase();
if (writableDatabase != null) {
String str = "_id = " + i;
cursor = writableDatabase.query("t_pf", null, str, null, null, null, null);
if (cursor == null) {
return null;
}
try {
StringBuilder sb = new StringBuilder();
ArrayList arrayList = new ArrayList();
while (cursor.moveToNext()) {
r b2 = b(cursor);
if (b2 != null) {
arrayList.add(b2);
} else {
try {
String string = cursor.getString(cursor.getColumnIndex("_tp"));
sb.append(" or _tp");
sb.append(" = ");
sb.append(string);
} catch (Throwable unused) {
x.d("[Database] unknown id.", new Object[0]);
}
}
}
if (sb.length() > 0) {
sb.append(" and _id");
sb.append(" = ");
sb.append(i);
x.d("[Database] deleted %s illegal data %d.", "t_pf", Integer.valueOf(writableDatabase.delete("t_pf", str.substring(4), null)));
}
if (cursor != null) {
cursor.close();
}
return arrayList;
} catch (Throwable th) {
th = th;
try {
if (!x.a(th)) {
th.printStackTrace();
}
if (cursor != null) {
cursor.close();
}
return null;
} finally {
if (cursor != null) {
cursor.close();
}
}
}
}
} catch (Throwable th2) {
th = th2;
cursor = null;
}
return null;
}
public final Cursor a(String str, String[] strArr, String str2, String[] strArr2, o oVar, boolean z) {
return a(false, str, strArr, str2, null, null, null, null, null, null);
}
public final int a(String str, String str2, String[] strArr, o oVar, boolean z) {
return a(str, str2, (String[]) null, (o) null);
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:25:0x003f, code lost:
if (r9 != null) goto L13;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public synchronized long a(java.lang.String r7, android.content.ContentValues r8, com.tencent.bugly.proguard.o r9) {
/*
r6 = this;
monitor-enter(r6)
r0 = 0
com.tencent.bugly.proguard.q r2 = com.tencent.bugly.proguard.p.b // Catch: java.lang.Throwable -> L35
android.database.sqlite.SQLiteDatabase r2 = r2.getWritableDatabase() // Catch: java.lang.Throwable -> L35
if (r2 == 0) goto L2d
if (r8 == 0) goto L2d
java.lang.String r3 = "_id"
long r2 = r2.replace(r7, r3, r8) // Catch: java.lang.Throwable -> L35
r8 = 0
r4 = 1
int r5 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))
if (r5 < 0) goto L23
java.lang.String r5 = "[Database] insert %s success."
java.lang.Object[] r4 = new java.lang.Object[r4] // Catch: java.lang.Throwable -> L35
r4[r8] = r7 // Catch: java.lang.Throwable -> L35
com.tencent.bugly.proguard.x.c(r5, r4) // Catch: java.lang.Throwable -> L35
goto L2c
L23:
java.lang.String r5 = "[Database] replace %s error."
java.lang.Object[] r4 = new java.lang.Object[r4] // Catch: java.lang.Throwable -> L35
r4[r8] = r7 // Catch: java.lang.Throwable -> L35
com.tencent.bugly.proguard.x.d(r5, r4) // Catch: java.lang.Throwable -> L35
L2c:
r0 = r2
L2d:
if (r9 == 0) goto L42
L2f:
java.lang.Long.valueOf(r0) // Catch: java.lang.Throwable -> L33
goto L42
L33:
r7 = move-exception
goto L4b
L35:
r7 = move-exception
boolean r8 = com.tencent.bugly.proguard.x.a(r7) // Catch: java.lang.Throwable -> L44
if (r8 != 0) goto L3f
r7.printStackTrace() // Catch: java.lang.Throwable -> L44
L3f:
if (r9 == 0) goto L42
goto L2f
L42:
monitor-exit(r6)
return r0
L44:
r7 = move-exception
if (r9 == 0) goto L4a
java.lang.Long.valueOf(r0) // Catch: java.lang.Throwable -> L33
L4a:
throw r7 // Catch: java.lang.Throwable -> L33
L4b:
monitor-exit(r6)
throw r7
*/
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.proguard.p.a(java.lang.String, android.content.ContentValues, com.tencent.bugly.proguard.o):long");
}
public final synchronized void b(int i) {
String str;
SQLiteDatabase writableDatabase = b.getWritableDatabase();
if (writableDatabase != null) {
if (i >= 0) {
try {
str = "_tp = " + i;
} catch (Throwable th) {
if (x.a(th)) {
return;
}
th.printStackTrace();
return;
}
} else {
str = null;
}
x.c("[Database] deleted %s data %d", "t_lr", Integer.valueOf(writableDatabase.delete("t_lr", str, null)));
}
}
/* JADX INFO: Access modifiers changed from: private */
public synchronized Cursor a(boolean z, String str, String[] strArr, String str2, String[] strArr2, String str3, String str4, String str5, String str6, o oVar) {
Cursor cursor;
cursor = null;
try {
SQLiteDatabase writableDatabase = b.getWritableDatabase();
if (writableDatabase != null) {
cursor = writableDatabase.query(z, str, strArr, str2, strArr2, str3, str4, str5, str6);
}
} finally {
try {
return cursor;
} finally {
}
}
return cursor;
}
private static r b(Cursor cursor) {
if (cursor == null) {
return null;
}
try {
r rVar = new r();
rVar.a = cursor.getLong(cursor.getColumnIndex(FileDownloadModel.ID));
rVar.e = cursor.getLong(cursor.getColumnIndex("_tm"));
rVar.f = cursor.getString(cursor.getColumnIndex("_tp"));
rVar.g = cursor.getBlob(cursor.getColumnIndex("_dt"));
return rVar;
} catch (Throwable th) {
if (!x.a(th)) {
th.printStackTrace();
}
return null;
}
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:21:0x0020, code lost:
if (r6 != null) goto L8;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public synchronized int a(java.lang.String r3, java.lang.String r4, java.lang.String[] r5, com.tencent.bugly.proguard.o r6) {
/*
r2 = this;
monitor-enter(r2)
r0 = 0
com.tencent.bugly.proguard.q r1 = com.tencent.bugly.proguard.p.b // Catch: java.lang.Throwable -> L16
android.database.sqlite.SQLiteDatabase r1 = r1.getWritableDatabase() // Catch: java.lang.Throwable -> L16
if (r1 == 0) goto Le
int r0 = r1.delete(r3, r4, r5) // Catch: java.lang.Throwable -> L16
Le:
if (r6 == 0) goto L23
L10:
java.lang.Integer.valueOf(r0) // Catch: java.lang.Throwable -> L14
goto L23
L14:
r3 = move-exception
goto L2c
L16:
r3 = move-exception
boolean r4 = com.tencent.bugly.proguard.x.a(r3) // Catch: java.lang.Throwable -> L25
if (r4 != 0) goto L20
r3.printStackTrace() // Catch: java.lang.Throwable -> L25
L20:
if (r6 == 0) goto L23
goto L10
L23:
monitor-exit(r2)
return r0
L25:
r3 = move-exception
if (r6 == 0) goto L2b
java.lang.Integer.valueOf(r0) // Catch: java.lang.Throwable -> L14
L2b:
throw r3 // Catch: java.lang.Throwable -> L14
L2c:
monitor-exit(r2)
throw r3
*/
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.proguard.p.a(java.lang.String, java.lang.String, java.lang.String[], com.tencent.bugly.proguard.o):int");
}
public final boolean a(int i, String str, byte[] bArr, o oVar, boolean z) {
if (!z) {
a aVar = new a(4, null);
aVar.a(i, str, bArr);
w.a().a(aVar);
return true;
}
return a(i, str, bArr, (o) null);
}
public final Map<String, byte[]> a(int i, o oVar, boolean z) {
return a(i, (o) null);
}
public final boolean a(int i, String str, o oVar, boolean z) {
return a(555, str, (o) null);
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:15:0x0027, code lost:
if (r8 != null) goto L5;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x002a, code lost:
return r0;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public boolean a(int r5, java.lang.String r6, byte[] r7, com.tencent.bugly.proguard.o r8) {
/*
r4 = this;
r0 = 0
com.tencent.bugly.proguard.r r1 = new com.tencent.bugly.proguard.r // Catch: java.lang.Throwable -> L1d
r1.<init>() // Catch: java.lang.Throwable -> L1d
long r2 = (long) r5 // Catch: java.lang.Throwable -> L1d
r1.a = r2 // Catch: java.lang.Throwable -> L1d
r1.f = r6 // Catch: java.lang.Throwable -> L1d
long r5 = java.lang.System.currentTimeMillis() // Catch: java.lang.Throwable -> L1d
r1.e = r5 // Catch: java.lang.Throwable -> L1d
r1.g = r7 // Catch: java.lang.Throwable -> L1d
boolean r0 = r4.b(r1) // Catch: java.lang.Throwable -> L1d
if (r8 == 0) goto L2a
L19:
java.lang.Boolean.valueOf(r0)
goto L2a
L1d:
r5 = move-exception
boolean r6 = com.tencent.bugly.proguard.x.a(r5) // Catch: java.lang.Throwable -> L2b
if (r6 != 0) goto L27
r5.printStackTrace() // Catch: java.lang.Throwable -> L2b
L27:
if (r8 == 0) goto L2a
goto L19
L2a:
return r0
L2b:
r5 = move-exception
if (r8 == 0) goto L31
java.lang.Boolean.valueOf(r0)
L31:
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.proguard.p.a(int, java.lang.String, byte[], com.tencent.bugly.proguard.o):boolean");
}
/* JADX INFO: Access modifiers changed from: private */
public Map<String, byte[]> a(int i, o oVar) {
HashMap hashMap = null;
try {
List<r> c2 = c(i);
if (c2 == null) {
return null;
}
HashMap hashMap2 = new HashMap();
try {
for (r rVar : c2) {
byte[] bArr = rVar.g;
if (bArr != null) {
hashMap2.put(rVar.f, bArr);
}
}
return hashMap2;
} catch (Throwable th) {
th = th;
hashMap = hashMap2;
if (x.a(th)) {
return hashMap;
}
th.printStackTrace();
return hashMap;
}
} catch (Throwable th2) {
th = th2;
}
}
public final synchronized boolean a(r rVar) {
ContentValues c2;
if (rVar == null) {
return false;
}
try {
SQLiteDatabase writableDatabase = b.getWritableDatabase();
if (writableDatabase == null || (c2 = c(rVar)) == null) {
return false;
}
long replace = writableDatabase.replace("t_lr", FileDownloadModel.ID, c2);
if (replace < 0) {
return false;
}
x.c("[Database] insert %s success.", "t_lr");
rVar.a = replace;
return true;
} catch (Throwable th) {
try {
if (!x.a(th)) {
th.printStackTrace();
}
return false;
} finally {
}
}
}
/* JADX WARN: Removed duplicated region for block: B:44:0x00a8 A[Catch: all -> 0x00b1, TRY_LEAVE, TryCatch #0 {all -> 0x00b1, blocks: (B:42:0x00a2, B:44:0x00a8), top: B:41:0x00a2, outer: #3 }] */
/* JADX WARN: Removed duplicated region for block: B:47:0x00ad A[Catch: all -> 0x00ba, TRY_ENTER, TryCatch #3 {, blocks: (B:3:0x0001, B:11:0x0032, B:37:0x009c, B:47:0x00ad, B:50:0x00b4, B:51:0x00b7, B:42:0x00a2, B:44:0x00a8), top: B:2:0x0001, inners: #0 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public final synchronized java.util.List<com.tencent.bugly.proguard.r> a(int r11) {
/*
r10 = this;
monitor-enter(r10)
com.tencent.bugly.proguard.q r0 = com.tencent.bugly.proguard.p.b // Catch: java.lang.Throwable -> Lba
android.database.sqlite.SQLiteDatabase r0 = r0.getWritableDatabase() // Catch: java.lang.Throwable -> Lba
r9 = 0
if (r0 == 0) goto Lb8
if (r11 < 0) goto L21
java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L1c
java.lang.String r2 = "_tp = "
r1.<init>(r2) // Catch: java.lang.Throwable -> L1c
r1.append(r11) // Catch: java.lang.Throwable -> L1c
java.lang.String r11 = r1.toString() // Catch: java.lang.Throwable -> L1c
r4 = r11
goto L22
L1c:
r11 = move-exception
r0 = r11
r11 = r9
goto La2
L21:
r4 = r9
L22:
java.lang.String r2 = "t_lr"
r3 = 0
r5 = 0
r6 = 0
r7 = 0
r8 = 0
r1 = r0
android.database.Cursor r11 = r1.query(r2, r3, r4, r5, r6, r7, r8) // Catch: java.lang.Throwable -> L1c
if (r11 != 0) goto L37
if (r11 == 0) goto L35
r11.close() // Catch: java.lang.Throwable -> Lba
L35:
monitor-exit(r10)
return r9
L37:
java.lang.StringBuilder r1 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> La1
r1.<init>() // Catch: java.lang.Throwable -> La1
java.util.ArrayList r2 = new java.util.ArrayList // Catch: java.lang.Throwable -> La1
r2.<init>() // Catch: java.lang.Throwable -> La1
L41:
boolean r3 = r11.moveToNext() // Catch: java.lang.Throwable -> La1
r4 = 0
if (r3 == 0) goto L72
com.tencent.bugly.proguard.r r3 = a(r11) // Catch: java.lang.Throwable -> La1
if (r3 == 0) goto L52
r2.add(r3) // Catch: java.lang.Throwable -> La1
goto L41
L52:
java.lang.String r3 = "_id"
int r3 = r11.getColumnIndex(r3) // Catch: java.lang.Throwable -> L6a
long r5 = r11.getLong(r3) // Catch: java.lang.Throwable -> L6a
java.lang.String r3 = " or _id"
r1.append(r3) // Catch: java.lang.Throwable -> L6a
java.lang.String r3 = " = "
r1.append(r3) // Catch: java.lang.Throwable -> L6a
r1.append(r5) // Catch: java.lang.Throwable -> L6a
goto L41
L6a:
java.lang.String r3 = "[Database] unknown id."
java.lang.Object[] r4 = new java.lang.Object[r4] // Catch: java.lang.Throwable -> La1
com.tencent.bugly.proguard.x.d(r3, r4) // Catch: java.lang.Throwable -> La1
goto L41
L72:
java.lang.String r1 = r1.toString() // Catch: java.lang.Throwable -> La1
int r3 = r1.length() // Catch: java.lang.Throwable -> La1
if (r3 <= 0) goto L9a
r3 = 4
java.lang.String r1 = r1.substring(r3) // Catch: java.lang.Throwable -> La1
java.lang.String r3 = "t_lr"
int r0 = r0.delete(r3, r1, r9) // Catch: java.lang.Throwable -> La1
java.lang.String r1 = "[Database] deleted %s illegal data %d"
r3 = 2
java.lang.Object[] r3 = new java.lang.Object[r3] // Catch: java.lang.Throwable -> La1
java.lang.String r5 = "t_lr"
r3[r4] = r5 // Catch: java.lang.Throwable -> La1
r4 = 1
java.lang.Integer r0 = java.lang.Integer.valueOf(r0) // Catch: java.lang.Throwable -> La1
r3[r4] = r0 // Catch: java.lang.Throwable -> La1
com.tencent.bugly.proguard.x.d(r1, r3) // Catch: java.lang.Throwable -> La1
L9a:
if (r11 == 0) goto L9f
r11.close() // Catch: java.lang.Throwable -> Lba
L9f:
monitor-exit(r10)
return r2
La1:
r0 = move-exception
La2:
boolean r1 = com.tencent.bugly.proguard.x.a(r0) // Catch: java.lang.Throwable -> Lb1
if (r1 != 0) goto Lab
r0.printStackTrace() // Catch: java.lang.Throwable -> Lb1
Lab:
if (r11 == 0) goto Lb8
r11.close() // Catch: java.lang.Throwable -> Lba
goto Lb8
Lb1:
r0 = move-exception
if (r11 == 0) goto Lb7
r11.close() // Catch: java.lang.Throwable -> Lba
Lb7:
throw r0 // Catch: java.lang.Throwable -> Lba
Lb8:
monitor-exit(r10)
return r9
Lba:
r11 = move-exception
monitor-exit(r10)
throw r11
*/
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.proguard.p.a(int):java.util.List");
}
public final synchronized void a(List<r> list) {
if (list != null) {
if (list.size() != 0) {
SQLiteDatabase writableDatabase = b.getWritableDatabase();
if (writableDatabase != null) {
StringBuilder sb = new StringBuilder();
for (r rVar : list) {
sb.append(" or _id");
sb.append(" = ");
sb.append(rVar.a);
}
String sb2 = sb.toString();
if (sb2.length() > 0) {
sb2 = sb2.substring(4);
}
sb.setLength(0);
try {
x.c("[Database] deleted %s data %d", "t_lr", Integer.valueOf(writableDatabase.delete("t_lr", sb2, null)));
} catch (Throwable th) {
if (x.a(th)) {
return;
}
th.printStackTrace();
}
}
}
}
}
private static r a(Cursor cursor) {
if (cursor == null) {
return null;
}
try {
r rVar = new r();
rVar.a = cursor.getLong(cursor.getColumnIndex(FileDownloadModel.ID));
rVar.b = cursor.getInt(cursor.getColumnIndex("_tp"));
rVar.c = cursor.getString(cursor.getColumnIndex("_pc"));
rVar.d = cursor.getString(cursor.getColumnIndex("_th"));
rVar.e = cursor.getLong(cursor.getColumnIndex("_tm"));
rVar.g = cursor.getBlob(cursor.getColumnIndex("_dt"));
return rVar;
} catch (Throwable th) {
if (!x.a(th)) {
th.printStackTrace();
}
return null;
}
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Code restructure failed: missing block: B:27:0x006e, code lost:
if (r7 != null) goto L14;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct code enable 'Show inconsistent code' option in preferences
*/
public synchronized boolean a(int r5, java.lang.String r6, com.tencent.bugly.proguard.o r7) {
/*
r4 = this;
monitor-enter(r4)
r0 = 0
com.tencent.bugly.proguard.q r1 = com.tencent.bugly.proguard.p.b // Catch: java.lang.Throwable -> L64
android.database.sqlite.SQLiteDatabase r1 = r1.getWritableDatabase() // Catch: java.lang.Throwable -> L64
if (r1 == 0) goto L5c
boolean r2 = com.tencent.bugly.proguard.z.a(r6) // Catch: java.lang.Throwable -> L64
if (r2 == 0) goto L1f
java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L64
java.lang.String r2 = "_id = "
r6.<init>(r2) // Catch: java.lang.Throwable -> L64
r6.append(r5) // Catch: java.lang.Throwable -> L64
java.lang.String r5 = r6.toString() // Catch: java.lang.Throwable -> L64
goto L3f
L1f:
java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L64
java.lang.String r3 = "_id = "
r2.<init>(r3) // Catch: java.lang.Throwable -> L64
r2.append(r5) // Catch: java.lang.Throwable -> L64
java.lang.String r5 = " and _tp"
r2.append(r5) // Catch: java.lang.Throwable -> L64
java.lang.String r5 = " = \""
r2.append(r5) // Catch: java.lang.Throwable -> L64
r2.append(r6) // Catch: java.lang.Throwable -> L64
java.lang.String r5 = "\""
r2.append(r5) // Catch: java.lang.Throwable -> L64
java.lang.String r5 = r2.toString() // Catch: java.lang.Throwable -> L64
L3f:
java.lang.String r6 = "t_pf"
r2 = 0
int r5 = r1.delete(r6, r5, r2) // Catch: java.lang.Throwable -> L64
java.lang.String r6 = "[Database] deleted %s data %d"
r1 = 2
java.lang.Object[] r1 = new java.lang.Object[r1] // Catch: java.lang.Throwable -> L64
java.lang.String r2 = "t_pf"
r1[r0] = r2 // Catch: java.lang.Throwable -> L64
java.lang.Integer r2 = java.lang.Integer.valueOf(r5) // Catch: java.lang.Throwable -> L64
r3 = 1
r1[r3] = r2 // Catch: java.lang.Throwable -> L64
com.tencent.bugly.proguard.x.c(r6, r1) // Catch: java.lang.Throwable -> L64
if (r5 <= 0) goto L5c
r0 = 1
L5c:
if (r7 == 0) goto L71
L5e:
java.lang.Boolean.valueOf(r0) // Catch: java.lang.Throwable -> L62
goto L71
L62:
r5 = move-exception
goto L7a
L64:
r5 = move-exception
boolean r6 = com.tencent.bugly.proguard.x.a(r5) // Catch: java.lang.Throwable -> L73
if (r6 != 0) goto L6e
r5.printStackTrace() // Catch: java.lang.Throwable -> L73
L6e:
if (r7 == 0) goto L71
goto L5e
L71:
monitor-exit(r4)
return r0
L73:
r5 = move-exception
if (r7 == 0) goto L79
java.lang.Boolean.valueOf(r0) // Catch: java.lang.Throwable -> L62
L79:
throw r5 // Catch: java.lang.Throwable -> L62
L7a:
monitor-exit(r4)
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: com.tencent.bugly.proguard.p.a(int, java.lang.String, com.tencent.bugly.proguard.o):boolean");
}
}