/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.PersistentEntity
 *  com.l7tech.objectmodel.StaleUpdateException
 *  com.l7tech.objectmodel.UpdateException
 *  org.springframework.transaction.TransactionStatus
 *  org.springframework.transaction.support.TransactionCallback
 */
package com.l7tech.server.cluster;

import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.objectmodel.StaleUpdateException;
import com.l7tech.objectmodel.UpdateException;
import com.l7tech.server.cluster.ClusterLock;
import com.l7tech.server.cluster.f;
import java.util.logging.Level;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;

class g
implements TransactionCallback {
    final f this$1;
    private static final String[] a;

    g(f f2) {
        this.this$1 = f2;
    }

    public Object doInTransaction(TransactionStatus transactionStatus) {
        try {
            this.this$1.this$0.d.update((PersistentEntity)this.this$1.val$clusterProperty);
            return Boolean.TRUE;
        }
        catch (StaleUpdateException staleUpdateException) {
            String[] stringArray = a;
            ClusterLock.a.log(Level.WARNING, stringArray[0]);
            return Boolean.FALSE;
        }
        catch (UpdateException updateException) {
            ClusterLock.a.log(Level.WARNING, a[1], updateException);
            return Boolean.FALSE;
        }
    }

    /*
     * Enabled aggressive block sorting
     */
    static {
        String[] stringArray = new String[2];
        int n2 = 0;
        String string = "V.F#o6\u00035.\\3ps\u0014{6A);>\u001eq+U9~7Qf+]3~s\u001dt1Gpi6\u0010ql%P0A?is\u0004e&R$r=\u00165!_%h'\u0014gb_?x8Qe0\\ ~!\u0005ll";
        int n3 = "V.F#o6\u00035.\\3ps\u0014{6A);>\u001eq+U9~7Qf+]3~s\u001dt1Gpi6\u0010ql%P0A?is\u0004e&R$r=\u00165!_%h'\u0014gb_?x8Qe0\\ ~!\u0005ll".length();
        int n4 = 44;
        int n5 = -1;
        while (true) {
            int n6 = ++n5;
            stringArray[n2++] = g.a(96, g.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] ^ 0x11);
        }
        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 -> 117;
                    case 1 -> 34;
                    case 2 -> 83;
                    case 3 -> 48;
                    case 4 -> 123;
                    case 5 -> 51;
                    default -> 17;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

