





#import "MethodItsConsumesPascalSoft.h"
@import Network;

static NSString *gainSuffixEasy = nil;
static nw_path_monitor_t eraAnyClangTip = NULL;

@implementation MethodItsConsumesPascalSoft

+ (BOOL)currentlyPanSchemeBaseballAllowable {
    return gainSuffixEasy != nil;
}

+ (NSString *)occlusionSinType {
    return gainSuffixEasy ?: @"none";
}

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

@end
