/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.audit.Audit
 *  com.l7tech.gateway.common.stepdebug.DebugState
 *  com.l7tech.objectmodel.Goid
 *  com.l7tech.policy.assertion.AssertionStatus
 *  org.jetbrains.annotations.NotNull
 *  org.jetbrains.annotations.Nullable
 */
package com.l7tech.server.stepdebug;

import com.l7tech.gateway.common.audit.Audit;
import com.l7tech.gateway.common.stepdebug.DebugState;
import com.l7tech.objectmodel.Goid;
import com.l7tech.policy.assertion.AssertionStatus;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.assertion.ServerAssertion;
import com.l7tech.server.stepdebug.DebugPecData;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/*
 * Exception performing whole class analysis ignored.
 */
public class DebugContext {
    private final Lock a;
    private final Condition b;
    private final Condition c;
    private boolean d;
    private long e;
    private boolean f;
    private final Goid g;
    private final String h;
    private final DebugPecData i;
    private DebugState j;
    private final Set<Collection<Integer>> k;
    private Collection<Integer> l;
    private Collection<Integer> m;
    private Set<String> n;
    private static final String[] o;

    public DebugContext(@NotNull Goid goid, @NotNull String string, @NotNull Audit audit) {
        if (goid == null) {
            DebugContext.a(0);
        }
        if (string == null) {
            DebugContext.a(1);
        }
        if (audit == null) {
            DebugContext.a(2);
        }
        this.a = new ReentrantLock(true);
        this.b = this.a.newCondition();
        this.c = this.a.newCondition();
        this.d = false;
        this.f = false;
        this.k = new HashSet<Collection<Integer>>();
        this.n = new HashSet<String>();
        this.g = goid;
        this.h = string;
        this.i = new DebugPecData(audit);
        this.a(DebugState.STOPPED);
        this.e = System.currentTimeMillis();
    }

