package hanson.xyz.vpnhotspotmod.net.monitor;

@kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\b&\u0018\u0000 (2\u00020\u0001:\u0003()*B\u0005\u00a2\u0006\u0002\u0010\u0002J\u0006\u0010\r\u001a\u00020\u000eJ\u0013\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0086@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0010J\u0006\u0010\u0011\u001a\u00020\fJ\u001f\u0010\u0012\u001a\u00020\u000e2\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00150\u0014H\u0082@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0016J\u0019\u0010\u0017\u001a\u00020\u000e2\u0006\u0010\u0018\u001a\u00020\u0019H\u0082@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u001aJ\b\u0010\u001b\u001a\u00020\u000eH\u0004J\u0011\u0010\u001c\u001a\u00020\u000eH\u0082@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u0010J\u0019\u0010\u001d\u001a\u00020\u000e2\u0006\u0010\u001e\u001a\u00020\bH\u00a4@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\u001fJ\u001f\u0010 \u001a\u00020\u000e2\f\u0010!\u001a\b\u0012\u0004\u0012\u00020\b0\"H\u00a4@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010#J\u001d\u0010$\u001a\u0004\u0018\u00010%2\b\u0010&\u001a\u0004\u0018\u00010%H\u0082@\u00f8\u0001\u0000\u00a2\u0006\u0002\u0010\'R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0012\u0010\u0007\u001a\u00020\bX\u00a4\u0004\u00a2\u0006\u0006\u001a\u0004\b\t\u0010\nR\u000e\u0010\u000b\u001a\u00020\fX\u0082.\u00a2\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019\u00a8\u0006+"}, d2 = {"Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor;", "", "()V", "destroyed", "", "monitor", "Ljava/lang/Process;", "monitoredObject", "", "getMonitoredObject", "()Ljava/lang/String;", "worker", "Lkotlinx/coroutines/Job;", "destroy", "", "flush", "(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "flushAsync", "handleChannel", "channel", "Lkotlinx/coroutines/channels/ReceiveChannel;", "Lhanson/xyz/vpnhotspotmod/root/ProcessData;", "(Lkotlinx/coroutines/channels/ReceiveChannel;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "handleProcess", "builder", "Ljava/lang/ProcessBuilder;", "(Ljava/lang/ProcessBuilder;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "init", "poll", "processLine", "line", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "processLines", "lines", "Lkotlin/sequences/Sequence;", "(Lkotlin/sequences/Sequence;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "work", "Lbe/mygod/librootkotlinx/RootServer;", "server", "(Lbe/mygod/librootkotlinx/RootServer;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "Companion", "FlushFailure", "Mode", "mobile_freedomDebug"})
public abstract class IpMonitor {
    @org.jetbrains.annotations.NotNull
    public static final java.lang.String KEY = "service.ipMonitor";
    @org.jetbrains.annotations.NotNull
    private static final kotlin.text.Regex errorMatcher = null;
    @kotlin.jvm.Volatile
    private volatile boolean destroyed = false;
    @org.jetbrains.annotations.Nullable
    private java.lang.Process monitor;
    private kotlinx.coroutines.Job worker;
    @org.jetbrains.annotations.NotNull
    public static final hanson.xyz.vpnhotspotmod.net.monitor.IpMonitor.Companion Companion = null;
    
    public IpMonitor() {
        super();
    }
    
    @org.jetbrains.annotations.NotNull
    protected abstract java.lang.String getMonitoredObject();
    
    @org.jetbrains.annotations.Nullable
    protected abstract java.lang.Object processLine(@org.jetbrains.annotations.NotNull
    java.lang.String line, @org.jetbrains.annotations.NotNull
    kotlin.coroutines.Continuation<? super kotlin.Unit> $completion);
    
    @org.jetbrains.annotations.Nullable
    protected abstract java.lang.Object processLines(@org.jetbrains.annotations.NotNull
    kotlin.sequences.Sequence<java.lang.String> lines, @org.jetbrains.annotations.NotNull
    kotlin.coroutines.Continuation<? super kotlin.Unit> $completion);
    
    @kotlin.Suppress(names = {"BlockingMethodInNonBlockingContext"})
    private final java.lang.Object handleProcess(java.lang.ProcessBuilder builder, kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
        return null;
    }
    
    private final java.lang.Object handleChannel(kotlinx.coroutines.channels.ReceiveChannel<? extends hanson.xyz.vpnhotspotmod.root.ProcessData> channel, kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
        return null;
    }
    
    protected final void init() {
    }
    
    /**
     * Possibly blocking. Should run in IO dispatcher or use [flushAsync].
     */
    @org.jetbrains.annotations.Nullable
    public final java.lang.Object flush(@org.jetbrains.annotations.NotNull
    kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
        return null;
    }
    
    @org.jetbrains.annotations.NotNull
    public final kotlinx.coroutines.Job flushAsync() {
        return null;
    }
    
    private final java.lang.Object work(be.mygod.librootkotlinx.RootServer server, kotlin.coroutines.Continuation<? super be.mygod.librootkotlinx.RootServer> $completion) {
        return null;
    }
    
    @kotlin.Suppress(names = {"BlockingMethodInNonBlockingContext"})
    private final java.lang.Object poll(kotlin.coroutines.Continuation<? super kotlin.Unit> $completion) {
        return null;
    }
    
    public final void destroy() {
    }
    
    @kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T\u00a2\u0006\u0002\n\u0000R$\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u00068F@FX\u0086\u000e\u00a2\u0006\f\u001a\u0004\b\b\u0010\t\"\u0004\b\n\u0010\u000bR\u000e\u0010\f\u001a\u00020\rX\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000e"}, d2 = {"Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor$Companion;", "", "()V", "KEY", "", "value", "Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor$Mode;", "currentMode", "getCurrentMode", "()Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor$Mode;", "setCurrentMode", "(Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor$Mode;)V", "errorMatcher", "Lkotlin/text/Regex;", "mobile_freedomDebug"})
    public static final class Companion {
        
        private Companion() {
            super();
        }
        
        @org.jetbrains.annotations.NotNull
        public final hanson.xyz.vpnhotspotmod.net.monitor.IpMonitor.Mode getCurrentMode() {
            return null;
        }
        
        public final void setCurrentMode(@org.jetbrains.annotations.NotNull
        hanson.xyz.vpnhotspotmod.net.monitor.IpMonitor.Mode value) {
        }
    }
    
    @kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0002\u0018\u00002\u00060\u0001j\u0002`\u0002B\u0005\u00a2\u0006\u0002\u0010\u0003\u00a8\u0006\u0004"}, d2 = {"Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor$FlushFailure;", "Ljava/lang/RuntimeException;", "Lkotlin/RuntimeException;", "()V", "mobile_freedomDebug"})
    static final class FlushFailure extends java.lang.RuntimeException {
        
        public FlushFailure() {
            super();
        }
    }
    
    @kotlin.Metadata(mv = {1, 9, 0}, k = 1, xi = 48, d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0011\b\u0002\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0005j\u0002\b\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\t\u00a8\u0006\n"}, d2 = {"Lhanson/xyz/vpnhotspotmod/net/monitor/IpMonitor$Mode;", "", "isMonitor", "", "(Ljava/lang/String;IZ)V", "()Z", "Monitor", "MonitorRoot", "Poll", "PollRoot", "mobile_freedomDebug"})
    public static enum Mode {
        @java.lang.Deprecated
        /*public static final*/ Monitor /* = new Monitor(false) */,
        /*public static final*/ MonitorRoot /* = new MonitorRoot(false) */,
        @java.lang.Deprecated
        /*public static final*/ Poll /* = new Poll(false) */,
        /*public static final*/ PollRoot /* = new PollRoot(false) */;
        private final boolean isMonitor = false;
        
        Mode(boolean isMonitor) {
        }
        
        public final boolean isMonitor() {
            return false;
        }
        
        @org.jetbrains.annotations.NotNull
        public static kotlin.enums.EnumEntries<hanson.xyz.vpnhotspotmod.net.monitor.IpMonitor.Mode> getEntries() {
            return null;
        }
    }
}