







#import "ManMildMidPairCell.h"
#define mustYet(bit) __weak typeof(bit) weak##bit = bit;
#define birthPipe(bit) __strong typeof(bit) bit = weak##bit;

@interface ManMildMidPairCell()



@property (nonatomic, strong) NSTimer *relay;

@property (nonatomic, assign) BOOL linerBlackSide;

@end

@implementation ManMildMidPairCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _highCapSize = CGSizeMake(200, 40);
        _filmApplyZip = 4;
        _model = nil;
        _channelCount = 3;
        _period = 0;
        _oddHallBondJob = 0;
        _status = FaxReportingCreatingBasalAnimatedOutlet;
        _linerBlackSide = NO;
        
    }
    return self;
}

- (void)tatarCurveAnimateAlgorithmProtectedValue
{
    CGFloat netJoule = [[self.layer presentationLayer] frame].origin.x;
    CGFloat dashAndWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + dashAndWidth) / self.filmApplyZip;
    
    
    CGFloat pinArabicTime = dashAndWidth / speed;
    
    if (_oddHallBondJob > 0) {
        self.status = DarkTildeSlashFunOverrideEnabling;
        if (-1< netJoule < 1) {
            
            if (_linerBlackSide) { return;}
            _linerBlackSide = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_oddHallBondJob];
            [self performSelector:@selector(alwaysStatus) withObject:nil afterDelay:_oddHallBondJob - pinArabicTime];
        }
    }
}
- (void)alwaysStatus
{
    self.status = YardRawCelsiusSeedPeopleSpouse;
}

- (void)cutPrefixedIntroOldUnwrap:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = YardRawCelsiusSeedPeopleSpouse;
    
    _relay = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(tatarCurveAnimateAlgorithmProtectedValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_relay forMode:NSRunLoopCommonModes];
    
    
    mustYet(self);
    [UIView animateWithDuration:self.filmApplyZip delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        birthPipe(self);
        self->_status = YardRawCelsiusSeedPeopleSpouse;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_relay) {
            [self->_relay invalidate];
            self->_relay = nil;
        }
        
    }];
}

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

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


@end
