public void method558(int cache, int file) {
        if (cache < 0 || cache > files.length || file < 0 || file > files[cache].length) {
            return;
        }
        if (files[cache][file] == 0) {
            return;
        }
        synchronized (queue) {
            for (OnDemandRequest onDemandRequest = (OnDemandRequest) queue.getFront(); onDemandRequest != null; onDemandRequest = (OnDemandRequest) queue.getNext()) {
                if (onDemandRequest.dataType == cache && onDemandRequest.id == file) {
                    return;
                }
            }
            OnDemandRequest onDemandRequest = new OnDemandRequest();
            onDemandRequest.dataType = cache;
            onDemandRequest.id = file;
            onDemandRequest.incomplete = true;
            synchronized (aClass19_1370) {
                aClass19_1370.insertBack(onDemandRequest);
            }
            queue.insertBack(onDemandRequest);
        }
    }