package com.tencent.mm.at.a.f;

import android.graphics.Bitmap;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.at.a.a.c;
import com.tencent.mm.at.a.c.a;
import com.tencent.mm.at.a.c.d;
import com.tencent.mm.at.a.c.e;
import com.tencent.mm.at.a.c.f;
import com.tencent.mm.at.a.c.g;
import com.tencent.mm.at.a.c.i;
import com.tencent.mm.at.a.c.j;
import com.tencent.mm.at.a.c.k;
import com.tencent.mm.at.a.c.l;
import com.tencent.mm.at.a.c.m;
import com.tencent.mm.at.a.c.n;
import com.tencent.mm.at.a.c.o;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ak;
import com.tencent.mm.sdk.platformtools.bo;

public final class b implements Runnable {
    private final com.tencent.mm.at.a.a.b fGK = this.fHp.fGK;
    public final c fGS;
    private final m fGT;
    private final a fGU;
    private final com.tencent.mm.at.a.c.b fGV;
    private final j fGX;
    private final e fGZ;
    private final n fHc;
    private final o fHk;
    private final com.tencent.mm.at.a.b fHp;
    public final com.tencent.mm.at.a.c fHr;
    private final ak fHs;
    private final i fHt;
    private final g fHu;
    private final f fHv;
    private final k fHw;
    private final d fHx;
    private final l fHy;
    public final String url;

    public b(String str, com.tencent.mm.at.a.c cVar, ak akVar, c cVar2, i iVar, com.tencent.mm.at.a.b bVar, g gVar) {
        AppMethodBeat.i(116106);
        this.url = str;
        this.fHr = cVar;
        this.fHs = akVar;
        this.fHp = bVar;
        this.fHu = gVar;
        if (cVar2 == null) {
            this.fGS = this.fGK.fGS;
        } else {
            this.fGS = cVar2;
        }
        this.fHt = iVar;
        this.fGX = this.fGK.fGX;
        if (this.fGS.fGV != null) {
            this.fGV = this.fGS.fGV;
        } else {
            this.fGV = this.fGK.fGV;
        }
        this.fHk = this.fGS.fHk;
        this.fGT = this.fGK.fGT;
        this.fGU = this.fGK.fGU;
        this.fHv = this.fGK.fGW;
        this.fHw = this.fGK.fGY;
        this.fGZ = this.fGK.fGZ;
        this.fHx = null;
        this.fHy = null;
        this.fHc = this.fGK.fHc;
        AppMethodBeat.o(116106);
    }

