







#import "CutNapGolfFoldCell.h"
#define moveAll(obj) __weak typeof(obj) weak##obj = obj;
#define eachDutch(obj) __strong typeof(obj) obj = weak##obj;

@interface CutNapGolfFoldCell()



@property (nonatomic, strong) NSTimer *apple;

@property (nonatomic, assign) BOOL coverReadyPair;

@end

@implementation CutNapGolfFoldCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _subBendSize = CGSizeMake(200, 40);
        _badmintonHex = 4;
        _model = nil;
        _channelCount = 3;
        _simple = 0;
        _rateSoloSinOut = 0;
        _status = HeaderRequiringReferentLazyComponentFlip;
        _coverReadyPair = NO;
        
    }
    return self;
}

- (void)receiverJustifiedOurStonePasswordsValue
{
    CGFloat leaveAdd = [[self.layer presentationLayer] frame].origin.x;
    CGFloat invitedWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + invitedWidth) / self.badmintonHex;
    
    
    CGFloat unwindingTime = invitedWidth / speed;
    
    if (_rateSoloSinOut > 0) {
        self.status = BedAgentApplyBiotinPlainOrnaments;
        if (leaveAdd > -1 && leaveAdd < 1) {
            
            if (_coverReadyPair) { return;}
            _coverReadyPair = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_rateSoloSinOut];
            [self performSelector:@selector(launchStatus) withObject:nil afterDelay:_rateSoloSinOut - unwindingTime];
        }
    }
}
- (void)launchStatus
{
    self.status = PredicateExternStartupAssertionPermittedAllocate;
}

- (void)peerVitalityHandWeekendFat:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = PredicateExternStartupAssertionPermittedAllocate;
    
    _apple = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(receiverJustifiedOurStonePasswordsValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_apple forMode:NSRunLoopCommonModes];
    
    
    moveAll(self);
    [UIView animateWithDuration:self.badmintonHex delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        eachDutch(self);
        self->_status = PredicateExternStartupAssertionPermittedAllocate;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_apple) {
            [self->_apple invalidate];
            self->_apple = nil;
        }
        
    }];
}

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

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


@end
