/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.PersistentEntity
 */
package com.l7tech.server;

import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.server.EntityVersionChecker;
import java.text.MessageFormat;
import java.util.function.Supplier;

class t
implements Supplier<String> {
    final PersistentEntity val$entity;
    private static final String a = t.a(102, t.a("y9l\u0006\u0018\u007f1\b%g\u0005\u0010}?L-}\u001a\u001e\u007fvN#{S\u0014\u007f\"A8pS\n!+"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    t(EntityVersionChecker entityVersionChecker, PersistentEntity persistentEntity) {
        this.val$entity = persistentEntity;
    }

    @Override
    public String get() {
        return MessageFormat.format(a, this.val$entity.getId());
    }

    private static char[] a(String string) {
        char[] cArray = string.toCharArray();
        if (cArray.length < 2) {
            cArray = cArray;
            cArray[0] = (char)(cArray[0] ^ 0x30);
        }
        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 -> 42;
                    case 2 -> 111;
                    case 3 -> 21;
                    case 4 -> 23;
                    case 5 -> 119;
                    default -> 48;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

