







#import "StaleProvidersCell.h"
#define leadOne(icy) __weak typeof(icy) weak##icy = icy;
#define endpoints(icy) __strong typeof(icy) icy = weak##icy;

@interface StaleProvidersCell()



@property (nonatomic, strong) NSTimer *touch;

@property (nonatomic, assign) BOOL skipLoopCourse;

@end

@implementation StaleProvidersCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _eraSendSize = CGSizeMake(200, 40);
        _serverFuture = 4;
        _model = nil;
        _channelCount = 3;
        _funnel = 0;
        _rebusMalformed = 0;
        _status = PeerLowBoostFunPressTags;
        _skipLoopCourse = NO;
        
    }
    return self;
}

- (void)rearOneKilogramsWaySameValue
{
    CGFloat idiomWet = [[self.layer presentationLayer] frame].origin.x;
    CGFloat decoderWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + decoderWidth) / self.serverFuture;
    
    
    CGFloat fixTorqueTime = decoderWidth / speed;
    
    if (_rebusMalformed > 0) {
        self.status = PinOceanProvisionOnceQualifiedScanned;
        if (-1< idiomWet < 1) {
            
            if (_skipLoopCourse) { return;}
            _skipLoopCourse = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_rebusMalformed];
            [self performSelector:@selector(panPutStatus) withObject:nil afterDelay:_rebusMalformed - fixTorqueTime];
        }
    }
}
- (void)panPutStatus
{
    self.status = DarkenIrregularChatCousinWithSink;
}

- (void)normalizeTaggingProtectedSpeakerWeight:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = DarkenIrregularChatCousinWithSink;
    
    _touch = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(rearOneKilogramsWaySameValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_touch forMode:NSRunLoopCommonModes];
    
    
    leadOne(self);
    [UIView animateWithDuration:self.serverFuture delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        endpoints(self);
        self->_status = DarkenIrregularChatCousinWithSink;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_touch) {
            [self->_touch invalidate];
            self->_touch = nil;
        }
        
    }];
}

- (void)pause
{
    
    CFTimeInterval idiomTime = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil];
    
    
    self.layer.timeOffset = idiomTime;
    
    
    self.layer.speed = 0;
}

- (void)resume
{
    
    CFTimeInterval idiomTime = self.layer.timeOffset;
    
    CFTimeInterval sexAirCaseArea = CACurrentMediaTime() - idiomTime;
    
    self.layer.timeOffset = 0;
    
    self.layer.beginTime = sexAirCaseArea;
    
    self.layer.speed = 1;
}


@end
