/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.cluster.ClusterProperty
 *  com.l7tech.objectmodel.ObjectModelException
 *  com.l7tech.objectmodel.PersistentEntity
 *  org.springframework.transaction.TransactionStatus
 *  org.springframework.transaction.support.TransactionCallbackWithoutResult
 */
package com.l7tech.server.cluster;

import com.l7tech.gateway.common.cluster.ClusterProperty;
import com.l7tech.objectmodel.ObjectModelException;
import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.server.cluster.ClusterPropertyCleanup;
import java.util.List;
import java.util.logging.Level;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;

class ab
extends TransactionCallbackWithoutResult {
    final List val$deletedProperties;
    final ClusterPropertyCleanup this$0;
    private static final String a = ab.a(13, ab.a("?!p<A\be\u001f?g'ZFfZ0n&@\\d\bsr!\\Xd\b'k6@\b"));

    ab(ClusterPropertyCleanup clusterPropertyCleanup, List list) {
        this.this$0 = clusterPropertyCleanup;
        this.val$deletedProperties = list;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    protected void doInTransactionWithoutResult(TransactionStatus transactionStatus) {
        try {
            for (String string : this.this$0.e) {
                ClusterProperty clusterProperty = (ClusterProperty)this.this$0.d.findByUniqueName(string);
                try {
                    if (clusterProperty == null) continue;
                    this.val$deletedProperties.add(string);
                    this.this$0.d.delete((PersistentEntity)clusterProperty);
                }
                catch (ObjectModelException objectModelException) {
                    throw ab.a(objectModelException);
                    return;
                }
            }
        }
        catch (ObjectModelException objectModelException) {
            transactionStatus.setRollbackOnly();
            ClusterPropertyCleanup.a.log(Level.WARNING, a + String.valueOf(this.val$deletedProperties) + ".", objectModelException);
        }
    }

    private static ObjectModelException a(ObjectModelException objectModelException) {
        return objectModelException;
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0xC);
        }
        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 -> 119;
                    case 1 -> 94;
                    case 2 -> 15;
                    case 3 -> 94;
                    case 4 -> 62;
                    case 5 -> 37;
                    default -> 12;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