    /* JADX WARNING: Unknown top exception splitter block from list: {B:210:0x0607=Splitter:B:210:0x0607, B:61:0x020e=Splitter:B:61:0x020e, B:44:0x019f=Splitter:B:44:0x019f} */
    public final void run() {
        /*
        r18 = this;
        r2 = 116107; // 0x1c58b float:1.627E-40 double:5.73645E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r2);
        r10 = 0;
        r9 = new com.tencent.mm.at.a.d.b;
        r9.<init>();
        r2 = 1;
        r9.from = r2;
        r0 = r18;
        r2 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r12 = r0.sJ(r2);	 Catch:{ Exception -> 0x02ae }
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run. get bitmap from disk. key:%s";
        r4 = 1;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x02ae }
        r5 = 0;
        r0 = r18;
        r6 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r4[r5] = r6;	 Catch:{ Exception -> 0x02ae }
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3, r4);	 Catch:{ Exception -> 0x02ae }
        r14 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r13 = r2.fHe;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r0 = r2.ePP;	 Catch:{ Exception -> 0x02ae }
        r16 = r0;
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r0 = r2.cvZ;	 Catch:{ Exception -> 0x02ae }
        r17 = r0;
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "hy: should check md5:";
        r4 = java.lang.String.valueOf(r16);	 Catch:{ Exception -> 0x02ae }
        r3 = r3.concat(r4);	 Catch:{ Exception -> 0x02ae }
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3);	 Catch:{ Exception -> 0x02ae }
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "hy: fileType: %d";
        r4 = 1;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x02ae }
        r5 = 0;
        r6 = java.lang.Integer.valueOf(r13);	 Catch:{ Exception -> 0x02ae }
        r4[r5] = r6;	 Catch:{ Exception -> 0x02ae }
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3, r4);	 Catch:{ Exception -> 0x02ae }
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] test view width:%d height:%d";
        r4 = 2;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x02ae }
        r5 = 0;
        r0 = r18;
        r6 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r6 = r6.width;	 Catch:{ Exception -> 0x02ae }
        r6 = java.lang.Integer.valueOf(r6);	 Catch:{ Exception -> 0x02ae }
        r4[r5] = r6;	 Catch:{ Exception -> 0x02ae }
        r5 = 1;
        r0 = r18;
        r6 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r6 = r6.height;	 Catch:{ Exception -> 0x02ae }
        r6 = java.lang.Integer.valueOf(r6);	 Catch:{ Exception -> 0x02ae }
        r4[r5] = r6;	 Catch:{ Exception -> 0x02ae }
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3, r4);	 Catch:{ Exception -> 0x02ae }
        switch(r13) {
            case 1: goto L_0x0169;
            case 2: goto L_0x03d2;
            case 3: goto L_0x03ed;
            case 4: goto L_0x041b;
            case 5: goto L_0x034f;
            default: goto L_0x0093;
        };	 Catch:{ Exception -> 0x02ae }
    L_0x0093:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] unknow file type :%d";
        r4 = 1;
        r4 = new java.lang.Object[r4];	 Catch:{ Exception -> 0x02ae }
        r5 = 0;
        r6 = java.lang.Integer.valueOf(r13);	 Catch:{ Exception -> 0x02ae }
        r4[r5] = r6;	 Catch:{ Exception -> 0x02ae }
        com.tencent.mm.sdk.platformtools.ab.e(r2, r3, r4);	 Catch:{ Exception -> 0x02ae }
    L_0x00a6:
        r6 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x0675 }
        if (r10 == 0) goto L_0x00b2;
    L_0x00ac:
        r2 = r10.isRecycled();	 Catch:{ Exception -> 0x0675 }
        if (r2 == 0) goto L_0x05de;
    L_0x00b2:
        switch(r13) {
            case 1: goto L_0x05d2;
            case 2: goto L_0x05d2;
            case 3: goto L_0x05d2;
            case 4: goto L_0x05d2;
            case 5: goto L_0x043e;
            default: goto L_0x00b5;
        };	 Catch:{ Exception -> 0x0675 }
    L_0x00b5:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run unknow file type";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);	 Catch:{ Exception -> 0x0675 }
        r5 = r10;
    L_0x00bf:
        if (r5 == 0) goto L_0x065d;
    L_0x00c1:
        r2 = r5.isRecycled();
        if (r2 != 0) goto L_0x065d;
    L_0x00c7:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run. get bitmap successs.";
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3);
        r0 = r18;
        r2 = r0.fGS;
        r2 = r2.fHf;
        if (r2 == 0) goto L_0x00e2;
    L_0x00d8:
        r0 = r18;
        r2 = r0.fGS;
        r2 = r2.fHg;
        r5 = com.tencent.mm.sdk.platformtools.d.e(r5, r2);
    L_0x00e2:
        r2 = new com.tencent.mm.at.a.f.c;
        r0 = r18;
        r3 = r0.url;
        r0 = r18;
        r4 = r0.fHr;
        r0 = r18;
        r6 = r0.fHp;
        r0 = r18;
        r7 = r0.url;
        r0 = r18;
        r7 = r0.sJ(r7);
        r2.<init>(r3, r4, r5, r6, r7);
        r0 = r18;
        r3 = r0.fHs;
        if (r3 == 0) goto L_0x010a;
    L_0x0103:
        r0 = r18;
        r3 = r0.fHs;
        r3.post(r2);
    L_0x010a:
        r9.bitmap = r5;
        r2 = 0;
        r9.status = r2;
    L_0x010f:
        r0 = r18;
        r2 = r0.fHu;
        if (r2 == 0) goto L_0x012c;
    L_0x0115:
        if (r9 == 0) goto L_0x012c;
    L_0x0117:
        r9.bitmap = r5;
        r0 = r18;
        r2 = r0.fHu;
        r0 = r18;
        r3 = r0.url;
        r0 = r18;
        r4 = r0.fHr;
        r4 = r4.getImageView();
        r2.b(r3, r4, r9);
    L_0x012c:
        r0 = r18;
        r2 = r0.fHt;
        r0 = r18;
        r3 = r0.url;
        r0 = r18;
        r4 = r0.fHr;
        r4 = r4.getImageView();
        r0 = r18;
        r6 = r0.fGS;
        r6 = r6.eQd;
        r2.a(r3, r4, r5, r6);
        r0 = r18;
        r2 = r0.fHp;
        r3 = r2.fGO;
        if (r3 == 0) goto L_0x0162;
    L_0x014d:
        r0 = r18;
        r3 = r0.fHr;
        if (r3 == 0) goto L_0x0162;
    L_0x0153:
        r2 = r2.fGO;
        r0 = r18;
        r3 = r0.fHr;
        r3 = r3.eQF;
        r3 = java.lang.Integer.valueOf(r3);
        r2.remove(r3);
    L_0x0162:
        r2 = 116107; // 0x1c58b float:1.627E-40 double:5.73645E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r2);
        return;
    L_0x0169:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r2 = r2.thumbPath;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r3 = r3.fHh;	 Catch:{ Exception -> 0x02ae }
        if (r3 == 0) goto L_0x01c8;
    L_0x0177:
        r3 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r2);	 Catch:{ Exception -> 0x02ae }
        if (r3 != 0) goto L_0x01c8;
    L_0x017d:
        r3 = com.tencent.mm.vfs.e.ct(r2);	 Catch:{ Exception -> 0x02ae }
        if (r3 == 0) goto L_0x01c8;
    L_0x0183:
        r0 = r18;
        r3 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r3 = r3.eQa;	 Catch:{ Exception -> 0x02ae }
        if (r3 == 0) goto L_0x01b3;
    L_0x018b:
        r0 = r18;
        r3 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.b(r3, r2, r4, r5);	 Catch:{ Exception -> 0x02ae }
    L_0x019f:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r2 = r2.density;	 Catch:{ Exception -> 0x0671 }
        if (r2 <= 0) goto L_0x0687;
    L_0x01a7:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r2 = r2.density;	 Catch:{ Exception -> 0x0671 }
        r4.setDensity(r2);	 Catch:{ Exception -> 0x0671 }
        r10 = r4;
        goto L_0x00a6;
    L_0x01b3:
        r0 = r18;
        r3 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.a(r3, r2, r4, r5);	 Catch:{ Exception -> 0x02ae }
        goto L_0x019f;
    L_0x01c8:
        r0 = r18;
        r2 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r2 = com.tencent.mm.sdk.platformtools.bo.isNullOrNil(r2);	 Catch:{ Exception -> 0x02ae }
        if (r2 != 0) goto L_0x0344;
    L_0x01d2:
        r0 = r18;
        r2 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r2 = com.tencent.mm.vfs.e.ct(r2);	 Catch:{ Exception -> 0x02ae }
        if (r2 == 0) goto L_0x0339;
    L_0x01dc:
        if (r16 == 0) goto L_0x01ee;
    L_0x01de:
        r0 = r18;
        r2 = r0.fHw;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r0 = r17;
        r2 = r2.aM(r0, r3);	 Catch:{ Exception -> 0x02ae }
        if (r2 == 0) goto L_0x032c;
    L_0x01ee:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r2 = r2.eQa;	 Catch:{ Exception -> 0x02ae }
        if (r2 == 0) goto L_0x0259;
    L_0x01f6:
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.b(r2, r3, r4, r5);	 Catch:{ Exception -> 0x02ae }
    L_0x020e:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r2 = r2.eQh;	 Catch:{ Exception -> 0x0671 }
        if (r2 == 0) goto L_0x023a;
    L_0x0216:
        if (r4 != 0) goto L_0x023a;
    L_0x0218:
        r0 = r18;
        r2 = r0.fHy;	 Catch:{ Exception -> 0x0671 }
        if (r2 == 0) goto L_0x023a;
    L_0x021e:
        r0 = r18;
        r2 = r0.fHx;	 Catch:{ Exception -> 0x0671 }
        if (r2 == 0) goto L_0x031e;
    L_0x0224:
        r0 = r18;
        r2 = r0.fHy;	 Catch:{ Exception -> 0x0671 }
        r0 = r18;
        r3 = r0.fHx;	 Catch:{ Exception -> 0x0671 }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r5 = r5.eQd;	 Catch:{ Exception -> 0x0671 }
        r3 = r3.i(r5);	 Catch:{ Exception -> 0x0671 }
        r4 = r2.X(r3);	 Catch:{ Exception -> 0x0671 }
    L_0x023a:
        if (r4 == 0) goto L_0x024d;
    L_0x023c:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r2 = r2.density;	 Catch:{ Exception -> 0x0671 }
        if (r2 <= 0) goto L_0x024d;
    L_0x0244:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r2 = r2.density;	 Catch:{ Exception -> 0x0671 }
        r4.setDensity(r2);	 Catch:{ Exception -> 0x0671 }
    L_0x024d:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "hy: file md5 check success or do not need md5 check";
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3);	 Catch:{ Exception -> 0x0671 }
        r10 = r4;
        goto L_0x00a6;
    L_0x0259:
        r0 = r18;
        r2 = r0.fHk;	 Catch:{ Exception -> 0x02ae }
        if (r2 == 0) goto L_0x02c8;
    L_0x025f:
        r3 = 0;
        r0 = r18;
        r2 = r0.fHk;	 Catch:{ all -> 0x02a1 }
        r4 = new com.tencent.mm.vfs.d;	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r5 = r0.url;	 Catch:{ all -> 0x02a1 }
        r4.<init>(r5);	 Catch:{ all -> 0x02a1 }
        r3 = r2.ahI();	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ all -> 0x02a1 }
        r4 = r4.ePN;	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ all -> 0x02a1 }
        r5 = r5.ePO;	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ all -> 0x02a1 }
        r6 = r6.ePS;	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r7 = r0.fGS;	 Catch:{ all -> 0x02a1 }
        r7 = r7.alpha;	 Catch:{ all -> 0x02a1 }
        r0 = r18;
        r8 = r0.fGS;	 Catch:{ all -> 0x02a1 }
        r8 = r8.ePQ;	 Catch:{ all -> 0x02a1 }
        r4 = com.tencent.mm.at.a.g.a.a(r2, r3, r4, r5, r6, r7, r8);	 Catch:{ all -> 0x02a1 }
        if (r3 == 0) goto L_0x020e;
    L_0x0299:
        r3.close();	 Catch:{ IOException -> 0x029e }
        goto L_0x020e;
    L_0x029e:
        r2 = move-exception;
        goto L_0x020e;
    L_0x02a1:
        r2 = move-exception;
        if (r3 == 0) goto L_0x02a7;
    L_0x02a4:
        r3.close();	 Catch:{ IOException -> 0x0668 }
    L_0x02a7:
        r3 = 116107; // 0x1c58b float:1.627E-40 double:5.73645E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);	 Catch:{ Exception -> 0x02ae }
        throw r2;	 Catch:{ Exception -> 0x02ae }
    L_0x02ae:
        r2 = move-exception;
        r3 = r9;
        r4 = r10;
    L_0x02b1:
        r5 = "MicroMsg.imageloader.ImageLoadTask";
        r6 = "[cpan] run. exception. %s";
        r7 = 1;
        r7 = new java.lang.Object[r7];
        r8 = 0;
        r2 = r2.toString();
        r7[r8] = r2;
        com.tencent.mm.sdk.platformtools.ab.e(r5, r6, r7);
        r9 = r3;
        r5 = r4;
        goto L_0x00bf;
    L_0x02c8:
        r0 = r18;
        r2 = r0.fHx;	 Catch:{ Exception -> 0x02ae }
        if (r2 == 0) goto L_0x0304;
    L_0x02ce:
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.fHx;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.eQd;	 Catch:{ Exception -> 0x02ae }
        r3 = r3.i(r4);	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r6 = r6.ePS;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r7 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r7 = r7.alpha;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r8 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r8 = r8.ePQ;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.a(r2, r3, r4, r5, r6, r7, r8);	 Catch:{ Exception -> 0x02ae }
        goto L_0x020e;
    L_0x0304:
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.a(r2, r3, r4, r5);	 Catch:{ Exception -> 0x02ae }
        goto L_0x020e;
    L_0x031e:
        r0 = r18;
        r2 = r0.fHy;	 Catch:{ Exception -> 0x0671 }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x0671 }
        r4 = r2.sI(r3);	 Catch:{ Exception -> 0x0671 }
        goto L_0x023a;
    L_0x032c:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "hy: file md5 check failed";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);	 Catch:{ Exception -> 0x02ae }
        r4 = 0;
        r10 = r4;
        goto L_0x00a6;
    L_0x0339:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] file does not exist.";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);	 Catch:{ Exception -> 0x02ae }
        goto L_0x00a6;
    L_0x0344:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] url is null.";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);	 Catch:{ Exception -> 0x02ae }
        goto L_0x00a6;
    L_0x034f:
        r3 = 0;
        r2 = 0;
        r0 = r18;
        r4 = r0.fGU;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r5 = r0.url;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ all -> 0x03c5 }
        r3 = r4.d(r5, r6);	 Catch:{ all -> 0x03c5 }
        if (r3 == 0) goto L_0x068a;
    L_0x0363:
        if (r16 == 0) goto L_0x0371;
    L_0x0365:
        r0 = r18;
        r2 = r0.fHw;	 Catch:{ all -> 0x03c5 }
        r0 = r17;
        r2 = r2.b(r0, r3);	 Catch:{ all -> 0x03c5 }
        if (r2 == 0) goto L_0x03c2;
    L_0x0371:
        r11 = 1;
        r0 = r18;
        r2 = r0.fHk;	 Catch:{ all -> 0x03c5 }
        if (r2 == 0) goto L_0x0380;
    L_0x0378:
        r0 = r18;
        r2 = r0.fHk;	 Catch:{ all -> 0x03c5 }
        r3 = r2.ahI();	 Catch:{ all -> 0x03c5 }
    L_0x0380:
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ all -> 0x03c5 }
        r4 = r4.ePN;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ all -> 0x03c5 }
        r5 = r5.ePO;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ all -> 0x03c5 }
        r6 = r6.ePS;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r7 = r0.fGS;	 Catch:{ all -> 0x03c5 }
        r7 = r7.alpha;	 Catch:{ all -> 0x03c5 }
        r0 = r18;
        r8 = r0.fGS;	 Catch:{ all -> 0x03c5 }
        r8 = r8.ePQ;	 Catch:{ all -> 0x03c5 }
        r4 = com.tencent.mm.at.a.g.a.a(r2, r3, r4, r5, r6, r7, r8);	 Catch:{ all -> 0x03c5 }
        r2 = r11;
    L_0x03a7:
        if (r3 == 0) goto L_0x03ac;
    L_0x03a9:
        r3.close();	 Catch:{ IOException -> 0x066b }
    L_0x03ac:
        if (r2 == 0) goto L_0x0687;
    L_0x03ae:
        if (r4 != 0) goto L_0x0687;
    L_0x03b0:
        r0 = r18;
        r2 = r0.fGU;	 Catch:{ Exception -> 0x0671 }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x0671 }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x0671 }
        r2.c(r3, r5);	 Catch:{ Exception -> 0x0671 }
        r10 = r4;
        goto L_0x00a6;
    L_0x03c2:
        r2 = 1;
        r4 = 0;
        goto L_0x03a7;
    L_0x03c5:
        r2 = move-exception;
        if (r3 == 0) goto L_0x03cb;
    L_0x03c8:
        r3.close();	 Catch:{ IOException -> 0x066e }
    L_0x03cb:
        r3 = 116107; // 0x1c58b float:1.627E-40 double:5.73645E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);	 Catch:{ Exception -> 0x02ae }
        throw r2;	 Catch:{ Exception -> 0x02ae }
    L_0x03d2:
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.c(r2, r3, r4, r5);	 Catch:{ Exception -> 0x02ae }
        r10 = r4;
        goto L_0x00a6;
    L_0x03ed:
        r0 = r18;
        r2 = r0.fGK;	 Catch:{ Exception -> 0x02ae }
        r2 = r2.aEH;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r4 = "drawable";
        r0 = r18;
        r5 = r0.fGK;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.packageName;	 Catch:{ Exception -> 0x02ae }
        r2 = r2.getIdentifier(r3, r4, r5);	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.a(r3, r2, r4, r5);	 Catch:{ Exception -> 0x02ae }
        r10 = r4;
        goto L_0x00a6;
    L_0x041b:
        r0 = r18;
        r2 = r0.url;	 Catch:{ Exception -> 0x02ae }
        r2 = java.lang.Integer.valueOf(r2);	 Catch:{ Exception -> 0x02ae }
        r2 = r2.intValue();	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r3 = r0.fHr;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x02ae }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x02ae }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x02ae }
        r4 = com.tencent.mm.at.a.g.a.a(r3, r2, r4, r5);	 Catch:{ Exception -> 0x02ae }
        r10 = r4;
        goto L_0x00a6;
    L_0x043e:
        r14 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x0675 }
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run. get bitmap from memory failed.now try to get from network.";
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3);	 Catch:{ Exception -> 0x0675 }
        r0 = r18;
        r2 = r0.fHu;	 Catch:{ Exception -> 0x0675 }
        if (r2 == 0) goto L_0x0463;
    L_0x0451:
        r0 = r18;
        r2 = r0.fHu;	 Catch:{ Exception -> 0x0675 }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x0675 }
        r0 = r18;
        r4 = r0.fHr;	 Catch:{ Exception -> 0x0675 }
        r4.getImageView();	 Catch:{ Exception -> 0x0675 }
        r2.sH(r3);	 Catch:{ Exception -> 0x0675 }
    L_0x0463:
        r0 = r18;
        r2 = r0.fHc;	 Catch:{ Exception -> 0x0675 }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x0675 }
        r2 = r2.sG(r3);	 Catch:{ Exception -> 0x0675 }
        if (r2 == 0) goto L_0x0493;
    L_0x0471:
        r0 = r18;
        r2 = r0.fGV;	 Catch:{ Exception -> 0x0675 }
        r0 = r18;
        r3 = r0.url;	 Catch:{ Exception -> 0x0675 }
        r3 = r2.sE(r3);	 Catch:{ Exception -> 0x0675 }
    L_0x047d:
        if (r3 != 0) goto L_0x0684;
    L_0x047f:
        r9 = new com.tencent.mm.at.a.d.b;	 Catch:{ Exception -> 0x067a }
        r2 = 0;
        r4 = 0;
        r9.<init>(r2, r4);	 Catch:{ Exception -> 0x067a }
    L_0x0486:
        r2 = 2;
        r9.from = r2;	 Catch:{ Exception -> 0x04e5 }
        r2 = r9.data;	 Catch:{ Exception -> 0x04e5 }
        if (r2 != 0) goto L_0x049e;
    L_0x048d:
        r2 = 1;
        r9.status = r2;	 Catch:{ Exception -> 0x04e5 }
        r5 = r10;
        goto L_0x00bf;
    L_0x0493:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "can not download image, over limit";
        com.tencent.mm.sdk.platformtools.ab.i(r2, r3);	 Catch:{ Exception -> 0x0675 }
        r3 = r9;
        goto L_0x047d;
    L_0x049e:
        if (r16 == 0) goto L_0x04ae;
    L_0x04a0:
        r0 = r18;
        r2 = r0.fHw;	 Catch:{ Exception -> 0x04e5 }
        r3 = r9.data;	 Catch:{ Exception -> 0x04e5 }
        r0 = r17;
        r2 = r2.p(r0, r3);	 Catch:{ Exception -> 0x04e5 }
        if (r2 == 0) goto L_0x05c2;
    L_0x04ae:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "hy: image data md5 check success or do not need md5 check";
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3);	 Catch:{ Exception -> 0x04e5 }
        r16 = java.lang.System.currentTimeMillis();	 Catch:{ Exception -> 0x04e5 }
        r3 = r9.data;	 Catch:{ Exception -> 0x04e5 }
        r0 = r18;
        r2 = r0.fHk;	 Catch:{ Exception -> 0x04e5 }
        if (r2 == 0) goto L_0x04ee;
    L_0x04c3:
        r0 = r18;
        r2 = r0.fHk;	 Catch:{ Exception -> 0x04e5 }
        r4 = new java.io.ByteArrayInputStream;	 Catch:{ Exception -> 0x04e5 }
        r4.<init>(r3);	 Catch:{ Exception -> 0x04e5 }
        r2 = r2.ahI();	 Catch:{ Exception -> 0x04e5 }
        r4 = new java.io.ByteArrayOutputStream;	 Catch:{ Exception -> 0x04e5 }
        r3 = r3.length;	 Catch:{ Exception -> 0x04e5 }
        r4.<init>(r3);	 Catch:{ Exception -> 0x04e5 }
        r3 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;
        r3 = new byte[r3];	 Catch:{ Exception -> 0x04e5 }
    L_0x04da:
        r5 = r2.read(r3);	 Catch:{ Exception -> 0x04e5 }
        if (r5 < 0) goto L_0x04ea;
    L_0x04e0:
        r6 = 0;
        r4.write(r3, r6, r5);	 Catch:{ Exception -> 0x04e5 }
        goto L_0x04da;
    L_0x04e5:
        r2 = move-exception;
        r3 = r9;
        r4 = r10;
        goto L_0x02b1;
    L_0x04ea:
        r3 = r4.toByteArray();	 Catch:{ Exception -> 0x04e5 }
    L_0x04ee:
        r0 = r18;
        r2 = r0.fHr;	 Catch:{ Exception -> 0x04e5 }
        r0 = r18;
        r4 = r0.fGS;	 Catch:{ Exception -> 0x04e5 }
        r4 = r4.ePN;	 Catch:{ Exception -> 0x04e5 }
        r0 = r18;
        r5 = r0.fGS;	 Catch:{ Exception -> 0x04e5 }
        r5 = r5.ePO;	 Catch:{ Exception -> 0x04e5 }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ Exception -> 0x04e5 }
        r6 = r6.ePS;	 Catch:{ Exception -> 0x04e5 }
        r0 = r18;
        r7 = r0.fGS;	 Catch:{ Exception -> 0x04e5 }
        r7 = r7.alpha;	 Catch:{ Exception -> 0x04e5 }
        r0 = r18;
        r8 = r0.fGS;	 Catch:{ Exception -> 0x04e5 }
        r8 = r8.ePQ;	 Catch:{ Exception -> 0x04e5 }
        r4 = com.tencent.mm.at.a.g.a.a(r2, r3, r4, r5, r6, r7, r8);	 Catch:{ Exception -> 0x04e5 }
        if (r4 != 0) goto L_0x051c;
    L_0x0516:
        r2 = 3;
        r9.status = r2;	 Catch:{ Exception -> 0x067e }
        r5 = r4;
        goto L_0x00bf;
    L_0x051c:
        r2 = r9.data;	 Catch:{ Exception -> 0x067e }
        r0 = r18;
        r3 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r3 = r3.ePH;	 Catch:{ Exception -> 0x067e }
        if (r3 == 0) goto L_0x0535;
    L_0x0526:
        r0 = r18;
        r3 = r0.fGU;	 Catch:{ Exception -> 0x067e }
        r0 = r18;
        r5 = r0.url;	 Catch:{ Exception -> 0x067e }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r3.a(r5, r2, r6);	 Catch:{ Exception -> 0x067e }
    L_0x0535:
        r0 = r18;
        r3 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r3 = r3.ePG;	 Catch:{ Exception -> 0x067e }
        if (r3 == 0) goto L_0x054c;
    L_0x053d:
        r0 = r18;
        r3 = r0.fGU;	 Catch:{ Exception -> 0x067e }
        r0 = r18;
        r5 = r0.url;	 Catch:{ Exception -> 0x067e }
        r0 = r18;
        r6 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r3.a(r5, r2, r6);	 Catch:{ Exception -> 0x067e }
    L_0x054c:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r2 = r2.eQf;	 Catch:{ Exception -> 0x067e }
        if (r2 == 0) goto L_0x0575;
    L_0x0554:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r2 = r2.eQg;	 Catch:{ Exception -> 0x067e }
        r3 = 0;
        r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));
        if (r2 != 0) goto L_0x05b6;
    L_0x055f:
        r2 = r4.getWidth();	 Catch:{ Exception -> 0x067e }
        r3 = r4.getHeight();	 Catch:{ Exception -> 0x067e }
        if (r2 != r3) goto L_0x058a;
    L_0x0569:
        r2 = 0;
        r3 = r4.getWidth();	 Catch:{ Exception -> 0x067e }
        r3 = r3 / 2;
        r3 = (float) r3;	 Catch:{ Exception -> 0x067e }
        r4 = com.tencent.mm.sdk.platformtools.d.a(r4, r2, r3);	 Catch:{ Exception -> 0x067e }
    L_0x0575:
        r0 = r18;
        r4 = r0.a(r9, r4);	 Catch:{ Exception -> 0x067e }
        r0 = r18;
        r0.k(r12, r4);	 Catch:{ Exception -> 0x067e }
        r2 = r16 - r14;
        r0 = r18;
        r0.fN(r2);	 Catch:{ Exception -> 0x067e }
        r5 = r4;
        goto L_0x00bf;
    L_0x058a:
        r2 = r4.getWidth();	 Catch:{ Exception -> 0x067e }
        r3 = r4.getHeight();	 Catch:{ Exception -> 0x067e }
        r2 = java.lang.Math.min(r2, r3);	 Catch:{ Exception -> 0x067e }
        if (r2 > 0) goto L_0x05a4;
    L_0x0598:
        r2 = r4.getWidth();	 Catch:{ Exception -> 0x067e }
        r3 = r4.getHeight();	 Catch:{ Exception -> 0x067e }
        r2 = java.lang.Math.max(r2, r3);	 Catch:{ Exception -> 0x067e }
    L_0x05a4:
        r3 = 1;
        r4 = com.tencent.mm.sdk.platformtools.d.b(r4, r2, r2, r3);	 Catch:{ Exception -> 0x067e }
        r2 = 0;
        r3 = r4.getWidth();	 Catch:{ Exception -> 0x067e }
        r3 = r3 / 2;
        r3 = (float) r3;	 Catch:{ Exception -> 0x067e }
        r4 = com.tencent.mm.sdk.platformtools.d.a(r4, r2, r3);	 Catch:{ Exception -> 0x067e }
        goto L_0x0575;
    L_0x05b6:
        r2 = 0;
        r0 = r18;
        r3 = r0.fGS;	 Catch:{ Exception -> 0x067e }
        r3 = r3.eQg;	 Catch:{ Exception -> 0x067e }
        r4 = com.tencent.mm.sdk.platformtools.d.a(r4, r2, r3);	 Catch:{ Exception -> 0x067e }
        goto L_0x0575;
    L_0x05c2:
        r2 = 2;
        r9.status = r2;	 Catch:{ Exception -> 0x04e5 }
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "hy: image data md5 check failed";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);	 Catch:{ Exception -> 0x04e5 }
        r4 = 0;
        r5 = r4;
        goto L_0x00bf;
    L_0x05d2:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run get bitmap failed";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);	 Catch:{ Exception -> 0x0675 }
        r5 = r10;
        goto L_0x00bf;
    L_0x05de:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0675 }
        r2 = r2.eQf;	 Catch:{ Exception -> 0x0675 }
        if (r2 == 0) goto L_0x0682;
    L_0x05e6:
        r0 = r18;
        r2 = r0.fGS;	 Catch:{ Exception -> 0x0675 }
        r2 = r2.eQg;	 Catch:{ Exception -> 0x0675 }
        r3 = 0;
        r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));
        if (r2 != 0) goto L_0x0651;
    L_0x05f1:
        r2 = r10.getWidth();	 Catch:{ Exception -> 0x0675 }
        r3 = r10.getHeight();	 Catch:{ Exception -> 0x0675 }
        if (r2 != r3) goto L_0x0625;
    L_0x05fb:
        r2 = 0;
        r3 = r10.getWidth();	 Catch:{ Exception -> 0x0675 }
        r3 = r3 / 2;
        r3 = (float) r3;	 Catch:{ Exception -> 0x0675 }
        r4 = com.tencent.mm.sdk.platformtools.d.a(r10, r2, r3);	 Catch:{ Exception -> 0x0675 }
    L_0x0607:
        r0 = r18;
        r4 = r0.a(r9, r4);	 Catch:{ Exception -> 0x0671 }
        r0 = r18;
        r0.k(r12, r4);	 Catch:{ Exception -> 0x0671 }
        r2 = r6 - r14;
        r0 = r18;
        r0.fN(r2);	 Catch:{ Exception -> 0x0671 }
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run. get bitmap from disk success.";
        com.tencent.mm.sdk.platformtools.ab.d(r2, r3);	 Catch:{ Exception -> 0x0671 }
        r5 = r4;
        goto L_0x00bf;
    L_0x0625:
        r2 = r10.getWidth();	 Catch:{ Exception -> 0x0675 }
        r3 = r10.getHeight();	 Catch:{ Exception -> 0x0675 }
        r2 = java.lang.Math.min(r2, r3);	 Catch:{ Exception -> 0x0675 }
        if (r2 > 0) goto L_0x063f;
    L_0x0633:
        r2 = r10.getWidth();	 Catch:{ Exception -> 0x0675 }
        r3 = r10.getHeight();	 Catch:{ Exception -> 0x0675 }
        r2 = java.lang.Math.max(r2, r3);	 Catch:{ Exception -> 0x0675 }
    L_0x063f:
        r3 = 1;
        r4 = com.tencent.mm.sdk.platformtools.d.b(r10, r2, r2, r3);	 Catch:{ Exception -> 0x0675 }
        r2 = 0;
        r3 = r4.getWidth();	 Catch:{ Exception -> 0x0671 }
        r3 = r3 / 2;
        r3 = (float) r3;	 Catch:{ Exception -> 0x0671 }
        r4 = com.tencent.mm.sdk.platformtools.d.a(r4, r2, r3);	 Catch:{ Exception -> 0x0671 }
        goto L_0x0607;
    L_0x0651:
        r2 = 0;
        r0 = r18;
        r3 = r0.fGS;	 Catch:{ Exception -> 0x0675 }
        r3 = r3.eQg;	 Catch:{ Exception -> 0x0675 }
        r4 = com.tencent.mm.sdk.platformtools.d.a(r10, r2, r3);	 Catch:{ Exception -> 0x0675 }
        goto L_0x0607;
    L_0x065d:
        r2 = "MicroMsg.imageloader.ImageLoadTask";
        r3 = "[cpan] run. get bitmap failed";
        com.tencent.mm.sdk.platformtools.ab.w(r2, r3);
        goto L_0x010f;
    L_0x0668:
        r3 = move-exception;
        goto L_0x02a7;
    L_0x066b:
        r3 = move-exception;
        goto L_0x03ac;
    L_0x066e:
        r3 = move-exception;
        goto L_0x03cb;
    L_0x0671:
        r2 = move-exception;
        r3 = r9;
        goto L_0x02b1;
    L_0x0675:
        r2 = move-exception;
        r3 = r9;
        r4 = r10;
        goto L_0x02b1;
    L_0x067a:
        r2 = move-exception;
        r4 = r10;
        goto L_0x02b1;
    L_0x067e:
        r2 = move-exception;
        r3 = r9;
        goto L_0x02b1;
    L_0x0682:
        r4 = r10;
        goto L_0x0607;
    L_0x0684:
        r9 = r3;
        goto L_0x0486;
    L_0x0687:
        r10 = r4;
        goto L_0x00a6;
    L_0x068a:
        r4 = r10;
        goto L_0x03a7;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.at.a.f.b.run():void");
    }

    private void k(String str, Bitmap bitmap) {
        AppMethodBeat.i(116108);
        if (this.fGS.ePF) {
            ab.d("MicroMsg.imageloader.ImageLoadTask", "[cpan] run. put key %s to memory cache.", new Object[]{this.url});
            this.fGT.c(str, bitmap);
        }
        AppMethodBeat.o(116108);
    }

    private Bitmap a(com.tencent.mm.at.a.d.b bVar, Bitmap bitmap) {
        AppMethodBeat.i(116109);
        if (!(this.fHu == null || bVar == null)) {
            bVar.bitmap = bitmap;
            Bitmap a = this.fHu.a(this.url, this.fHr.getImageView(), bVar);
            if (!(a == null || a.isRecycled())) {
                AppMethodBeat.o(116109);
                return a;
            }
        }
        AppMethodBeat.o(116109);
        return bitmap;
    }

    public final String sJ(String str) {
        AppMethodBeat.i(116110);
        if (bo.isNullOrNil(str) || this.fGS == null) {
            AppMethodBeat.o(116110);
            return null;
        }
        if (this.fGS.eQf) {
            str = str + "round" + this.fGS.eQg;
        }
        if (!bo.isNullOrNil(this.fGS.ePX)) {
            str = str + this.fGS.ePX;
        }
        String str2 = str + "size" + this.fGS.ePN + this.fGS.ePO;
        AppMethodBeat.o(116110);
        return str2;
    }

    public final void fN(long j) {
        AppMethodBeat.i(116111);
        if (this.fGX != null) {
            this.fGX.fN(j);
        }
        AppMethodBeat.o(116111);
    }
}
