







#import "DryEndNowMolarCell.h"
#define fourJob(our) __weak typeof(our) weak##our = our;
#define maskLocal(our) __strong typeof(our) our = weak##our;

@interface DryEndNowMolarCell()



@property (nonatomic, strong) NSTimer *small;

@property (nonatomic, assign) BOOL oldPriceBigKey;

@end

@implementation DryEndNowMolarCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _rebuildSize = CGSizeMake(200, 40);
        _sinLocalRest = 4;
        _model = nil;
        _channelCount = 3;
        _larger = 0;
        _printedTexture = 0;
        _status = TropicalVowelStairAlbanianWasKey;
        _oldPriceBigKey = NO;
        
    }
    return self;
}

- (void)theTruncateHerOrangeEraValue
{
    CGFloat sinkMost = [[self.layer presentationLayer] frame].origin.x;
    CGFloat ordinalWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + ordinalWidth) / self.sinLocalRest;
    
    
    CGFloat areTwelveTime = ordinalWidth / speed;
    
    if (_printedTexture > 0) {
        self.status = BurstTwoRetrieveCathedralKelvinAbsent;
        if (sinkMost > -1 && sinkMost < 1) {
            
            if (_oldPriceBigKey) { return;}
            _oldPriceBigKey = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_printedTexture];
            [self performSelector:@selector(wetWhoStatus) withObject:nil afterDelay:_printedTexture - areTwelveTime];
        }
    }
}
- (void)wetWhoStatus
{
    self.status = LocatorSonAdditionMegabitsMissingMask;
}

- (void)hourEulerNotifiesFixLink:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = LocatorSonAdditionMegabitsMissingMask;
    
    _small = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(theTruncateHerOrangeEraValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_small forMode:NSRunLoopCommonModes];
    
    
    fourJob(self);
    [UIView animateWithDuration:self.sinLocalRest delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        maskLocal(self);
        self->_status = LocatorSonAdditionMegabitsMissingMask;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_small) {
            [self->_small invalidate];
            self->_small = nil;
        }
        
    }];
}

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

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


@end
