package com.l7tech.server.service.resolution;

import com.l7tech.gateway.common.service.PublishedService;
import com.l7tech.message.Message;
import com.l7tech.util.Functions.TernaryThrows;
import java.util.Collection;
import java.util.Map;

class d implements TernaryThrows<Boolean, ServiceResolver, Map<String, Object>, Collection<PublishedService>, ServiceResolutionException> {
   final ServiceResolutionManager.ServiceResolutionListener val$rl;
   final boolean[] val$notified;
   final Message val$req;

   d(ServiceResolutionManager var1, ServiceResolutionManager.ServiceResolutionListener var2, boolean[] var3, Message var4) {
      this.val$rl = var2;
      this.val$notified = var3;
      this.val$req = var4;
   }

   public Boolean call(ServiceResolver param1, Map<String, Object> param2, Collection<PublishedService> param3) throws ServiceResolutionException {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 0
      // 01: getfield com/l7tech/server/service/resolution/d.val$rl Lcom/l7tech/server/service/resolution/ServiceResolutionManager$ServiceResolutionListener;
      // 04: ifnull 4d
      // 07: aload 1
      // 08: invokevirtual com/l7tech/server/service/resolution/ServiceResolver.usesMessageContent ()Z
      // 0b: ifeq 4d
      // 0e: goto 15
      // 11: invokestatic com/l7tech/server/service/resolution/d.a (Lcom/l7tech/server/service/resolution/ServiceResolutionException;)Lcom/l7tech/server/service/resolution/ServiceResolutionException;
      // 14: athrow
      // 15: aload 0
      // 16: getfield com/l7tech/server/service/resolution/d.val$notified [Z
      // 19: bipush 0
      // 1a: baload
      // 1b: ifne 4d
      // 1e: goto 25
      // 21: invokestatic com/l7tech/server/service/resolution/d.a (Lcom/l7tech/server/service/resolution/ServiceResolutionException;)Lcom/l7tech/server/service/resolution/ServiceResolutionException;
      // 24: athrow
      // 25: aload 0
      // 26: getfield com/l7tech/server/service/resolution/d.val$notified [Z
      // 29: bipush 0
      // 2a: bipush 1
      // 2b: bastore
      // 2c: aload 0
      // 2d: getfield com/l7tech/server/service/resolution/d.val$rl Lcom/l7tech/server/service/resolution/ServiceResolutionManager$ServiceResolutionListener;
      // 30: aload 0
      // 31: getfield com/l7tech/server/service/resolution/d.val$req Lcom/l7tech/message/Message;
      // 34: aload 3
      // 35: invokeinterface com/l7tech/server/service/resolution/ServiceResolutionManager$ServiceResolutionListener.notifyMessageBodyAccess (Lcom/l7tech/message/Message;Ljava/util/Collection;)Z 3
      // 3a: ifne 4d
      // 3d: goto 44
      // 40: invokestatic com/l7tech/server/service/resolution/d.a (Lcom/l7tech/server/service/resolution/ServiceResolutionException;)Lcom/l7tech/server/service/resolution/ServiceResolutionException;
      // 43: athrow
      // 44: bipush 0
      // 45: invokestatic java/lang/Boolean.valueOf (Z)Ljava/lang/Boolean;
      // 48: areturn
      // 49: invokestatic com/l7tech/server/service/resolution/d.a (Lcom/l7tech/server/service/resolution/ServiceResolutionException;)Lcom/l7tech/server/service/resolution/ServiceResolutionException;
      // 4c: athrow
      // 4d: aload 1
      // 4e: aload 0
      // 4f: getfield com/l7tech/server/service/resolution/d.val$req Lcom/l7tech/message/Message;
      // 52: aload 2
      // 53: invokevirtual com/l7tech/server/service/resolution/ServiceResolver.populateResolutionParameters (Lcom/l7tech/message/Message;Ljava/util/Map;)V
      // 56: bipush 1
      // 57: invokestatic java/lang/Boolean.valueOf (Z)Ljava/lang/Boolean;
      // 5a: areturn
      // try (0 -> 6): 7 com/l7tech/server/service/resolution/ServiceResolutionException
      // try (3 -> 14): 15 com/l7tech/server/service/resolution/ServiceResolutionException
      // try (9 -> 29): 30 com/l7tech/server/service/resolution/ServiceResolutionException
      // try (17 -> 35): 35 com/l7tech/server/service/resolution/ServiceResolutionException
   }

   private static ServiceResolutionException a(ServiceResolutionException var0) {
      return var0;
   }
}
