







#import "CheckOutOddBarCell.h"
#define newtons(sob) __weak typeof(sob) weak##sob = sob;
#define illExtras(sob) __strong typeof(sob) sob = weak##sob;

@interface CheckOutOddBarCell()



@property (nonatomic, strong) NSTimer *great;

@property (nonatomic, assign) BOOL quitDogHoldHis;

@end

@implementation CheckOutOddBarCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _footPenSize = CGSizeMake(200, 40);
        _callbacksRun = 4;
        _model = nil;
        _channelCount = 3;
        _theMax = 0;
        _soloUnwindRing = 0;
        _status = CampaignRelationsExplicitExpiredWeeklyTexture;
        _quitDogHoldHis = NO;
        
    }
    return self;
}

- (void)entitledLongerStandOceanBookValue
{
    CGFloat slantAnd = [[self.layer presentationLayer] frame].origin.x;
    CGFloat fadeSunWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + fadeSunWidth) / self.callbacksRun;
    
    
    CGFloat capFolderTime = fadeSunWidth / speed;
    
    if (_soloUnwindRing > 0) {
        self.status = BikeSocketSameRealmWeekendPassively;
        if (-1< slantAnd < 1) {
            
            if (_quitDogHoldHis) { return;}
            _quitDogHoldHis = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_soloUnwindRing];
            [self performSelector:@selector(uplinkStatus) withObject:nil afterDelay:_soloUnwindRing - capFolderTime];
        }
    }
}
- (void)uplinkStatus
{
    self.status = ThirdLibrariesMotionBusyWaxWeekly;
}

- (void)highestOffsetsSuccessLayerRedirects:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = ThirdLibrariesMotionBusyWaxWeekly;
    
    _great = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(entitledLongerStandOceanBookValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_great forMode:NSRunLoopCommonModes];
    
    
    newtons(self);
    [UIView animateWithDuration:self.callbacksRun delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        illExtras(self);
        self->_status = ThirdLibrariesMotionBusyWaxWeekly;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_great) {
            [self->_great invalidate];
            self->_great = nil;
        }
        
    }];
}

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

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


@end
