








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

@interface TextCarGigabytesTildeOrdinaryFully : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate,MAAdDelegate,MAAdRevenueDelegate>

@property (nonatomic, strong) MARewardedAd *launchProtocolBottomReplacedLong;
@property (nonatomic, strong) MAInterstitialAd *hasAtomImageMainConsole;
@property (nonatomic, assign) NSInteger notAxesThumbChromeCaptured;

@property (nonatomic, copy) NSString *popSideSeekData;

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

@property (nonatomic, copy) void (^disabledProduceSexOpticalOptimizeJson)(BOOL result, NSDictionary *tryJson);

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

@property (nonatomic, copy) void (^obsoleteSharpenUnfocusedGrayRankedAxesJson)(BOOL result, NSDictionary *tryJson);

@property (nonatomic, copy) void (^gigabytesAdjustCertMustTapsDecode)(NSDictionary *maxInfo);

@end

@implementation TextCarGigabytesTildeOrdinaryFully

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

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

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

- (void)menuGaelicSlavicQualityIdleAudible:(void(^)(NSDictionary *maxInfo))callback {
    self.gigabytesAdjustCertMustTapsDecode = callback;
}


- (void)alongsideArabicEarSumTabCacheKey:(NSString *)xxpk_maxkey uighurAttachFoundBevelDolby:(NSString *)uighurAttachFoundBevelDolby failFocusesPassMinorTooVibrancy:(NSString *)failFocusesPassMinorTooVibrancy cardTapsPetitePaceSeason:(NSArray *)cardTapsPetitePaceSeason {
    
    
    
    Class our = NSClassFromString(@"FBAdSettings");
    if (our) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [our performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [our performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *groupAirPanPriceMin = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (cardTapsPetitePaceSeason) {
            builder.testDeviceAdvertisingIdentifiers = cardTapsPetitePaceSeason;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:groupAirPanPriceMin completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self memberIntervalsKurdishBondHairScrollIodine:uighurAttachFoundBevelDolby];
        if (failFocusesPassMinorTooVibrancy.length > 0) {
            [self fullCutBrownSinNeverDarwinPlanarIts:failFocusesPassMinorTooVibrancy];
        }
    }];
}

- (void)memberIntervalsKurdishBondHairScrollIodine:(NSString *)uighurAttachFoundBevelDolby
{
    self.launchProtocolBottomReplacedLong = [MARewardedAd sharedWithAdUnitIdentifier:uighurAttachFoundBevelDolby];
    self.launchProtocolBottomReplacedLong.delegate = self;
    self.launchProtocolBottomReplacedLong.revenueDelegate = self;

    
    [self.launchProtocolBottomReplacedLong loadAd];
}

- (void)fullCutBrownSinNeverDarwinPlanarIts:(NSString *)failFocusesPassMinorTooVibrancy
{
    self.hasAtomImageMainConsole = [[MAInterstitialAd alloc] initWithAdUnitIdentifier:failFocusesPassMinorTooVibrancy];
    self.hasAtomImageMainConsole.delegate = self;
    self.hasAtomImageMainConsole.revenueDelegate = self;

    
    [self.hasAtomImageMainConsole loadAd];
}


- (void)rankStrokeTaggerResonantCousinOldestData:(nullable NSString *)popSideSeekData undoSexCupJson:(void(^)(BOOL result, NSDictionary *tryJson))undoSexCupJson {
    self.disabledProduceSexOpticalOptimizeJson = undoSexCupJson;
    self.popSideSeekData = popSideSeekData;
    if ( [self.launchProtocolBottomReplacedLong isReady]) {
        [self.launchProtocolBottomReplacedLong showAdForPlacement:nil customData:popSideSeekData];
    }else {
        undoSexCupJson(NO,nil);
    }
}

- (void)rankStrokeTaggerResonantCousinOldestData:(nullable NSString *)popSideSeekData pairEcho:(void(^)(BOOL result))pairEcho {
    self.restLearnBike = pairEcho;
    self.popSideSeekData = popSideSeekData;
    if ( [self.launchProtocolBottomReplacedLong isReady]) {
        [self.launchProtocolBottomReplacedLong showAdForPlacement:nil customData:popSideSeekData];
    }else {
        pairEcho(NO);
    }
}

- (void)youCollectHasSubmitAudiogramTenExclusionData:(nullable NSString *)popSideSeekData pairEcho:(void(^)(BOOL result))pairEcho {
    self.generatorStackCheckSheActionBlink = pairEcho;
    self.popSideSeekData = popSideSeekData;
    if ([self.hasAtomImageMainConsole isReady]) {
        [self.hasAtomImageMainConsole showAd];
    } else {
        [self.hasAtomImageMainConsole loadAd];
        if (pairEcho) {
            pairEcho(NO);
        }
    }
}

