







#import "RealHexSubLessCell.h"
#define revoked(car) __weak typeof(car) weak##car = car;
#define pageChild(car) __strong typeof(car) car = weak##car;

@interface RealHexSubLessCell()



@property (nonatomic, strong) NSTimer *leaky;

@property (nonatomic, assign) BOOL nineEastCupRun;

@end

@implementation RealHexSubLessCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _useSwapSize = CGSizeMake(200, 40);
        _edgaAudioKit = 4;
        _model = nil;
        _channelCount = 3;
        _howWon = 0;
        _twoAlertGetDog = 0;
        _status = MeteringNauticalAggregateEditorHierarchyStrip;
        _nineEastCupRun = NO;
        
    }
    return self;
}

- (void)coalescedAlternateElevationBusyTerminateValue
{
    CGFloat oddAlbum = [[self.layer presentationLayer] frame].origin.x;
    CGFloat averageWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + averageWidth) / self.edgaAudioKit;
    
    
    CGFloat gradeHelpTime = averageWidth / speed;
    
    if (_twoAlertGetDog > 0) {
        self.status = TelephotoEggKilowattDistantStaleDensity;
        if (oddAlbum > -1 && oddAlbum < 1) {
            
            if (_nineEastCupRun) { return;}
            _nineEastCupRun = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_twoAlertGetDog];
            [self performSelector:@selector(bridgeStatus) withObject:nil afterDelay:_twoAlertGetDog - gradeHelpTime];
        }
    }
}
- (void)bridgeStatus
{
    self.status = WhoEstonianPathSkipSonInset;
}

- (void)sharingOfferStaleGermanBox:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = WhoEstonianPathSkipSonInset;
    
    _leaky = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(coalescedAlternateElevationBusyTerminateValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_leaky forMode:NSRunLoopCommonModes];
    
    
    revoked(self);
    [UIView animateWithDuration:self.edgaAudioKit delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        pageChild(self);
        self->_status = WhoEstonianPathSkipSonInset;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_leaky) {
            [self->_leaky invalidate];
            self->_leaky = nil;
        }
        
    }];
}

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

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


@end
