/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.audit.AuditDetailEvent$AuditDetailWithInfo
 *  com.l7tech.gateway.common.audit.AuditDetailMessage
 *  com.l7tech.util.Functions$Nullary
 */
package com.l7tech.server.audit;

import com.l7tech.gateway.common.audit.AuditDetailEvent;
import com.l7tech.gateway.common.audit.AuditDetailMessage;
import com.l7tech.server.audit.AuditContextImpl;
import com.l7tech.server.audit.AuditLogFormatter;
import com.l7tech.util.Functions;

class o
implements Functions.Nullary<Void> {
    final AuditDetailEvent.AuditDetailWithInfo val$detailWithInfo;
    final AuditDetailMessage val$message;
    final AuditLogFormatter val$formatter;
    final AuditContextImpl this$0;
    private static final String a = o.a(91, o.a("pH\u001ad<u>vD\u001fd#'8eB\u0005d17.zS"));

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    o(AuditContextImpl auditContextImpl, AuditDetailEvent.AuditDetailWithInfo auditDetailWithInfo, AuditDetailMessage auditDetailMessage, AuditLogFormatter auditLogFormatter) {
        this.this$0 = auditContextImpl;
        this.val$detailWithInfo = auditDetailWithInfo;
        this.val$message = auditDetailMessage;
        this.val$formatter = auditLogFormatter;
    }

    public Void call() {
        this.this$0.k.notifyDetailFlushed(this.this$0.s, this.this$0.t, this.this$0.a(this.val$detailWithInfo.getSource(), a), this.val$detailWithInfo.getLoggerName(), this.val$message, this.val$detailWithInfo.getDetail().getParams(), this.val$detailWithInfo.getDetail().getTime(), this.val$formatter, this.val$detailWithInfo.getException());
        return null;
    }

    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 -> 72;
                    case 1 -> 124;
                    case 2 -> 44;
                    case 3 -> 17;
                    case 4 -> 11;
                    case 5 -> 25;
                    default -> 17;
                })));
                ++n3;
                n4 = n4;
            } while (n4 > n3);
        }
        return new String(cArray2).intern();
    }
}

