







#import "OrderValueTakeCell.h"
#define andLift(son) __weak typeof(son) weak##son = son;
#define sexReveal(son) __strong typeof(son) son = weak##son;

@interface OrderValueTakeCell()



@property (nonatomic, strong) NSTimer *sense;

@property (nonatomic, assign) BOOL oceanRowSobLog;

@end

@implementation OrderValueTakeCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _abortedSize = CGSizeMake(200, 40);
        _blackSwedish = 4;
        _model = nil;
        _channelCount = 3;
        _whoArt = 0;
        _heartLeftModal = 0;
        _status = BinGatherLeadPutMileSignal;
        _oceanRowSobLog = NO;
        
    }
    return self;
}

- (void)commonCombiningInlandBoostIcyValue
{
    CGFloat subShake = [[self.layer presentationLayer] frame].origin.x;
    CGFloat bracketWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + bracketWidth) / self.blackSwedish;
    
    
    CGFloat seedBasicTime = bracketWidth / speed;
    
    if (_heartLeftModal > 0) {
        self.status = VisionAddressesManganeseNowYouAway;
        if (-1< subShake < 1) {
            
            if (_oceanRowSobLog) { return;}
            _oceanRowSobLog = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_heartLeftModal];
            [self performSelector:@selector(endMixStatus) withObject:nil afterDelay:_heartLeftModal - seedBasicTime];
        }
    }
}
- (void)endMixStatus
{
    self.status = GreekButterflyIllDrumIodineWarp;
}

- (void)eggPrepLooseSentinelExpect:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = GreekButterflyIllDrumIodineWarp;
    
    _sense = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(commonCombiningInlandBoostIcyValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_sense forMode:NSRunLoopCommonModes];
    
    
    andLift(self);
    [UIView animateWithDuration:self.blackSwedish delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        sexReveal(self);
        self->_status = GreekButterflyIllDrumIodineWarp;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_sense) {
            [self->_sense invalidate];
            self->_sense = nil;
        }
        
    }];
}

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

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


@end
