







#import "LostSendNegateCell.h"
#define topLike(did) __weak typeof(did) weak##did = did;
#define dogManual(did) __strong typeof(did) did = weak##did;

@interface LostSendNegateCell()



@property (nonatomic, strong) NSTimer *tilde;

@property (nonatomic, assign) BOOL motionWrapTrap;

@end

@implementation LostSendNegateCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _forStopSize = CGSizeMake(200, 40);
        _sindhiWayHas = 4;
        _model = nil;
        _channelCount = 3;
        _bridge = 0;
        _funAdoptAnyTip = 0;
        _status = OffDecodingSplitNapPersonalAssamese;
        _motionWrapTrap = NO;
        
    }
    return self;
}

- (void)renderMostlyAdvisoryShareErrorValue
{
    CGFloat faceSort = [[self.layer presentationLayer] frame].origin.x;
    CGFloat compileWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + compileWidth) / self.sindhiWayHas;
    
    
    CGFloat fatExpectTime = compileWidth / speed;
    
    if (_funAdoptAnyTip > 0) {
        self.status = ModeIncorrectNameParserUploadOur;
        if (faceSort > -1 && faceSort < 1) {
            
            if (_motionWrapTrap) { return;}
            _motionWrapTrap = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_funAdoptAnyTip];
            [self performSelector:@selector(putWetStatus) withObject:nil afterDelay:_funAdoptAnyTip - fatExpectTime];
        }
    }
}
- (void)putWetStatus
{
    self.status = CreatedDropBusyServiceSuchDisallow;
}

- (void)atomicGetResizingLabelBook:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = CreatedDropBusyServiceSuchDisallow;
    
    _tilde = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(renderMostlyAdvisoryShareErrorValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_tilde forMode:NSRunLoopCommonModes];
    
    
    topLike(self);
    [UIView animateWithDuration:self.sindhiWayHas delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        dogManual(self);
        self->_status = CreatedDropBusyServiceSuchDisallow;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_tilde) {
            [self->_tilde invalidate];
            self->_tilde = nil;
        }
        
    }];
}

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

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


@end
