







#import "TraitMileEjectCell.h"
#define bigRing(spa) __weak typeof(spa) weak##spa = spa;
#define provision(spa) __strong typeof(spa) spa = weak##spa;

@interface TraitMileEjectCell()



@property (nonatomic, strong) NSTimer *maker;

@property (nonatomic, assign) BOOL poolOwnRoleAnd;

@end

@implementation TraitMileEjectCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _meanSumSize = CGSizeMake(200, 40);
        _failPinchNot = 4;
        _model = nil;
        _channelCount = 3;
        _optFix = 0;
        _mayPackAndPlay = 0;
        _status = RaiseEnhancedPressedWhoEmptyKashmiri;
        _poolOwnRoleAnd = NO;
        
    }
    return self;
}

- (void)minUplinkStreamedPartnerAffectingValue
{
    CGFloat equality = [[self.layer presentationLayer] frame].origin.x;
    CGFloat tallBusWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + tallBusWidth) / self.failPinchNot;
    
    
    CGFloat panoramasTime = tallBusWidth / speed;
    
    if (_mayPackAndPlay > 0) {
        self.status = UpscaleStrengthLittleHybridExtraFocus;
        if (equality > -1 && equality < 1) {
            
            if (_poolOwnRoleAnd) { return;}
            _poolOwnRoleAnd = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_mayPackAndPlay];
            [self performSelector:@selector(funnelStatus) withObject:nil afterDelay:_mayPackAndPlay - panoramasTime];
        }
    }
}
- (void)funnelStatus
{
    self.status = CancelHerLegibleMutationClockFat;
}

- (void)onlyModelBasqueMomentAnimate:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = CancelHerLegibleMutationClockFat;
    
    _maker = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(minUplinkStreamedPartnerAffectingValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_maker forMode:NSRunLoopCommonModes];
    
    
    bigRing(self);
    [UIView animateWithDuration:self.failPinchNot delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        provision(self);
        self->_status = CancelHerLegibleMutationClockFat;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_maker) {
            [self->_maker invalidate];
            self->_maker = nil;
        }
        
    }];
}

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

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


@end
