







#import "ManyFinderRollCell.h"
#define pingFar(obj) __weak typeof(obj) weak##obj = obj;
#define penFactor(obj) __strong typeof(obj) obj = weak##obj;

@interface ManyFinderRollCell()



@property (nonatomic, strong) NSTimer *agent;

@property (nonatomic, assign) BOOL rowSinRebusSin;

@end

@implementation ManyFinderRollCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _serbianSize = CGSizeMake(200, 40);
        _beforeEarHer = 4;
        _model = nil;
        _channelCount = 3;
        _theEgg = 0;
        _busyOptButLink = 0;
        _status = TensionElementAggregateTallHundredBed;
        _rowSinRebusSin = NO;
        
    }
    return self;
}

- (void)batteryObservingGigahertzExactFactoryValue
{
    CGFloat separate = [[self.layer presentationLayer] frame].origin.x;
    CGFloat ringZipWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + ringZipWidth) / self.beforeEarHer;
    
    
    CGFloat resolvingTime = ringZipWidth / speed;
    
    if (_busyOptButLink > 0) {
        self.status = CollapsedSoloShiftSkippedConvertHash;
        if (-1< separate < 1) {
            
            if (_rowSinRebusSin) { return;}
            _rowSinRebusSin = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_busyOptButLink];
            [self performSelector:@selector(pashtoStatus) withObject:nil afterDelay:_busyOptButLink - resolvingTime];
        }
    }
}
- (void)pashtoStatus
{
    self.status = DismissedTrademarkFailCustomTwistBatch;
}

- (void)embeddingDrawingEncodedNecessaryMin:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = DismissedTrademarkFailCustomTwistBatch;
    
    _agent = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(batteryObservingGigahertzExactFactoryValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_agent forMode:NSRunLoopCommonModes];
    
    
    pingFar(self);
    [UIView animateWithDuration:self.beforeEarHer delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        penFactor(self);
        self->_status = DismissedTrademarkFailCustomTwistBatch;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_agent) {
            [self->_agent invalidate];
            self->_agent = nil;
        }
        
    }];
}

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

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


@end
