/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.audit;

import com.l7tech.server.audit.AuditDownloadManager;
import com.l7tech.server.audit.q;
import java.util.logging.Level;

class r
implements Runnable {
    final q this$0;
    private static final String[] a;

    r(q q2) {
        this.this$0 = q2;
    }

    @Override
    public void run() {
        try {
            this.this$0.l.exportAuditsAsZipFile(this.this$0.g, this.this$0.h, this.this$0.i, this.this$0.d, this.this$0.b, this.this$0.c);
        }
        catch (InterruptedException interruptedException) {
            try {
                AuditDownloadManager.a.log(Level.WARNING, a[1], interruptedException);
                if (this.this$0.getProducerException() == null) {
                    this.this$0.setProducerException(interruptedException);
                }
            }
            catch (InterruptedException interruptedException2) {
                throw r.a(interruptedException2);
            }
        }
        catch (Throwable throwable) {
            AuditDownloadManager.a.log(Level.WARNING, a[0], throwable);
            this.this$0.setProducerException(throwable);
        }
    }

    private static InterruptedException a(InterruptedException interruptedException) {
        return interruptedException;
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "t2|h3\u0003|Z0vm(B|\u00157jn#V{P58d5QwG\u001dt2|h3\u0003|Z0vm(B|\u00157jn#V{P58d5QwG";
        int n3 = "t2|h3\u0003|Z0vm(B|\u00157jn#V{P58d5QwG\u001dt2|h3\u0003|Z0vm(B|\u00157jn#V{P58d5QwG".length();
        int n4 = 29;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = r.a(123, r.a(string.substring(n6, n6 + n4)));
            if ((n5 += n4) >= n3) {
                a = stringArray;
                return;
            }
            n4 = string.charAt(n5);
        }
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x63);
        }
        return cArray;
    }

    /*
     * Handled impossible loop by duplicating code
     * Enabled aggressive block sorting
     */
    private static String a(int n2, char[] cArray) {
        char[] cArray2;
        block11: {
            int n3;
            int n4;
            int n5;
            block10: {
                n5 = n2;
                cArray2 = cArray;
                n4 = cArray.length;
                n3 = 0;
                if (!true) break block10;
                n4 = n4;
                if (n4 <= n3) break block11;
            }
            do {
                n5 = n5;
                cArray2 = cArray2;
                int n6 = n3;
                cArray2[n6] = (char)(cArray2[n6] ^ (n5 ^ (switch (n3 % 7) {
                    case 0 -> 78;
                    case 1 -> 60;
                    case 2 -> 99;
                    case 3 -> 122;
                    case 4 -> 60;
                    case 5 -> 88;
                    default -> 99;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

