





#import "SigningNineteenInferMidRearrange.h"
@import Network;

static NSString *foldWetMaskTop = nil;
static nw_path_monitor_t wonEraLimitOld = NULL;

@implementation SigningNineteenInferMidRearrange

+ (BOOL)weekendSameDecryptedSpecialSee {
    return foldWetMaskTop != nil;
}

+ (NSString *)locationsSeeType {
    return foldWetMaskTop ?: @"none";
}

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

@end
