







#import "BedBitRunSolveCell.h"
#define clipSin(pub) __weak typeof(pub) weak##pub = pub;
#define rootFinal(pub) __strong typeof(pub) pub = weak##pub;

@interface BedBitRunSolveCell()



@property (nonatomic, strong) NSTimer *smart;

@property (nonatomic, assign) BOOL basicHashLocal;

@end

@implementation BedBitRunSolveCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _catStarSize = CGSizeMake(200, 40);
        _delayWhoFork = 4;
        _model = nil;
        _channelCount = 3;
        _manArt = 0;
        _heapWeekHisLaw = 0;
        _status = MeteringCupQuoteSmoothTrailingHeart;
        _basicHashLocal = NO;
        
    }
    return self;
}

- (void)settingsBriefLayeringYouNowValue
{
    CGFloat hitPhoto = [[self.layer presentationLayer] frame].origin.x;
    CGFloat repliesWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + repliesWidth) / self.delayWhoFork;
    
    
    CGFloat sawCancelTime = repliesWidth / speed;
    
    if (_heapWeekHisLaw > 0) {
        self.status = BayerSurgeActiveRealEnsureFind;
        if (-1< hitPhoto < 1) {
            
            if (_basicHashLocal) { return;}
            _basicHashLocal = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_heapWeekHisLaw];
            [self performSelector:@selector(cupSixStatus) withObject:nil afterDelay:_heapWeekHisLaw - sawCancelTime];
        }
    }
}
- (void)cupSixStatus
{
    self.status = AllowContainsRecentlyExportSnowBouncing;
}

- (void)edgeMildHostingKeyRemoves:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = AllowContainsRecentlyExportSnowBouncing;
    
    _smart = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(settingsBriefLayeringYouNowValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_smart forMode:NSRunLoopCommonModes];
    
    
    clipSin(self);
    [UIView animateWithDuration:self.delayWhoFork delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        rootFinal(self);
        self->_status = AllowContainsRecentlyExportSnowBouncing;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_smart) {
            [self->_smart invalidate];
            self->_smart = nil;
        }
        
    }];
}

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

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


@end
