







#import "UnifyFlatBringCell.h"
#define bankArm(pen) __weak typeof(pen) weak##pen = pen;
#define feetExist(pen) __strong typeof(pen) pen = weak##pen;

@interface UnifyFlatBringCell()



@property (nonatomic, strong) NSTimer *stale;

@property (nonatomic, assign) BOOL seedStarOwnTap;

@end

@implementation UnifyFlatBringCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _retriedSize = CGSizeMake(200, 40);
        _closeDropIll = 4;
        _model = nil;
        _channelCount = 3;
        _coptic = 0;
        _ruleOwnTeamBus = 0;
        _status = YellowPolicyTwistBondKeepZip;
        _seedStarOwnTap = NO;
        
    }
    return self;
}

- (void)appearingSelectingWarpCupPromotionValue
{
    CGFloat shortEnd = [[self.layer presentationLayer] frame].origin.x;
    CGFloat licenseWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + licenseWidth) / self.closeDropIll;
    
    
    CGFloat bigFunnelTime = licenseWidth / speed;
    
    if (_ruleOwnTeamBus > 0) {
        self.status = ThreadEnvelopeProcessGolfGopherDust;
        if (-1< shortEnd < 1) {
            
            if (_seedStarOwnTap) { return;}
            _seedStarOwnTap = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_ruleOwnTeamBus];
            [self performSelector:@selector(runTooStatus) withObject:nil afterDelay:_ruleOwnTeamBus - bigFunnelTime];
        }
    }
}
- (void)runTooStatus
{
    self.status = NeedPlayableUnsavedInsulinSmoothingReset;
}

- (void)operatingCameraAllPerformsSolutions:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = NeedPlayableUnsavedInsulinSmoothingReset;
    
    _stale = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(appearingSelectingWarpCupPromotionValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_stale forMode:NSRunLoopCommonModes];
    
    
    bankArm(self);
    [UIView animateWithDuration:self.closeDropIll delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        feetExist(self);
        self->_status = NeedPlayableUnsavedInsulinSmoothingReset;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_stale) {
            [self->_stale invalidate];
            self->_stale = nil;
        }
        
    }];
}

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

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


@end
