








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

@interface BadgeEncodingsSignerRetainOffWay : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *factPubPascalNodeHas;
@property (nonatomic, assign) NSInteger overwriteTouchesFunRemovesProposed;

@property (nonatomic, copy) NSString *dirtyTopWaxData;

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

@property (nonatomic, copy) void (^yellowThumbnailRevealRankArchivedJson)(BOOL result, NSDictionary *tagJson);

@end

@implementation BadgeEncodingsSignerRetainOffWay

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

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

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


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

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

- (void)carDestroySmallRawSubscriptNarrativeDue:(NSString *)hangDroppedDogBinRemovable
{
    self.factPubPascalNodeHas = [MARewardedAd sharedWithAdUnitIdentifier:hangDroppedDogBinRemovable];
    self.factPubPascalNodeHas.delegate = self;

    
    [self.factPubPascalNodeHas loadAd];
}


- (void)terabytesHasTrustMolePlaceBusData:(nullable NSString *)dirtyTopWaxData atomUrgentJson:(void(^)(BOOL result, NSDictionary *tagJson))atomUrgentJson {
    self.yellowThumbnailRevealRankArchivedJson = atomUrgentJson;
    self.dirtyTopWaxData = dirtyTopWaxData;
    if ( [self.factPubPascalNodeHas isReady]) {
        [self.factPubPascalNodeHas showAdForPlacement:nil customData:dirtyTopWaxData];
    }else {
        atomUrgentJson(NO,nil);
    }
}

- (void)terabytesHasTrustMolePlaceBusData:(nullable NSString *)dirtyTopWaxData roundOpt:(void(^)(BOOL result))roundOpt {
    self.plateManyDrop = roundOpt;
    self.dirtyTopWaxData = dirtyTopWaxData;
    if ( [self.factPubPascalNodeHas isReady]) {
        [self.factPubPascalNodeHas showAdForPlacement:nil customData:dirtyTopWaxData];
    }else {
        roundOpt(NO);
    }
}

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

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


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

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

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

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self iterativeGregorianColleagueRemovesBouncing: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.factPubPascalNodeHas loadAd];
    
    if (self.plateManyDrop) {
        self.plateManyDrop(NO);
    }
    
    if (self.yellowThumbnailRevealRankArchivedJson) {
        self.yellowThumbnailRevealRankArchivedJson(NO, nil);
    }
}

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

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

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self iterativeGregorianColleagueRemovesBouncing: __PRETTY_FUNCTION__ error:nil];
    
    if (self.plateManyDrop) {
        self.plateManyDrop(YES);
    }
    
    if (self.yellowThumbnailRevealRankArchivedJson) {
        NSDictionary *tagJson = [self foundBigPlaceLappishAny:ad];
        self.yellowThumbnailRevealRankArchivedJson(YES, tagJson);
    }
}


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

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

@end
