package com.tencent.mm.plugin.n;

import com.tencent.mm.sdk.platformtools.ak.a;

class j$2 implements a {
    final /* synthetic */ j osm;

    j$2(j jVar) {
        this.osm = jVar;
    }

    public final boolean handleMessage(android.os.Message r15) {
        /*
        r14 = this;
        r13 = 3;
        r1 = 1;
        r12 = 2;
        r6 = 0;
        r4 = 0;
        r0 = 117893; // 0x1cc85 float:1.65203E-40 double:5.8247E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r0);
        r0 = r15.what;
        switch(r0) {
            case 1: goto L_0x0018;
            case 2: goto L_0x004f;
            case 3: goto L_0x0184;
            case 4: goto L_0x019f;
            case 5: goto L_0x0011;
            case 6: goto L_0x0011;
            case 7: goto L_0x01bb;
            default: goto L_0x0011;
        };
    L_0x0011:
        r0 = 117893; // 0x1cc85 float:1.65203E-40 double:5.8247E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
    L_0x0017:
        return r6;
    L_0x0018:
        r0 = r14.osm;
        r0 = r0.osg;
        r0 = r0.prepare();
        if (r0 == 0) goto L_0x003a;
    L_0x0022:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osg;
        r2 = r1.bfi;
        r0.bfi = r2;
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        goto L_0x0011;
    L_0x003a:
        r0 = r14.osm;
        r0 = r0.orI;
        r1 = 5;
        r2 = -1;
        r3 = -1;
        r0 = r0.obtainMessage(r1, r2, r3);
        r0.sendToTarget();
        r0 = 117893; // 0x1cc85 float:1.65203E-40 double:5.8247E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r0);
        goto L_0x0017;
    L_0x004f:
        r0 = r14.osm;
        r0 = r0.orH;
        r2 = r0.orB;
        r2 = com.tencent.mm.sdk.platformtools.bo.az(r2);
        r8 = r0.orB;
        r7 = (r8 > r4 ? 1 : (r8 == r4 ? 0 : -1));
        if (r7 <= 0) goto L_0x0086;
    L_0x005f:
        r8 = 30;
        r7 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));
        if (r7 < 0) goto L_0x0086;
    L_0x0065:
        r7 = "MicroMsg.PlayTimeLine";
        r8 = "%s do some work delay 30ms!!![%d, %d]";
        r9 = new java.lang.Object[r13];
        r10 = r0.aZm();
        r9[r6] = r10;
        r10 = r0.orB;
        r10 = java.lang.Long.valueOf(r10);
        r9[r1] = r10;
        r2 = java.lang.Long.valueOf(r2);
        r9[r12] = r2;
        com.tencent.mm.sdk.platformtools.ab.w(r7, r8, r9);
        r0.orC = r4;
    L_0x0086:
        r0 = r14.osm;
        r0 = r0.osg;
        r0 = r0.state;
        r0 = com.tencent.mm.plugin.n.d.yD(r0);
        if (r0 == 0) goto L_0x00a8;
    L_0x0092:
        r0 = r14.osm;
        r0 = r0.osd;
        r1 = 9;
        r0 = r0.obtainMessage(r1);
        r0.sendToTarget();
        r0 = r14.osm;
        r0 = r0.osb;
        r0.removeMessages(r12);
        goto L_0x0011;
    L_0x00a8:
        r0 = r14.osm;
        r0 = r0.osg;
        r2 = r14.osm;
        r2 = r2.aOw;
        r7 = r14.osm;
        r8 = r7.ose;
        r2 = r0.M(r2, r8);
        r0 = com.tencent.mm.plugin.n.d.yA(r2);
        if (r0 == 0) goto L_0x00c9;
    L_0x00be:
        r0 = r14.osm;
        r0 = r0.osd;
        r0 = r0.obtainMessage(r12);
        r0.sendToTarget();
    L_0x00c9:
        r0 = 7;
        if (r2 != r0) goto L_0x00e4;
    L_0x00cc:
        r0 = r1;
    L_0x00cd:
        if (r0 == 0) goto L_0x00e6;
    L_0x00cf:
        r0 = r14.osm;
        r0 = r0.osd;
        r1 = 7;
        r0 = r0.obtainMessage(r1);
        r0.sendToTarget();
        r0 = r14.osm;
        r0 = r0.osb;
        r0.removeMessages(r12);
        goto L_0x0011;
    L_0x00e4:
        r0 = r6;
        goto L_0x00cd;
    L_0x00e6:
        r0 = com.tencent.mm.plugin.n.d.yF(r2);
        if (r0 == 0) goto L_0x0105;
    L_0x00ec:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        r0 = r14.osm;
        r0 = r0.orH;
        r2 = com.tencent.mm.sdk.platformtools.bo.yz();
        r0.orB = r2;
        goto L_0x0011;
    L_0x0105:
        r0 = r14.osm;
        r0 = r0.state;
        if (r0 != r13) goto L_0x012a;
    L_0x010b:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        r4 = r14.osm;
        r4 = r4.orH;
        r4 = r4.orC;
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
    L_0x011e:
        r0 = r14.osm;
        r0 = r0.orH;
        r2 = com.tencent.mm.sdk.platformtools.bo.yz();
        r0.orB = r2;
        goto L_0x0011;
    L_0x012a:
        r0 = r14.osm;
        r0 = r0.state;
        r2 = 5;
        if (r0 != r2) goto L_0x013f;
    L_0x0131:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        goto L_0x011e;
    L_0x013f:
        r0 = r14.osm;
        r0 = r0.state;
        if (r0 != r1) goto L_0x0153;
    L_0x0145:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        goto L_0x011e;
    L_0x0153:
        r0 = r14.osm;
        r0 = r0.state;
        if (r0 != 0) goto L_0x0167;
    L_0x0159:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        goto L_0x011e;
    L_0x0167:
        r0 = r14.osm;
        r0 = r0.state;
        r1 = 6;
        if (r0 != r1) goto L_0x017c;
    L_0x016e:
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        goto L_0x011e;
    L_0x017c:
        r0 = r14.osm;
        r0 = r0.osb;
        r0.removeMessages(r12);
        goto L_0x011e;
    L_0x0184:
        r0 = r14.osm;
        r0.yJ(r13);
        r0 = r14.osm;
        r0 = r0.osg;
        r0.start();
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        goto L_0x0011;
    L_0x019f:
        r0 = r14.osm;
        r1 = 4;
        r0.yJ(r1);
        r0 = r14.osm;
        r1 = r14.osm;
        r1 = r1.osb;
        r2 = android.os.SystemClock.elapsedRealtime();
        com.tencent.mm.plugin.n.j.a(r0, r1, r2, r4);
        r0 = r14.osm;
        r0 = r0.osg;
        r0.pause();
        goto L_0x0011;
    L_0x01bb:
        r0 = r14.osm;
        r0 = r0.osg;
        r0.release();
        r0 = r14.osm;
        r0.osf = r1;
        r0 = r14.osm;
        r0 = r0.osd;
        r0 = r0.obtainMessage(r6);
        r0.sendToTarget();
        goto L_0x0011;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.n.j$2.handleMessage(android.os.Message):boolean");
    }
}
