







#import "SurgeHalfMatchCell.h"
#define growMix(bed) __weak typeof(bed) weak##bed = bed;
#define mayBridge(bed) __strong typeof(bed) bed = weak##bed;

@interface SurgeHalfMatchCell()



@property (nonatomic, strong) NSTimer *pulse;

@property (nonatomic, assign) BOOL adoptSolutions;

@end

@implementation SurgeHalfMatchCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _featureSize = CGSizeMake(200, 40);
        _packetRunSin = 4;
        _model = nil;
        _channelCount = 3;
        _hebrew = 0;
        _mouthQualified = 0;
        _status = CricketCinematicEulerOriginalFlushArtist;
        _adoptSolutions = NO;
        
    }
    return self;
}

- (void)noteSpacingAndRecycleLatitudeValue
{
    CGFloat identify = [[self.layer presentationLayer] frame].origin.x;
    CGFloat bothBarWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + bothBarWidth) / self.packetRunSin;
    
    
    CGFloat adjustSinTime = bothBarWidth / speed;
    
    if (_mouthQualified > 0) {
        self.status = HostSecondAwaySayUnwrapPolish;
        if (-1< identify < 1) {
            
            if (_adoptSolutions) { return;}
            _adoptSolutions = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_mouthQualified];
            [self performSelector:@selector(invokeStatus) withObject:nil afterDelay:_mouthQualified - adjustSinTime];
        }
    }
}
- (void)invokeStatus
{
    self.status = OldestBengaliMasterPlusFastRequest;
}

- (void)cubeUsedScriptAlbanianLeap:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = OldestBengaliMasterPlusFastRequest;
    
    _pulse = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(noteSpacingAndRecycleLatitudeValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_pulse forMode:NSRunLoopCommonModes];
    
    
    growMix(self);
    [UIView animateWithDuration:self.packetRunSin delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        mayBridge(self);
        self->_status = OldestBengaliMasterPlusFastRequest;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_pulse) {
            [self->_pulse invalidate];
            self->_pulse = nil;
        }
        
    }];
}

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

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


@end
