








#import <AppLovinSDK/AppLovinSDK.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>

@interface CriticalBirthdayInterruptSpokenLinkBuffers : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *postalStableTensionPongSelenium;
@property (nonatomic, assign) NSInteger responseUnpluggedInterManOrdered;

@property (nonatomic, copy) NSString *anyGigabitsData;

@property (nonatomic, copy) void (^sunOperandBus)(BOOL result);

@property (nonatomic, copy) void (^clockwiseChromaFractionQuotePaceJson)(BOOL result, NSDictionary *outJson);

@end

@implementation CriticalBirthdayInterruptSpokenLinkBuffers

+ (instancetype)shared {
    static id shared = nil;
    static dispatch_once_t toolToken;
    dispatch_once(&toolToken, ^{
        shared = [[super allocWithZone:NULL] init];
    });
    return shared;
}

+ (NSString *)pipeChinaOld {
    return ALSdk.version;
}

- (void)showMediationDebugger {
    [[ALSdk shared] showMediationDebugger];
}


- (void)cadenceBaselinesAcceptedTipClickLongerKey:(NSString *)xxpk_maxkey napRelayMagnesiumBadEquality:(NSString *)napRelayMagnesiumBadEquality stringCanRadixMonotonicDiscards:(NSArray *)stringCanRadixMonotonicDiscards {
    
    
    
    Class six = NSClassFromString(@"FBAdSettings");
    if (six) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [six performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [six performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *custodianMuteInjectionDraftQualifier = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (stringCanRadixMonotonicDiscards) {
            builder.testDeviceAdvertisingIdentifiers = stringCanRadixMonotonicDiscards;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:custodianMuteInjectionDraftQualifier completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self stepPlacePoolProvidingPrepareAreAsk:napRelayMagnesiumBadEquality];
    }];
}

- (void)stepPlacePoolProvidingPrepareAreAsk:(NSString *)napRelayMagnesiumBadEquality
{
    self.postalStableTensionPongSelenium = [MARewardedAd sharedWithAdUnitIdentifier:napRelayMagnesiumBadEquality];
    self.postalStableTensionPongSelenium.delegate = self;

    
    [self.postalStableTensionPongSelenium loadAd];
}


- (void)interruptSnapUseCatalogArabicDescendedData:(nullable NSString *)anyGigabitsData minWarpTwoJson:(void(^)(BOOL result, NSDictionary *outJson))minWarpTwoJson {
    self.clockwiseChromaFractionQuotePaceJson = minWarpTwoJson;
    self.anyGigabitsData = anyGigabitsData;
    if ( [self.postalStableTensionPongSelenium isReady]) {
        [self.postalStableTensionPongSelenium showAdForPlacement:nil customData:anyGigabitsData];
    }else {
        minWarpTwoJson(NO,nil);
    }
}

- (void)interruptSnapUseCatalogArabicDescendedData:(nullable NSString *)anyGigabitsData lazyTime:(void(^)(BOOL result))lazyTime {
    self.sunOperandBus = lazyTime;
    self.anyGigabitsData = anyGigabitsData;
    if ( [self.postalStableTensionPongSelenium isReady]) {
        [self.postalStableTensionPongSelenium showAdForPlacement:nil customData:anyGigabitsData];
    }else {
        lazyTime(NO);
    }
}

- (void)diamondSugarGrowWorkAscender:(const char *)name error:(NSString *)error {
    
}

- (NSDictionary *)clippingTouchSyntaxUnboundedTen:(MAAd *)ad {
    NSMutableDictionary *outJson = [NSMutableDictionary dictionary];
    
    outJson[@"currency"] = @"USD";
    outJson[@"revenue"] = @(ad.revenue);
    
    if (ad.format.label.length > 0) {
        outJson[@"format"] = ad.format.label;
    }
    
    return [outJson copy];
}


- (void)didLoadAd:(nonnull MAAd *)ad {
    
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
    
    
    self.responseUnpluggedInterManOrdered = 0;
}

- (void)didFailToLoadAdForAdUnitIdentifier:(nonnull NSString *)adUnitIdentifier withError:(nonnull MAError *)error {
    
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:error.message];
    
    
    
    self.responseUnpluggedInterManOrdered++;
    NSInteger indexLow = pow(2, MIN(6, self.responseUnpluggedInterManOrdered));
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, indexLow * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        [self.postalStableTensionPongSelenium loadAd];
    });
}

- (void)didHideAd:(MAAd *)ad {
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
    
    
    [self.postalStableTensionPongSelenium loadAd];
}

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.postalStableTensionPongSelenium loadAd];
    
    if (self.sunOperandBus) {
        self.sunOperandBus(NO);
    }
    
    if (self.clockwiseChromaFractionQuotePaceJson) {
        self.clockwiseChromaFractionQuotePaceJson(NO, nil);
    }
}

- (void)didClickAd:(nonnull MAAd *)ad {
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
}

- (void)didDisplayAd:(nonnull MAAd *)ad {
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
}

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
    
    if (self.sunOperandBus) {
        self.sunOperandBus(YES);
    }
    
    if (self.clockwiseChromaFractionQuotePaceJson) {
        NSDictionary *outJson = [self clippingTouchSyntaxUnboundedTen:ad];
        self.clockwiseChromaFractionQuotePaceJson(YES, outJson);
    }
}


- (void)didCollapseAd:(nonnull MAAd *)ad {
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
}

- (void)didExpandAd:(nonnull MAAd *)ad {
    [self diamondSugarGrowWorkAscender: __PRETTY_FUNCTION__ error:nil];
}

@end
