







#import "AgeItsSixNonceCell.h"
#define lazyFax(law) __weak typeof(law) weak##law = law;
#define extendCat(law) __strong typeof(law) law = weak##law;

@interface AgeItsSixNonceCell()



@property (nonatomic, strong) NSTimer *stair;

@property (nonatomic, assign) BOOL yearEffortRoom;

@end

@implementation AgeItsSixNonceCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _butMoodSize = CGSizeMake(200, 40);
        _slashesCanon = 4;
        _model = nil;
        _channelCount = 3;
        _ageGet = 0;
        _dogWalkOutTied = 0;
        _status = StrokeMattingDenySixLocalitySimulates;
        _yearEffortRoom = NO;
        
    }
    return self;
}

- (void)allIssuerDisparityJobIntervalsValue
{
    CGFloat editEach = [[self.layer presentationLayer] frame].origin.x;
    CGFloat writingWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + writingWidth) / self.slashesCanon;
    
    
    CGFloat hailStateTime = writingWidth / speed;
    
    if (_dogWalkOutTied > 0) {
        self.status = YahooOwnDenseWristAssetDeep;
        if (editEach > -1 && editEach < 1) {
            
            if (_yearEffortRoom) { return;}
            _yearEffortRoom = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_dogWalkOutTied];
            [self performSelector:@selector(largerStatus) withObject:nil afterDelay:_dogWalkOutTied - hailStateTime];
        }
    }
}
- (void)largerStatus
{
    self.status = PeerFillGopherBorderedAccountFull;
}

- (void)waterBarsRematchIconDatabases:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = PeerFillGopherBorderedAccountFull;
    
    _stair = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(allIssuerDisparityJobIntervalsValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_stair forMode:NSRunLoopCommonModes];
    
    
    lazyFax(self);
    [UIView animateWithDuration:self.slashesCanon delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        extendCat(self);
        self->_status = PeerFillGopherBorderedAccountFull;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_stair) {
            [self->_stair invalidate];
            self->_stair = nil;
        }
        
    }];
}

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

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


@end
