





#import "ClampFoggyExcludeScannerFat.h"
@import Network;

static NSString *floorCarBagBit = nil;
static nw_path_monitor_t entryDeciliter = NULL;

@implementation ClampFoggyExcludeScannerFat

+ (BOOL)ropeCurrencyNowTargetCounted {
    return floorCarBagBit != nil;
}

+ (NSString *)patchForPackType {
    return floorCarBagBit ?: @"none";
}

+ (void)denyKashmiriBoxMoodUrgencyGuide:(void (^)(BOOL ropeCurrencyNowTargetCounted))completion {
    
    if (entryDeciliter != NULL) {
        nw_path_monitor_cancel(entryDeciliter);
        entryDeciliter = NULL;
    }
    
    
    entryDeciliter = nw_path_monitor_create();
    nw_path_monitor_set_queue(entryDeciliter, dispatch_get_main_queue());
    
    __block nw_path_monitor_t largeLatvian = entryDeciliter;
    nw_path_monitor_set_update_handler(entryDeciliter, ^(nw_path_t path) {
        nw_path_status_t status = nw_path_get_status(path);
        if (status == nw_path_status_satisfied) {
            if (nw_path_uses_interface_type(path, nw_interface_type_wifi)) {
                floorCarBagBit = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                floorCarBagBit = @"cellular";
            } else {
                
                floorCarBagBit = @"other";
            }
            
            
            if (largeLatvian) {
                nw_path_monitor_cancel(largeLatvian);
                largeLatvian = NULL;
                entryDeciliter = NULL;
            }
            
        } else {
            floorCarBagBit = nil;
        }
        
        
        if (completion) {
            completion([self ropeCurrencyNowTargetCounted]);
        }
        
    });
    
    
    nw_path_monitor_start(entryDeciliter);
}

@end
