







#import "SlovakDiskLazyCell.h"
#define waxReal(wax) __weak typeof(wax) weak##wax = wax;
#define caseStrip(wax) __strong typeof(wax) wax = weak##wax;

@interface SlovakDiskLazyCell()



@property (nonatomic, strong) NSTimer *sleet;

@property (nonatomic, assign) BOOL whoMouseWasSaw;

@end

@implementation SlovakDiskLazyCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _seekRetSize = CGSizeMake(200, 40);
        _unsafeSignal = 4;
        _model = nil;
        _channelCount = 3;
        _ownKin = 0;
        _hisPairWorkWas = 0;
        _status = OrdinalAudiogramButScrolledStepchildPan;
        _whoMouseWasSaw = NO;
        
    }
    return self;
}

- (void)configureRunSelectingSoloistPinchValue
{
    CGFloat rotorCar = [[self.layer presentationLayer] frame].origin.x;
    CGFloat qualityWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + qualityWidth) / self.unsafeSignal;
    
    
    CGFloat pulseSiteTime = qualityWidth / speed;
    
    if (_hisPairWorkWas > 0) {
        self.status = ExternKitMultiplyUnboundedNumeratorImperial;
        if (-1< rotorCar < 1) {
            
            if (_whoMouseWasSaw) { return;}
            _whoMouseWasSaw = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_hisPairWorkWas];
            [self performSelector:@selector(heightStatus) withObject:nil afterDelay:_hisPairWorkWas - pulseSiteTime];
        }
    }
}
- (void)heightStatus
{
    self.status = RedExpandOperationUnsafeDefinesCenters;
}

- (void)bitsAppearHandleInvokeHas:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = RedExpandOperationUnsafeDefinesCenters;
    
    _sleet = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(configureRunSelectingSoloistPinchValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_sleet forMode:NSRunLoopCommonModes];
    
    
    waxReal(self);
    [UIView animateWithDuration:self.unsafeSignal delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        caseStrip(self);
        self->_status = RedExpandOperationUnsafeDefinesCenters;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_sleet) {
            [self->_sleet invalidate];
            self->_sleet = nil;
        }
        
    }];
}

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

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


@end
