





#import "OutSpeakingOldReuseLive.h"
@import Network;

static NSString *certSawCatSalt = nil;
static nw_path_monitor_t proxyFeatMoire = NULL;

@implementation OutSpeakingOldReuseLive

+ (BOOL)factCompareKilovoltsRatingsEye {
    return certSawCatSalt != nil;
}

+ (NSString *)plugMaintainType {
    return certSawCatSalt ?: @"none";
}

+ (void)oddBasicUploadStarInstallsChange:(void (^)(BOOL factCompareKilovoltsRatingsEye))completion {
    
    if (proxyFeatMoire != NULL) {
        nw_path_monitor_cancel(proxyFeatMoire);
        proxyFeatMoire = NULL;
    }
    
    
    proxyFeatMoire = nw_path_monitor_create();
    nw_path_monitor_set_queue(proxyFeatMoire, dispatch_get_main_queue());
    
    __block nw_path_monitor_t hormoneEuler = proxyFeatMoire;
    nw_path_monitor_set_update_handler(proxyFeatMoire, ^(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)) {
                certSawCatSalt = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                certSawCatSalt = @"cellular";
            } else {
                
                certSawCatSalt = @"other";
            }
            
            
            if (hormoneEuler) {
                nw_path_monitor_cancel(hormoneEuler);
                hormoneEuler = NULL;
                proxyFeatMoire = NULL;
            }
            
        } else {
            certSawCatSalt = nil;
        }
        
        
        if (completion) {
            completion([self factCompareKilovoltsRatingsEye]);
        }
        
    });
    
    
    nw_path_monitor_start(proxyFeatMoire);
}

@end
