package com.tencent.mm.plugin.story.model.audio;

import a.f.b.j;
import a.l;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.i.g.a;
import java.io.ByteArrayOutputStream;

@l(dWo = {1, 1, 13}, dWp = {"\u0000?\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J4\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u00032\b\u0010\u0007\u001a\u0004\u0018\u00010\b2\b\u0010\t\u001a\u0004\u0018\u00010\n2\u0006\u0010\u000b\u001a\u00020\fH\u0016J\u0018\u0010\r\u001a\u00020\u000e2\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u000f\u001a\u00020\u000eH\u0016J\u0018\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0012\u001a\u00020\u0013H\u0016¨\u0006\u0014"}, dWq = {"com/tencent/mm/plugin/story/model/audio/AudioDownloadTask$2", "Lcom/tencent/mm/cdn/keep_TaskInfo$TaskCallback;", "callback", "", "mediaId", "", "startRet", "progressInfo", "Lcom/tencent/mm/cdn/keep_ProgressInfo;", "sceneResult", "Lcom/tencent/mm/cdn/keep_SceneResult;", "onlyCheckExist", "", "decodePrepareResponse", "", "inbuf", "getCdnAuthInfo", "", "buff", "Ljava/io/ByteArrayOutputStream;", "plugin-story_release"})
public final class a$1 implements a {
    final /* synthetic */ a rUm;
    final /* synthetic */ String rUn;
    final /* synthetic */ String rUo;

    a$1(a aVar, String str, String str2) {
        this.rUm = aVar;
        this.rUn = str;
        this.rUo = str2;
    }

    /* JADX WARNING: Missing block: B:3:0x0028, code skipped:
            if (r0 == null) goto L_0x002a;
     */
    /* JADX WARNING: Missing block: B:8:0x0036, code skipped:
            if (r0 == null) goto L_0x0038;
     */
    public final int a(java.lang.String r10, int r11, com.tencent.mm.i.c r12, com.tencent.mm.i.d r13, boolean r14) {
        /*
        r9 = this;
        r8 = 0;
        r7 = 109177; // 0x1aa79 float:1.5299E-40 double:5.39406E-319;
        r6 = 1;
        r5 = 0;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r7);
        r0 = "mediaId";
        a.f.b.j.p(r10, r0);
        r0 = r9.rUm;
        r1 = r0.TAG;
        r2 = "AudioDownloadTask on cdn callback mediaId = %s, startRet = %d, keep_ProgressInfo = %s, keep_SceneResult = %s";
        r0 = 4;
        r3 = new java.lang.Object[r0];
        r3[r5] = r10;
        r0 = java.lang.Integer.valueOf(r11);
        r3[r6] = r0;
        r4 = 2;
        if (r12 == 0) goto L_0x002a;
    L_0x0024:
        r0 = r12.toString();
        if (r0 != 0) goto L_0x002d;
    L_0x002a:
        r0 = "null";
    L_0x002d:
        r3[r4] = r0;
        r4 = 3;
        if (r13 == 0) goto L_0x0038;
    L_0x0032:
        r0 = r13.toString();
        if (r0 != 0) goto L_0x003b;
    L_0x0038:
        r0 = "null";
    L_0x003b:
        r3[r4] = r0;
        com.tencent.mm.sdk.platformtools.ab.d(r1, r2, r3);
        if (r13 == 0) goto L_0x009a;
    L_0x0042:
        r0 = r13.field_retCode;
        if (r0 != 0) goto L_0x007b;
    L_0x0046:
        r0 = r9.rUm;
        r0 = r0.TAG;
        r1 = new java.lang.StringBuilder;
        r2 = "download success ";
        r1.<init>(r2);
        r1 = r1.append(r10);
        r2 = 32;
        r1 = r1.append(r2);
        r2 = r9.rUn;
        r1 = r1.append(r2);
        r1 = r1.toString();
        com.tencent.mm.sdk.platformtools.ab.i(r0, r1);
        r0 = r9.rUo;
        r1 = r9.rUn;
        com.tencent.mm.vfs.e.aQ(r0, r1);
        r0 = r9.rUm;
        r1 = r9.rUn;
        com.tencent.mm.plugin.story.model.audio.a.a(r0, r6, r1);
    L_0x0077:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r7);
        return r5;
    L_0x007b:
        r0 = r9.rUm;
        r0 = r0.TAG;
        r1 = new java.lang.StringBuilder;
        r2 = "download fail sceneResult ";
        r1.<init>(r2);
        r2 = r13.field_retCode;
        r1 = r1.append(r2);
        r1 = r1.toString();
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1);
        r0 = r9.rUm;
        com.tencent.mm.plugin.story.model.audio.a.a(r0, r5, r8);
        goto L_0x0077;
    L_0x009a:
        if (r11 == 0) goto L_0x0077;
    L_0x009c:
        r0 = r9.rUm;
        r0 = r0.TAG;
        r1 = "download fail startRet ";
        r2 = java.lang.String.valueOf(r11);
        r1 = r1.concat(r2);
        com.tencent.mm.sdk.platformtools.ab.w(r0, r1);
        r0 = r9.rUm;
        com.tencent.mm.plugin.story.model.audio.a.a(r0, r5, r8);
        goto L_0x0077;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.tencent.mm.plugin.story.model.audio.a$1.a(java.lang.String, int, com.tencent.mm.i.c, com.tencent.mm.i.d, boolean):int");
    }

    public final void a(String str, ByteArrayOutputStream byteArrayOutputStream) {
        AppMethodBeat.i(109178);
        j.p(str, "mediaId");
        j.p(byteArrayOutputStream, "buff");
        AppMethodBeat.o(109178);
    }

    public final byte[] l(String str, byte[] bArr) {
        AppMethodBeat.i(109179);
        j.p(str, "mediaId");
        j.p(bArr, "inbuf");
        byte[] bArr2 = new byte[0];
        AppMethodBeat.o(109179);
        return bArr2;
    }
}
