







#import "ResizingCookieCell.h"
#define itsBeen(era) __weak typeof(era) weak##era = era;
#define leastMail(era) __strong typeof(era) era = weak##era;

@interface ResizingCookieCell()



@property (nonatomic, strong) NSTimer *dolby;

@property (nonatomic, assign) BOOL kannadaEarlier;

@end

@implementation ResizingCookieCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _anchorsSize = CGSizeMake(200, 40);
        _optStreetToo = 4;
        _model = nil;
        _channelCount = 3;
        _trySaw = 0;
        _spanDrawCreate = 0;
        _status = SolveReverseMismatchPasswordsWhoWon;
        _kannadaEarlier = NO;
        
    }
    return self;
}

- (void)filmNotationFrontAffinityLogoValue
{
    CGFloat smallKin = [[self.layer presentationLayer] frame].origin.x;
    CGFloat farBankWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + farBankWidth) / self.optStreetToo;
    
    
    CGFloat linkLegalTime = farBankWidth / speed;
    
    if (_spanDrawCreate > 0) {
        self.status = RedRefusedOddPopFocusRematch;
        if (-1< smallKin < 1) {
            
            if (_kannadaEarlier) { return;}
            _kannadaEarlier = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_spanDrawCreate];
            [self performSelector:@selector(slightStatus) withObject:nil afterDelay:_spanDrawCreate - linkLegalTime];
        }
    }
}
- (void)slightStatus
{
    self.status = ValidityWrapPanDiskCallingSiblings;
}

- (void)roleNominallyAssetCommonEncode:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = ValidityWrapPanDiskCallingSiblings;
    
    _dolby = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(filmNotationFrontAffinityLogoValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_dolby forMode:NSRunLoopCommonModes];
    
    
    itsBeen(self);
    [UIView animateWithDuration:self.optStreetToo delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        leastMail(self);
        self->_status = ValidityWrapPanDiskCallingSiblings;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_dolby) {
            [self->_dolby invalidate];
            self->_dolby = nil;
        }
        
    }];
}

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

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


@end
