







#import "LightStripEditCell.h"
#define moreToo(ten) __weak typeof(ten) weak##ten = ten;
#define cursorPen(ten) __strong typeof(ten) ten = weak##ten;

@interface LightStripEditCell()



@property (nonatomic, strong) NSTimer *molar;

@property (nonatomic, assign) BOOL loopBadgeCubic;

@end

@implementation LightStripEditCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _pinSendSize = CGSizeMake(200, 40);
        _shearRealBut = 4;
        _model = nil;
        _channelCount = 3;
        _editor = 0;
        _bitMaxRowAxial = 0;
        _status = DenyRecoveryBetweenSleepDetachingJoining;
        _loopBadgeCubic = NO;
        
    }
    return self;
}

- (void)scrollStringVelocityPenCoulombsValue
{
    CGFloat fallback = [[self.layer presentationLayer] frame].origin.x;
    CGFloat lettersWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + lettersWidth) / self.shearRealBut;
    
    
    CGFloat buddySwapTime = lettersWidth / speed;
    
    if (_bitMaxRowAxial > 0) {
        self.status = BelowCheckerBufferLocalesIodineFrame;
        if (-1< fallback < 1) {
            
            if (_loopBadgeCubic) { return;}
            _loopBadgeCubic = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_bitMaxRowAxial];
            [self performSelector:@selector(itsYouStatus) withObject:nil afterDelay:_bitMaxRowAxial - buddySwapTime];
        }
    }
}
- (void)itsYouStatus
{
    self.status = UnlockedNotAmbiguityChangeAutoCookie;
}

- (void)helloCaffeineControlsReceivingFeatured:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = UnlockedNotAmbiguityChangeAutoCookie;
    
    _molar = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(scrollStringVelocityPenCoulombsValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_molar forMode:NSRunLoopCommonModes];
    
    
    moreToo(self);
    [UIView animateWithDuration:self.shearRealBut delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        cursorPen(self);
        self->_status = UnlockedNotAmbiguityChangeAutoCookie;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_molar) {
            [self->_molar invalidate];
            self->_molar = nil;
        }
        
    }];
}

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

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


@end
