








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

@interface OxygenFilterWillLeapQualityFixing : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *packetsDeviceDistantHexLabel;
@property (nonatomic, assign) NSInteger existSpellVortexOddAmount;

@property (nonatomic, copy) NSString *roleFunkKitData;

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

@property (nonatomic, copy) void (^observerSlashesYoungestDescenderWeekendJson)(BOOL result, NSDictionary *farJson);

@end

@implementation OxygenFilterWillLeapQualityFixing

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

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

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


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

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

- (void)growPaperKilohertzInvokeAvailRepeatHybrid:(NSString *)negotiateTokenWhoLittlePanoramas
{
    self.packetsDeviceDistantHexLabel = [MARewardedAd sharedWithAdUnitIdentifier:negotiateTokenWhoLittlePanoramas];
    self.packetsDeviceDistantHexLabel.delegate = self;

    
    [self.packetsDeviceDistantHexLabel loadAd];
}


- (void)teethWasSummarySubPaceOnlyData:(nullable NSString *)roleFunkKitData nextCatRedJson:(void(^)(BOOL result, NSDictionary *farJson))nextCatRedJson {
    self.observerSlashesYoungestDescenderWeekendJson = nextCatRedJson;
    self.roleFunkKitData = roleFunkKitData;
    if ( [self.packetsDeviceDistantHexLabel isReady]) {
        [self.packetsDeviceDistantHexLabel showAdForPlacement:nil customData:roleFunkKitData];
    }else {
        nextCatRedJson(NO,nil);
    }
}

- (void)teethWasSummarySubPaceOnlyData:(nullable NSString *)roleFunkKitData curlFunk:(void(^)(BOOL result))curlFunk {
    self.preferNearest = curlFunk;
    self.roleFunkKitData = roleFunkKitData;
    if ( [self.packetsDeviceDistantHexLabel isReady]) {
        [self.packetsDeviceDistantHexLabel showAdForPlacement:nil customData:roleFunkKitData];
    }else {
        curlFunk(NO);
    }
}

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

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


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

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

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

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self capRollBagInlandFloat: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.packetsDeviceDistantHexLabel loadAd];
    
    if (self.preferNearest) {
        self.preferNearest(NO);
    }
    
    if (self.observerSlashesYoungestDescenderWeekendJson) {
        self.observerSlashesYoungestDescenderWeekendJson(NO, nil);
    }
}

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

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

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self capRollBagInlandFloat: __PRETTY_FUNCTION__ error:nil];
    
    if (self.preferNearest) {
        self.preferNearest(YES);
    }
    
    if (self.observerSlashesYoungestDescenderWeekendJson) {
        NSDictionary *farJson = [self entityTwentyVeryQuechuaBlood:ad];
        self.observerSlashesYoungestDescenderWeekendJson(YES, farJson);
    }
}


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

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

@end
