/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.module.ServerModuleFile
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.util.CollectionUpdate$Differentiator
 *  com.l7tech.util.CollectionUpdateProducer
 */
package com.l7tech.server.cluster;

import com.l7tech.gateway.common.module.ServerModuleFile;
import com.l7tech.objectmodel.FindException;
import com.l7tech.server.cluster.ClusterStatusAdminImp;
import com.l7tech.util.CollectionUpdate;
import com.l7tech.util.CollectionUpdateProducer;
import java.util.ArrayList;
import java.util.Collection;

class a
extends CollectionUpdateProducer<ServerModuleFile, FindException> {
    final ClusterStatusAdminImp this$0;
    private static final String f = a.a(56, a.a("2,Iw~\u000b}\u001b*\u001dL~\u000bb\u0010?pp\u007f\fx\u0010\u000bTs~Qg\\m[piYw\u001a!Qzx\r}\u001a#\u0010jk\u001du\u0001(\u001315"));

    a(ClusterStatusAdminImp clusterStatusAdminImp, long l2, int n2, CollectionUpdate.Differentiator differentiator) {
        this.this$0 = clusterStatusAdminImp;
        super(l2, n2, differentiator);
    }

    protected Collection<ServerModuleFile> getCollection() throws FindException {
        this.this$0.v.finest(f);
        ArrayList<ServerModuleFile> arrayList = new ArrayList<ServerModuleFile>();
        Collection collection = this.this$0.t.findAll();
        for (ServerModuleFile serverModuleFile : collection) {
            ServerModuleFile serverModuleFile2 = new ServerModuleFile();
            serverModuleFile2.copyFrom(serverModuleFile, false, true, true);
            arrayList.add(serverModuleFile2);
        }
        return arrayList;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x2C);
        }
        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 -> 77;
                    case 1 -> 117;
                    case 2 -> 5;
                    case 3 -> 39;
                    case 4 -> 35;
                    case 5 -> 65;
                    default -> 44;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