- (void)youCollectHasSubmitAudiogramTenExclusionData:(nullable NSString *)popSideSeekData undoSexCupJson:(void(^)(BOOL result, NSDictionary *tryJson))undoSexCupJson {
    self.obsoleteSharpenUnfocusedGrayRankedAxesJson = undoSexCupJson;
    self.popSideSeekData = popSideSeekData;
    if ([self.hasAtomImageMainConsole isReady]) {
        [self.hasAtomImageMainConsole showAd];
    } else {
        [self.hasAtomImageMainConsole loadAd];
        if (undoSexCupJson) {
            undoSexCupJson(NO, nil);
        }
    }
}

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

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

- (void)readyUppercaseLigaturePlugFolderArgument:(MAAd *)ad eventType:(NSString *)eventType {
    if (!self.gigabytesAdjustCertMustTapsDecode) {
        return;
    }

    NSString *adType = @"UNKNOWN";
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        adType = @"REWARD";
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        adType = @"INTERSTITIAL";
    }

    NSDictionary *maxInfo = @{
        @"ads_platform": @"APPLOVIN",
        @"ad_unit_id": ad.adUnitIdentifier ?: @"",
        @"event_type": eventType,  
        @"ad_type": adType,
        @"revenue": @(ad.revenue).stringValue ?: @"0"
    };

    self.gigabytesAdjustCertMustTapsDecode(maxInfo);
}


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

- (void)didFailToLoadAdForAdUnitIdentifier:(nonnull NSString *)adUnitIdentifier withError:(nonnull MAError *)error {

    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:error.message];

    

    self.notAxesThumbChromeCaptured++;
    NSInteger leakyWon = pow(2, MIN(6, self.notAxesThumbChromeCaptured));

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, leakyWon * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        
        if ([adUnitIdentifier isEqualToString:self.launchProtocolBottomReplacedLong.adUnitIdentifier]) {
            [self.launchProtocolBottomReplacedLong loadAd];
        } else if ([adUnitIdentifier isEqualToString:self.hasAtomImageMainConsole.adUnitIdentifier]) {
            [self.hasAtomImageMainConsole loadAd];
        }
    });
}

- (void)didHideAd:(MAAd *)ad {
    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:nil];

    
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        [self.launchProtocolBottomReplacedLong loadAd];
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        [self.hasAtomImageMainConsole loadAd];

        
        if (self.generatorStackCheckSheActionBlink) {
            self.generatorStackCheckSheActionBlink(YES);
        }

        if (self.obsoleteSharpenUnfocusedGrayRankedAxesJson) {
            NSDictionary *tryJson = [self messagingCanonDeveloperSharpnessAmbience:ad];
            self.obsoleteSharpenUnfocusedGrayRankedAxesJson(YES, tryJson);
        }
    }
}

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:error.message];

    
    if ([ad.format isEqual:MAAdFormat.rewarded]) {
        [self.launchProtocolBottomReplacedLong loadAd];

        if (self.restLearnBike) {
            self.restLearnBike(NO);
        }

        if (self.disabledProduceSexOpticalOptimizeJson) {
            self.disabledProduceSexOpticalOptimizeJson(NO, nil);
        }
    } else if ([ad.format isEqual:MAAdFormat.interstitial]) {
        [self.hasAtomImageMainConsole loadAd];

        if (self.generatorStackCheckSheActionBlink) {
            self.generatorStackCheckSheActionBlink(NO);
        }

        if (self.obsoleteSharpenUnfocusedGrayRankedAxesJson) {
            self.obsoleteSharpenUnfocusedGrayRankedAxesJson(NO, nil);
        }
    }
}

- (void)didClickAd:(nonnull MAAd *)ad {
    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:nil];
    [self readyUppercaseLigaturePlugFolderArgument:ad eventType:@"1"];
}

- (void)didDisplayAd:(nonnull MAAd *)ad {
    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:nil];
    [self readyUppercaseLigaturePlugFolderArgument:ad eventType:@"2"];
}

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:nil];

    if (self.restLearnBike) {
        self.restLearnBike(YES);
    }

    if (self.disabledProduceSexOpticalOptimizeJson) {
        NSDictionary *tryJson = [self messagingCanonDeveloperSharpnessAmbience:ad];
        self.disabledProduceSexOpticalOptimizeJson(YES, tryJson);
    }
}


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

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


- (void)didPayRevenueForAd:(MAAd *)ad {
    [self expectOptimizePinPanLyricist: __PRETTY_FUNCTION__ error:nil];
    [self readyUppercaseLigaturePlugFolderArgument:ad eventType:@"3"];
}

@end
