







#import "ClipSigmaDenseCell.h"
#define needSin(obj) __weak typeof(obj) weak##obj = obj;
#define upsideMid(obj) __strong typeof(obj) obj = weak##obj;

@interface ClipSigmaDenseCell()



@property (nonatomic, strong) NSTimer *welsh;

@property (nonatomic, assign) BOOL peerRebusChunk;

@end

@implementation ClipSigmaDenseCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _chamberSize = CGSizeMake(200, 40);
        _oddStepStart = 4;
        _model = nil;
        _channelCount = 3;
        _saySob = 0;
        _minimizeInvite = 0;
        _status = LogRestoringAirDeepApplyingConverted;
        _peerRebusChunk = NO;
        
    }
    return self;
}

- (void)integralCloseMidElevationCathedralValue
{
    CGFloat existing = [[self.layer presentationLayer] frame].origin.x;
    CGFloat orderedWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + orderedWidth) / self.oddStepStart;
    
    
    CGFloat lostStandTime = orderedWidth / speed;
    
    if (_minimizeInvite > 0) {
        self.status = LooseLimitedMoreQuickSixteenKin;
        if (-1< existing < 1) {
            
            if (_peerRebusChunk) { return;}
            _peerRebusChunk = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_minimizeInvite];
            [self performSelector:@selector(moduleStatus) withObject:nil afterDelay:_minimizeInvite - lostStandTime];
        }
    }
}
- (void)moduleStatus
{
    self.status = LineMandarinLooperStructureAverageDefault;
}

- (void)insertionAdvancesRepeatFreezingDrop:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = LineMandarinLooperStructureAverageDefault;
    
    _welsh = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(integralCloseMidElevationCathedralValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_welsh forMode:NSRunLoopCommonModes];
    
    
    needSin(self);
    [UIView animateWithDuration:self.oddStepStart delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        upsideMid(self);
        self->_status = LineMandarinLooperStructureAverageDefault;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_welsh) {
            [self->_welsh invalidate];
            self->_welsh = nil;
        }
        
    }];
}

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

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


@end
