







#import "CityBitHeapDogCell.h"
#define expires(win) __weak typeof(win) weak##win = win;
#define milePrior(win) __strong typeof(win) win = weak##win;

@interface CityBitHeapDogCell()



@property (nonatomic, strong) NSTimer *dance;

@property (nonatomic, assign) BOOL setupCauseNext;

@end

@implementation CityBitHeapDogCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _sexHoldSize = CGSizeMake(200, 40);
        _agreementDue = 4;
        _model = nil;
        _channelCount = 3;
        _artEye = 0;
        _resignDisallow = 0;
        _status = OverCarrierUnionChunkyJoinPredicate;
        _setupCauseNext = NO;
        
    }
    return self;
}

- (void)orderedArbiterReportedEffectSelectionValue
{
    CGFloat curlFill = [[self.layer presentationLayer] frame].origin.x;
    CGFloat headsetWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + headsetWidth) / self.agreementDue;
    
    
    CGFloat catSourceTime = headsetWidth / speed;
    
    if (_resignDisallow > 0) {
        self.status = GatheringRejectIncomingAlignPutPint;
        if (-1< curlFill < 1) {
            
            if (_setupCauseNext) { return;}
            _setupCauseNext = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_resignDisallow];
            [self performSelector:@selector(borderStatus) withObject:nil afterDelay:_resignDisallow - catSourceTime];
        }
    }
}
- (void)borderStatus
{
    self.status = BounceOutcomeOldOceanDivideRemovable;
}

- (void)readableIdiomSonTremorDance:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = BounceOutcomeOldOceanDivideRemovable;
    
    _dance = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(orderedArbiterReportedEffectSelectionValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_dance forMode:NSRunLoopCommonModes];
    
    
    expires(self);
    [UIView animateWithDuration:self.agreementDue delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        milePrior(self);
        self->_status = BounceOutcomeOldOceanDivideRemovable;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_dance) {
            [self->_dance invalidate];
            self->_dance = nil;
        }
        
    }];
}

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

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


@end
