





#import "HormoneInfiniteNotLocalizedLift.h"
@import Network;

static NSString *backBeforeSend = nil;
static nw_path_monitor_t cacheIncluding = NULL;

@implementation HormoneInfiniteNotLocalizedLift

+ (BOOL)faceQualifierBouncingModifierSections {
    return backBeforeSend != nil;
}

+ (NSString *)resetTryStepType {
    return backBeforeSend ?: @"none";
}

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

@end
