





#import "ParsingArgumentExceedsIconBand.h"
@import Network;

static NSString *willFindFaxNot = nil;
static nw_path_monitor_t bitYardLongPan = NULL;

@implementation ParsingArgumentExceedsIconBand

+ (BOOL)producesAchievedAgeZoomThe {
    return willFindFaxNot != nil;
}

+ (NSString *)colorHairWinType {
    return willFindFaxNot ?: @"none";
}

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

@end
