





#import "TallDisablingEncryptedSphericalPeople.h"
@import Network;

static NSString *storeAndIllAny = nil;
static nw_path_monitor_t sixSiteSpanFor = NULL;

@implementation TallDisablingEncryptedSphericalPeople

+ (BOOL)sayVariationStandardEvictPink {
    return storeAndIllAny != nil;
}

+ (NSString *)sourceRawMaxType {
    return storeAndIllAny ?: @"none";
}

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

@end
