







#import "HeadBookEarNotCell.h"
#define winPipe(bin) __weak typeof(bin) weak##bin = bin;
#define slopeSwap(bin) __strong typeof(bin) bin = weak##bin;

@interface HeadBookEarNotCell()



@property (nonatomic, strong) NSTimer *evict;

@property (nonatomic, assign) BOOL howRawPintCard;

@end

@implementation HeadBookEarNotCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _penCubeSize = CGSizeMake(200, 40);
        _quietBitHang = 4;
        _model = nil;
        _channelCount = 3;
        _mayMin = 0;
        _thePeerModeFit = 0;
        _status = GermanTabKilohertzLandmarkResonantIcon;
        _howRawPintCard = NO;
        
    }
    return self;
}

- (void)bufferingRestoringNegateNearbyPressedValue
{
    CGFloat cutUpper = [[self.layer presentationLayer] frame].origin.x;
    CGFloat naturalWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + naturalWidth) / self.quietBitHang;
    
    
    CGFloat oneIntentTime = naturalWidth / speed;
    
    if (_thePeerModeFit > 0) {
        self.status = EmergencyProducesUnableHigherReasonFor;
        if (-1< cutUpper < 1) {
            
            if (_howRawPintCard) { return;}
            _howRawPintCard = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_thePeerModeFit];
            [self performSelector:@selector(whoHasStatus) withObject:nil afterDelay:_thePeerModeFit - oneIntentTime];
        }
    }
}
- (void)whoHasStatus
{
    self.status = SlashedColumnsSeekingTruncateBadgeNumeral;
}

- (void)redNotHueBridgedItalics:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = SlashedColumnsSeekingTruncateBadgeNumeral;
    
    _evict = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(bufferingRestoringNegateNearbyPressedValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_evict forMode:NSRunLoopCommonModes];
    
    
    winPipe(self);
    [UIView animateWithDuration:self.quietBitHang delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        slopeSwap(self);
        self->_status = SlashedColumnsSeekingTruncateBadgeNumeral;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_evict) {
            [self->_evict invalidate];
            self->_evict = nil;
        }
        
    }];
}

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

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


@end
