







#import "RedHexFailTimeCell.h"
#define spaPlan(ear) __weak typeof(ear) weak##ear = ear;
#define distorted(ear) __strong typeof(ear) ear = weak##ear;

@interface RedHexFailTimeCell()



@property (nonatomic, strong) NSTimer *radix;

@property (nonatomic, assign) BOOL chromeSuchCube;

@end

@implementation RedHexFailTimeCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _capableSize = CGSizeMake(200, 40);
        _wasSheetBend = 4;
        _model = nil;
        _channelCount = 3;
        _subAge = 0;
        _eraEmailNapRet = 0;
        _status = FeetSemicolonUnboundedGenericNominalSettings;
        _chromeSuchCube = NO;
        
    }
    return self;
}

- (void)elementsPlanArmenianSuffixAscenderValue
{
    CGFloat reminder = [[self.layer presentationLayer] frame].origin.x;
    CGFloat illLoopWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + illLoopWidth) / self.wasSheetBend;
    
    
    CGFloat detectionTime = illLoopWidth / speed;
    
    if (_eraEmailNapRet > 0) {
        self.status = RectumEarAffectingSayAnimatorHash;
        if (reminder > -1 && reminder < 1) {
            
            if (_chromeSuchCube) { return;}
            _chromeSuchCube = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_eraEmailNapRet];
            [self performSelector:@selector(hitBoxStatus) withObject:nil afterDelay:_eraEmailNapRet - detectionTime];
        }
    }
}
- (void)hitBoxStatus
{
    self.status = WaterAirCommandsDiscountsSymmetricWhite;
}

- (void)healthCatAllAlternateBehaviors:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = WaterAirCommandsDiscountsSymmetricWhite;
    
    _radix = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(elementsPlanArmenianSuffixAscenderValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_radix forMode:NSRunLoopCommonModes];
    
    
    spaPlan(self);
    [UIView animateWithDuration:self.wasSheetBend delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        distorted(self);
        self->_status = WaterAirCommandsDiscountsSymmetricWhite;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_radix) {
            [self->_radix invalidate];
            self->_radix = nil;
        }
        
    }];
}

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

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


@end
