package epson.scan.lib;

import java.util.List;

public class CancelableScannerProbe {
    private escanLib mEscanLib;
    private volatile boolean mProbingScanner;

    /*  JADX ERROR: IndexOutOfBoundsException in pass: RegionMakerVisitor
        java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        	at java.util.ArrayList.rangeCheck(ArrayList.java:657)
        	at java.util.ArrayList.get(ArrayList.java:433)
        	at jadx.core.dex.nodes.InsnNode.getArg(InsnNode.java:101)
        	at jadx.core.dex.visitors.regions.RegionMaker.traverseMonitorExits(RegionMaker.java:611)
        	at jadx.core.dex.visitors.regions.RegionMaker.traverseMonitorExits(RegionMaker.java:619)
        	at jadx.core.dex.visitors.regions.RegionMaker.traverseMonitorExits(RegionMaker.java:619)
        	at jadx.core.dex.visitors.regions.RegionMaker.traverseMonitorExits(RegionMaker.java:619)
        	at jadx.core.dex.visitors.regions.RegionMaker.processMonitorEnter(RegionMaker.java:561)
        	at jadx.core.dex.visitors.regions.RegionMaker.traverse(RegionMaker.java:133)
        	at jadx.core.dex.visitors.regions.RegionMaker.makeRegion(RegionMaker.java:86)
        	at jadx.core.dex.visitors.regions.RegionMaker.processHandlersOutBlocks(RegionMaker.java:1008)
        	at jadx.core.dex.visitors.regions.RegionMaker.processTryCatchBlocks(RegionMaker.java:978)
        	at jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:52)
        */
    public java.lang.String probeScanner_test(epson.scan.activity.ScannerPropertyWrapper r7, android.content.Context r8) {

        throw new UnsupportedOperationException("Method not decompiled: epson.scan.lib.CancelableScannerProbe.probeScanner_test(epson.scan.activity.ScannerPropertyWrapper, android.content.Context):java.lang.String");
    }


    public java.lang.String probeScanner(epson.scan.activity.ScannerPropertyWrapper r7, android.content.Context r8) throws epson.scan.lib.EscanLibException {

        throw new UnsupportedOperationException("Method not decompiled: epson.scan.lib.CancelableScannerProbe.probeScanner(epson.scan.activity.ScannerPropertyWrapper, android.content.Context):java.lang.String");
    }

    private static String localProbeById(escanLib escanlib, String str, String str2) {
        List<ScannerInfo> listFoundScanner;
        escanlib.resetEscanLib();
        if (escanlib.probeScannerById(str, str2) == 0 && (listFoundScanner = escanlib.getListFoundScanner()) != null && listFoundScanner.size() > 0) {
            return listFoundScanner.get(0).getIp();
        }
        return null;
    }

    public void cancel() {
        synchronized (this) {
            if (mProbingScanner && mEscanLib != null) {
                mEscanLib.escanWrapperCancelFindScanner();
            }
        }
    }
}
