





#import "SpringUnboundIgnoredPrefersContained.h"
@import Network;

static NSString *millBankPrefix = nil;
static nw_path_monitor_t leapStarSender = NULL;

@implementation SpringUnboundIgnoredPrefersContained

+ (BOOL)tightDogDuctilityCroatianHurricane {
    return millBankPrefix != nil;
}

+ (NSString *)optionGenderType {
    return millBankPrefix ?: @"none";
}

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

@end