    @NotNull
    public Goid getPolicyGoid() {
        Goid goid;
        Goid goid2;
        this.a.lock();
        try {
            goid2 = this.g;
        }
        catch (Throwable throwable) {
            this.a.unlock();
            throw throwable;
        }
        try {
            this.a.unlock();
            goid = goid2;
            if (goid == null) {
                DebugContext.a(3);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        return goid;
    }

    @NotNull
    public String getTaskId() {
        String string;
        String string2;
        this.a.lock();
        try {
            string2 = this.h;
        }
        catch (Throwable throwable) {
            this.a.unlock();
            throw throwable;
        }
        try {
            this.a.unlock();
            string = string2;
            if (string == null) {
                DebugContext.a(4);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        return string;
    }

    @NotNull
    public DebugState getDebugState() {
        DebugState debugState;
        DebugState debugState2;
        this.a.lock();
        try {
            debugState2 = this.j;
        }
        catch (Throwable throwable) {
            this.a.unlock();
            throw throwable;
        }
        try {
            this.a.unlock();
            debugState = debugState2;
            if (debugState == null) {
                DebugContext.a(5);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        return debugState;
    }

    @NotNull
    public Set<Collection<Integer>> getBreakpoints() {
        Set<Collection<Integer>> set;
        Set<Collection<Integer>> set2;
        this.a.lock();
        try {
            set2 = this.k;
        }
        catch (Throwable throwable) {
            this.a.unlock();
            throw throwable;
        }
        try {
            this.a.unlock();
            set = set2;
            if (set == null) {
                DebugContext.a(6);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        return set;
    }

    @Nullable
    public Collection<Integer> getCurrentLine() {
        this.a.lock();
        try {
            Collection<Integer> collection = this.m;
            return collection;
        }
        finally {
            this.a.unlock();
        }
    }

    @NotNull
    public DebugPecData getDebugPecData() {
        DebugPecData debugPecData;
        DebugPecData debugPecData2;
        this.a.lock();
        try {
            debugPecData2 = this.i;
        }
        catch (Throwable throwable) {
            this.a.unlock();
            throw throwable;
        }
        try {
            this.a.unlock();
            debugPecData = debugPecData2;
            if (debugPecData == null) {
                DebugContext.a(7);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        return debugPecData;
    }

    public void startDebugging() {
        this.a.lock();
        try {
            this.a(DebugState.STARTED);
            this.i.reset(this.n);
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void stopDebugging() {
        this.a.lock();
        try {
            this.a(DebugState.STOPPED);
            this.m = null;
            this.l = null;
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void stepOver(@NotNull Collection<Integer> collection) {
        try {
            if (collection == null) {
                DebugContext.a(8);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            this.l = collection;
            this.a(DebugState.BREAK_AT_NEXT_BREAKPOINT);
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void stepInto() {
        this.a.lock();
        try {
            this.a(DebugState.BREAK_AT_NEXT_LINE);
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void stepOut(@NotNull Collection<Integer> collection) {
        try {
            if (collection == null) {
                DebugContext.a(9);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            this.l = collection;
            this.a(DebugState.BREAK_AT_NEXT_BREAKPOINT);
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void resume() {
        this.a.lock();
        try {
            this.a(DebugState.BREAK_AT_NEXT_BREAKPOINT);
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void toggleBreakpoint(@NotNull Collection<Integer> collection) {
        try {
            if (collection == null) {
                DebugContext.a(10);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            if (this.k.contains(collection)) {
                this.k.remove(collection);
            } else {
                this.k.add(collection);
            }
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void removeAllBreakpoints() {
        this.a.lock();
        try {
            this.k.clear();
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void addUserContextVariable(@NotNull String string) {
        try {
            if (string == null) {
                DebugContext.a(11);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            if (this.n.add(string)) {
                this.i.addUserContextVariable(string);
            }
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void removeUserContextVariable(@NotNull String string) {
        try {
            if (string == null) {
                DebugContext.a(12);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            if (this.n.remove(string)) {
                this.i.removeUserContextVariable(string);
            }
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void onMessageFinished(@NotNull PolicyEnforcementContext policyEnforcementContext, @Nullable AssertionStatus assertionStatus) {
        try {
            if (policyEnforcementContext == null) {
                DebugContext.a(13);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            if (!DebugState.STOPPED.equals((Object)this.j)) {
                this.i.update(policyEnforcementContext, this.n);
                this.i.setPolicyResult(assertionStatus, this.m);
            }
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void onMessageArrived(@NotNull PolicyEnforcementContext policyEnforcementContext) {
        try {
            if (policyEnforcementContext == null) {
                DebugContext.a(14);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            if (!DebugState.STOPPED.equals((Object)this.j)) {
                this.m = policyEnforcementContext.getAssertionNumber();
                this.a(DebugState.BREAK_AT_NEXT_BREAKPOINT);
                this.i.update(policyEnforcementContext, this.n);
                policyEnforcementContext.setDebugContext(this);
            }
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    /*
     * Exception decompiling
     */
    public void onStartAssertion(@NotNull PolicyEnforcementContext var1_1, @NotNull ServerAssertion var2_2) {
        /*
         * This method has failed to decompile.  When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
         * 
         * org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 6[SWITCH]
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.processEndingBlocks(Op04StructuredStatement.java:435)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:484)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:736)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:850)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
         *     at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
         *     at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1055)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
         *     at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
         *     at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
         *     at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
         *     at org.benf.cfr.reader.Main.main(Main.java:54)
         */
        throw new IllegalStateException("Decompilation failed");
    }

    public void onFinishAssertion(@NotNull PolicyEnforcementContext policyEnforcementContext) {
        try {
            if (policyEnforcementContext == null) {
                DebugContext.a(17);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            if (!DebugState.STOPPED.equals((Object)this.j)) {
                this.i.update(policyEnforcementContext, this.n);
            }
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    public boolean waitForUpdates(long l2) {
        this.a.lock();
        try {
            if (this.d) {
                this.d = false;
                boolean bl2 = true;
                return bl2;
            }
            boolean bl3 = this.c.await(l2, TimeUnit.MILLISECONDS);
            try {
                if (bl3) {
                    this.d = false;
                }
            }
            catch (InterruptedException interruptedException) {
                throw DebugContext.a(interruptedException);
            }
            boolean bl4 = bl3;
            return bl4;
        }
        catch (InterruptedException interruptedException) {
        }
        finally {
            this.a.unlock();
        }
        return false;
    }

    public long getLastUpdatedTimeMillis() {
        this.a.lock();
        try {
            long l2 = this.e;
            return l2;
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public void setIsTerminated(boolean bl2) {
        this.a.lock();
        try {
            this.f = bl2;
        }
        finally {
            this.c();
            this.a.unlock();
        }
    }

    public boolean isTerminated() {
        this.a.lock();
        try {
            boolean bl2 = this.f;
            return bl2;
        }
        finally {
            this.a.unlock();
        }
    }

    private void a(@NotNull DebugState debugState) {
        try {
            if (debugState == null) {
                DebugContext.a(18);
            }
        }
        catch (IllegalArgumentException illegalArgumentException) {
            throw DebugContext.a(illegalArgumentException);
        }
        this.a.lock();
        try {
            this.j = debugState;
            if (debugState.equals((Object)DebugState.AT_BREAKPOINT)) {
                this.l = null;
            }
            this.b.signal();
        }
        finally {
            this.a.unlock();
        }
    }

    private void a() {
        this.a.lock();
        try {
            while (this.j.equals((Object)DebugState.AT_BREAKPOINT)) {
                this.b.await();
            }
        }
        catch (InterruptedException interruptedException) {
        }
        finally {
            this.a.unlock();
        }
    }

    /*
     * Unable to fully structure code
     */
    private boolean b() {
        this.a.lock();
        try {
            block6: {
                block5: {
                    if (this.k.contains(this.m)) ** GOTO lbl6
                    try {
                        if (!this.d()) break block5;
lbl6:
                        // 2 sources

                        v0 = true;
                        break block6;
                    }
                    catch (IllegalArgumentException v1) {
                        throw DebugContext.a(v1);
                    }
                }
                v0 = false;
            }
            var1_1 = v0;
            return var1_1;
        }
        finally {
            this.a.unlock();
        }
    }

    private void c() {
        this.a.lock();
        try {
            this.d = true;
            this.e = System.currentTimeMillis();
            this.c.signal();
        }
        finally {
            this.a.unlock();
        }
    }

    private boolean d() {
        block9: {
            block10: {
                try {
                    try {
                        try {
                            if (this.l == null || this.m == null) break block9;
                        }
                        catch (IllegalArgumentException illegalArgumentException) {
                            throw DebugContext.a(illegalArgumentException);
                        }
                        if (!this.l.equals(this.m)) break block10;
                    }
                    catch (IllegalArgumentException illegalArgumentException) {
                        throw DebugContext.a(illegalArgumentException);
                    }
                    return true;
                }
                catch (IllegalArgumentException illegalArgumentException) {
                    throw DebugContext.a(illegalArgumentException);
                }
            }
            boolean bl2 = false;
            Iterator<Integer> iterator = this.m.iterator();
            Iterator<Integer> iterator2 = this.l.iterator();
            while (iterator.hasNext()) {
                Integer n2 = iterator.next();
                if (iterator2.hasNext()) {
                    Integer n3 = iterator2.next();
                    if (n2 > n3) {
                        bl2 = true;
                        break;
                    }
                    if (n2 >= n3) continue;
                    bl2 = false;
                    break;
                }
                bl2 = true;
                break;
            }
            return bl2;
        }
        return false;
    }

    /*
     * Exception decompiling
     */
    private static /* synthetic */ void a(int var0) {
        /*
         * This method has failed to decompile.  When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
         * 
         * org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [0[TRYBLOCK]], but top level block is 6[SWITCH]
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.processEndingBlocks(Op04StructuredStatement.java:435)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:484)
         *     at org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:736)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:850)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
         *     at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
         *     at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
         *     at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1050)
         *     at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
         *     at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
         *     at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
         *     at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
         *     at org.benf.cfr.reader.Main.main(Main.java:54)
         */
        throw new IllegalStateException("Decompilation failed");
    }

    private static Exception a(Exception exception) {
        return exception;
    }

    /*
     * Unable to fully structure code
     */
    static {
        block10: {
            block9: {
                var5 = new String[28];
                var3_1 = 0;
                var2_2 = "\u0019v$\u0005\bf#>\u007f\u0006Uz)>\u007f6\u0006\u001dr4<Bl\r\u000ev3\u0013njg\u000e@36\u007fm\n\u0019|+>hqU\u0006z#\u0011\u0006}\u0001>eaa\u0001R4$nzf\u0000|)\n\rv%\"l[f\bg\"\r\u000ev3\u0007dd{\nj\u00008bl\u0010\u0006}\n2x{s\u000ev\u0006%yad\fw\t\u000ev3\u0003j{y w\u0011\u0006}\n2x{s\u000ev\u0001>eaa\u0001v#*)](#E}~\u00053*2\u007f`}\r3b$%-aI~2$\u007f(|\u0006gg%n|g\u001b}g9~d~\u000e\u000ev3\u0015yms\u0002c(>e|a>(a \"fm|\u001d3!8y(R'|3\u0019~d~Ic&%jew\u001dv5w,-aN3(1+-aG64wf}a\u001d3)8\u007f(p\f3)\"gd\u0019\u001bv*8}mG\u001av5\u0014dff\fk3\u0001jz{\bq+2\r\u001av3\u0013njg\u000e@36\u007fm\u0010\u0006}\u0014#jzf(`42y|{\u0006}\u0016\bw#\u0002xm`*|)#npf?r5>jj~\f(\n|*xg?f\fp/xxm`\u001fv5xx|w\u0019w\"5~o=-v%\"lK}\u0007g\"/\u007f\u000f\u000ev3\u0013njg\u000eC\"4Oif\b\u000f\b`42y|{\u0006}\t\"fjw\u001b\u0010\u001d| 0gmP\u001bv&<{g{\u0007g\u0004\u0007r*2\u0007\u001ag\"'D}f\u000f\u001av5!nzS\u001a`\"%\u007fa}\u0007";
                var4_3 = "\u0019v$\u0005\bf#>\u007f\u0006Uz)>\u007f6\u0006\u001dr4<Bl\r\u000ev3\u0013njg\u000e@36\u007fm\n\u0019|+>hqU\u0006z#\u0011\u0006}\u0001>eaa\u0001R4$nzf\u0000|)\n\rv%\"l[f\bg\"\r\u000ev3\u0007dd{\nj\u00008bl\u0010\u0006}\n2x{s\u000ev\u0006%yad\fw\t\u000ev3\u0003j{y w\u0011\u0006}\n2x{s\u000ev\u0001>eaa\u0001v#*)](#E}~\u00053*2\u007f`}\r3b$%-aI~2$\u007f(|\u0006gg%n|g\u001b}g9~d~\u000e\u000ev3\u0015yms\u0002c(>e|a>(a \"fm|\u001d3!8y(R'|3\u0019~d~Ic&%jew\u001dv5w,-aN3(1+-aG64wf}a\u001d3)8\u007f(p\f3)\"gd\u0019\u001bv*8}mG\u001av5\u0014dff\fk3\u0001jz{\bq+2\r\u001av3\u0013njg\u000e@36\u007fm\u0010\u0006}\u0014#jzf(`42y|{\u0006}\u0016\bw#\u0002xm`*|)#npf?r5>jj~\f(\n|*xg?f\fp/xxm`\u001fv5xx|w\u0019w\"5~o=-v%\"lK}\u0007g\"/\u007f\u000f\u000ev3\u0013njg\u000eC\"4Oif\b\u000f\b`42y|{\u0006}\t\"fjw\u001b\u0010\u001d| 0gmP\u001bv&<{g{\u0007g\u0004\u0007r*2\u0007\u001ag\"'D}f\u000f\u001av5!nzS\u001a`\"%\u007fa}\u0007".length();
                var1_4 = 3;
                var0_5 = -1;
lbl7:
                // 2 sources

                while (true) {
                    v0 = 12;
                    v1 = ++var0_5;
                    v2 = var2_2.substring(v1, v1 + var1_4);
                    v3 = -1;
                    break block9;
                    break;
                }
lbl13:
                // 1 sources

                while (true) {
                    var5[var3_1++] = DebugContext.a(v0, DebugContext.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    var2_2 = "\u0007q'uj2k\u0001}\"uu`m\u0012{8uuqz\u0014z/8sb0 {(/aFp\nj/\"r\b\u0017j/*Isz\u0016";
                    var4_3 = "\u0007q'uj2k\u0001}\"uu`m\u0012{8uuqz\u0014z/8sb0 {(/aFp\nj/\"r\b\u0017j/*Isz\u0016".length();
                    var1_4 = 40;
                    var0_5 = -1;
lbl22:
                    // 2 sources

                    while (true) {
                        v0 = 1;
                        v4 = ++var0_5;
                        v2 = var2_2.substring(v4, v4 + var1_4);
                        v3 = 0;
                        break block9;
                        break;
                    }
                    break;
                }
lbl28:
                // 1 sources

                while (true) {
                    var5[var3_1++] = DebugContext.a(v0, DebugContext.a(v2));
                    if ((var0_5 += var1_4) < var4_3) {
                        var1_4 = var2_2.charAt(var0_5);
                        ** continue;
                    }
                    break block10;
                    break;
                }
            }
            switch (v3) {
                default: {
                    ** continue;
                }
                ** case 0:
lbl39:
                // 1 sources

                ** continue;
            }
        }
        DebugContext.o = var5;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x1E);
        }
        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 -> 101;
                    case 1 -> 31;
                    case 2 -> 75;
                    case 3 -> 91;
                    case 4 -> 7;
                    case 5 -> 4;
                    default -> 30;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

