







#import "SmartTrialHelpCell.h"
#define sampler(pub) __weak typeof(pub) weak##pub = pub;
#define longerSun(pub) __strong typeof(pub) pub = weak##pub;

@interface SmartTrialHelpCell()



@property (nonatomic, strong) NSTimer *prior;

@property (nonatomic, assign) BOOL offShiftTipBad;

@end

@implementation SmartTrialHelpCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _moodRedSize = CGSizeMake(200, 40);
        _rejectionZip = 4;
        _model = nil;
        _channelCount = 3;
        _youSin = 0;
        _packStartOuter = 0;
        _status = SunPoolFixRemembersRenewingSpeed;
        _offShiftTipBad = NO;
        
    }
    return self;
}

- (void)digestApplyImportantBinPathValue
{
    CGFloat keyTrait = [[self.layer presentationLayer] frame].origin.x;
    CGFloat lexiconWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + lexiconWidth) / self.rejectionZip;
    
    
    CGFloat sugarCharTime = lexiconWidth / speed;
    
    if (_packStartOuter > 0) {
        self.status = LenientGolfLengthsCupStrengthUnordered;
        if (-1< keyTrait < 1) {
            
            if (_offShiftTipBad) { return;}
            _offShiftTipBad = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_packStartOuter];
            [self performSelector:@selector(icySunStatus) withObject:nil afterDelay:_packStartOuter - sugarCharTime];
        }
    }
}
- (void)icySunStatus
{
    self.status = OverrideSameEventualStableStringProduct;
}

- (void)cityAlongsideHyphenRebusRussian:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = OverrideSameEventualStableStringProduct;
    
    _prior = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(digestApplyImportantBinPathValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_prior forMode:NSRunLoopCommonModes];
    
    
    sampler(self);
    [UIView animateWithDuration:self.rejectionZip delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        longerSun(self);
        self->_status = OverrideSameEventualStableStringProduct;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_prior) {
            [self->_prior invalidate];
            self->_prior = nil;
        }
        
    }];
}

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

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


@end
