








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

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

@property (nonatomic, strong) MARewardedAd *clearAmharicDistanceTouchRear;
@property (nonatomic, strong) MAInterstitialAd *siblingsHelloAdverbWrapperHello;
@property (nonatomic, assign) NSInteger decreaseRecyclePrintedLegalGrouped;

@property (nonatomic, copy) NSString *yiddishFindData;

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

@property (nonatomic, copy) void (^listenDecigramsStepsonInsertPullJson)(BOOL result, NSDictionary *allJson);

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

@property (nonatomic, copy) void (^bagJoiningMaxLaunchedTrackingExposureJson)(BOOL result, NSDictionary *allJson);

@property (nonatomic, copy) void (^explicitAzimuthPhaseAcuteImpliedPresenter)(NSDictionary *dueInfo);

@end

@implementation EyeGatheringAnchoredShutdownAloneRate

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

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

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

- (void)anchorLongPlayableStoppedLowDay:(void(^)(NSDictionary *dueInfo))callback {
    self.explicitAzimuthPhaseAcuteImpliedPresenter = callback;
}


- (void)sixCommandOutNearestDownloadPathKey:(NSString *)xxpk_maxkey birthAnswerRunPrecisionRetained:(NSString *)birthAnswerRunPrecisionRetained serializeDingbatsHandRaiseAdjustedFocal:(NSString *)serializeDingbatsHandRaiseAdjustedFocal armMenEmptyHalfAsset:(NSArray *)armMenEmptyHalfAsset {
    
    
    
    Class sub = NSClassFromString(@"FBAdSettings");
    if (sub) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
        [sub performSelector:@selector(setDataProcessingOptions:) withObject:@[]];
        [sub performSelector:@selector(setAdvertiserTrackingEnabled:) withObject:@(YES)];
#pragma clang diagnostic pop
    }
    
    

    
    ALSdkInitializationConfiguration *nextArrivalForbidForbidPanorama = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (armMenEmptyHalfAsset) {
            builder.testDeviceAdvertisingIdentifiers = armMenEmptyHalfAsset;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:nextArrivalForbidForbidPanorama completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self escapesPoolOrganizeStateTrainerAudibleOverwrite:birthAnswerRunPrecisionRetained];
        if (serializeDingbatsHandRaiseAdjustedFocal.length > 0) {
            [self optGrantingSimulatesNotDomainsKilogramPulseCustodian:serializeDingbatsHandRaiseAdjustedFocal];
        }
    }];
}

- (void)escapesPoolOrganizeStateTrainerAudibleOverwrite:(NSString *)birthAnswerRunPrecisionRetained
{
    self.clearAmharicDistanceTouchRear = [MARewardedAd sharedWithAdUnitIdentifier:birthAnswerRunPrecisionRetained];
    self.clearAmharicDistanceTouchRear.delegate = self;
    self.clearAmharicDistanceTouchRear.revenueDelegate = self;

    
    [self.clearAmharicDistanceTouchRear loadAd];
}

- (void)optGrantingSimulatesNotDomainsKilogramPulseCustodian:(NSString *)serializeDingbatsHandRaiseAdjustedFocal
{
    self.siblingsHelloAdverbWrapperHello = [[MAInterstitialAd alloc] initWithAdUnitIdentifier:serializeDingbatsHandRaiseAdjustedFocal];
    self.siblingsHelloAdverbWrapperHello.delegate = self;
    self.siblingsHelloAdverbWrapperHello.revenueDelegate = self;

    
    [self.siblingsHelloAdverbWrapperHello loadAd];
}


- (void)nowBirthDecideCancelBankOutlineData:(nullable NSString *)yiddishFindData claimPieceJson:(void(^)(BOOL result, NSDictionary *allJson))claimPieceJson {
    self.listenDecigramsStepsonInsertPullJson = claimPieceJson;
    self.yiddishFindData = yiddishFindData;
    if ( [self.clearAmharicDistanceTouchRear isReady]) {
        [self.clearAmharicDistanceTouchRear showAdForPlacement:nil customData:yiddishFindData];
    }else {
        claimPieceJson(NO,nil);
    }
}

- (void)nowBirthDecideCancelBankOutlineData:(nullable NSString *)yiddishFindData forSlash:(void(^)(BOOL result))forSlash {
    self.amperePercent = forSlash;
    self.yiddishFindData = yiddishFindData;
    if ( [self.clearAmharicDistanceTouchRear isReady]) {
        [self.clearAmharicDistanceTouchRear showAdForPlacement:nil customData:yiddishFindData];
    }else {
        forSlash(NO);
    }
}

- (void)measuredQualityDropClearConjugateMediaEraData:(nullable NSString *)yiddishFindData forSlash:(void(^)(BOOL result))forSlash {
    self.mixTerahertzMaySlashOwnPan = forSlash;
    self.yiddishFindData = yiddishFindData;
    if ([self.siblingsHelloAdverbWrapperHello isReady]) {
        [self.siblingsHelloAdverbWrapperHello showAd];
    } else {
        [self.siblingsHelloAdverbWrapperHello loadAd];
        if (forSlash) {
            forSlash(NO);
        }
    }
}

- (void)measuredQualityDropClearConjugateMediaEraData:(nullable NSString *)yiddishFindData claimPieceJson:(void(^)(BOOL result, NSDictionary *allJson))claimPieceJson {
    self.bagJoiningMaxLaunchedTrackingExposureJson = claimPieceJson;
    self.yiddishFindData = yiddishFindData;
    if ([self.siblingsHelloAdverbWrapperHello isReady]) {
        [self.siblingsHelloAdverbWrapperHello showAd];
    } else {
        [self.siblingsHelloAdverbWrapperHello loadAd];
        if (claimPieceJson) {
            claimPieceJson(NO, nil);
        }
    }
}

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

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

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

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

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

    self.explicitAzimuthPhaseAcuteImpliedPresenter(dueInfo);
}


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

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

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

    

    self.decreaseRecyclePrintedLegalGrouped++;
    NSInteger produced = pow(2, MIN(6, self.decreaseRecyclePrintedLegalGrouped));

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, produced * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        
        if ([adUnitIdentifier isEqualToString:self.clearAmharicDistanceTouchRear.adUnitIdentifier]) {
            [self.clearAmharicDistanceTouchRear loadAd];
        } else if ([adUnitIdentifier isEqualToString:self.siblingsHelloAdverbWrapperHello.adUnitIdentifier]) {
            [self.siblingsHelloAdverbWrapperHello loadAd];
        }
    });
}

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

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

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

        if (self.bagJoiningMaxLaunchedTrackingExposureJson) {
            NSDictionary *allJson = [self gaelicGeorgianZoomSemicolonRevert:ad];
            self.bagJoiningMaxLaunchedTrackingExposureJson(YES, allJson);
        }
    }
}

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

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

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

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

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

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

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

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

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

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

    if (self.listenDecigramsStepsonInsertPullJson) {
        NSDictionary *allJson = [self gaelicGeorgianZoomSemicolonRevert:ad];
        self.listenDecigramsStepsonInsertPullJson(YES, allJson);
    }
}


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

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


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

@end
