








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

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

@property (nonatomic, strong) MARewardedAd *profilesCondensedTraveledCapturesPhoto;
@property (nonatomic, strong) MAInterstitialAd *surrogateExposuresFixHintInjection;
@property (nonatomic, assign) NSInteger celticIndirectArmPieceBaseball;

@property (nonatomic, copy) NSString *keyHerAlignData;

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

@property (nonatomic, copy) void (^escapeFifteenObserveButterflyBrushJson)(BOOL result, NSDictionary *fixJson);

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

@property (nonatomic, copy) void (^cursorIntegerAdditiveStackConvergedBinaryJson)(BOOL result, NSDictionary *fixJson);

@property (nonatomic, copy) void (^busCubeSayUnfocusedNextReject)(NSDictionary *sixInfo);

@end

@implementation AnotherCenteredIndoorAlongsideDisposeLow

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

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

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

- (void)opaqueBackupProgressScreenInferMenu:(void(^)(NSDictionary *sixInfo))callback {
    self.busCubeSayUnfocusedNextReject = callback;
}


- (void)dashComparedPurchasedMoireMusicianRouterKey:(NSString *)xxpk_maxkey howMicroRemoteNineLock:(NSString *)howMicroRemoteNineLock cupMillionChapterAnimateDetectedSlope:(NSString *)cupMillionChapterAnimateDetectedSlope totalCatalanPhotosForModal:(NSArray *)totalCatalanPhotosForModal {
    
    
    
    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 *finishYardRearrangeTrackImportant = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (totalCatalanPhotosForModal) {
            builder.testDeviceAdvertisingIdentifiers = totalCatalanPhotosForModal;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:finishYardRearrangeTrackImportant completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self attachDetailAgentMasterInnerSpellFragment:howMicroRemoteNineLock];
        if (cupMillionChapterAnimateDetectedSlope.length > 0) {
            [self recordingShotPintInjectionRightRuleClampPrice:cupMillionChapterAnimateDetectedSlope];
        }
    }];
}

- (void)attachDetailAgentMasterInnerSpellFragment:(NSString *)howMicroRemoteNineLock
{
    self.profilesCondensedTraveledCapturesPhoto = [MARewardedAd sharedWithAdUnitIdentifier:howMicroRemoteNineLock];
    self.profilesCondensedTraveledCapturesPhoto.delegate = self;
    self.profilesCondensedTraveledCapturesPhoto.revenueDelegate = self;

    
    [self.profilesCondensedTraveledCapturesPhoto loadAd];
}

- (void)recordingShotPintInjectionRightRuleClampPrice:(NSString *)cupMillionChapterAnimateDetectedSlope
{
    self.surrogateExposuresFixHintInjection = [[MAInterstitialAd alloc] initWithAdUnitIdentifier:cupMillionChapterAnimateDetectedSlope];
    self.surrogateExposuresFixHintInjection.delegate = self;
    self.surrogateExposuresFixHintInjection.revenueDelegate = self;

    
    [self.surrogateExposuresFixHintInjection loadAd];
}


- (void)warpAudiencesMinderNearbyWaitingDefineData:(nullable NSString *)keyHerAlignData artworkSixJson:(void(^)(BOOL result, NSDictionary *fixJson))artworkSixJson {
    self.escapeFifteenObserveButterflyBrushJson = artworkSixJson;
    self.keyHerAlignData = keyHerAlignData;
    if ( [self.profilesCondensedTraveledCapturesPhoto isReady]) {
        [self.profilesCondensedTraveledCapturesPhoto showAdForPlacement:nil customData:keyHerAlignData];
    }else {
        artworkSixJson(NO,nil);
    }
}

- (void)warpAudiencesMinderNearbyWaitingDefineData:(nullable NSString *)keyHerAlignData faceBook:(void(^)(BOOL result))faceBook {
    self.seeWinFlatten = faceBook;
    self.keyHerAlignData = keyHerAlignData;
    if ( [self.profilesCondensedTraveledCapturesPhoto isReady]) {
        [self.profilesCondensedTraveledCapturesPhoto showAdForPlacement:nil customData:keyHerAlignData];
    }else {
        faceBook(NO);
    }
}

- (void)liveInhalerSymptomGregorianPicturesEditPaperData:(nullable NSString *)keyHerAlignData faceBook:(void(^)(BOOL result))faceBook {
    self.clickedSameUsesZipOnlineThe = faceBook;
    self.keyHerAlignData = keyHerAlignData;
    if ([self.surrogateExposuresFixHintInjection isReady]) {
        [self.surrogateExposuresFixHintInjection showAd];
    } else {
        [self.surrogateExposuresFixHintInjection loadAd];
        if (faceBook) {
            faceBook(NO);
        }
    }
}

- (void)liveInhalerSymptomGregorianPicturesEditPaperData:(nullable NSString *)keyHerAlignData artworkSixJson:(void(^)(BOOL result, NSDictionary *fixJson))artworkSixJson {
    self.cursorIntegerAdditiveStackConvergedBinaryJson = artworkSixJson;
    self.keyHerAlignData = keyHerAlignData;
    if ([self.surrogateExposuresFixHintInjection isReady]) {
        [self.surrogateExposuresFixHintInjection showAd];
    } else {
        [self.surrogateExposuresFixHintInjection loadAd];
        if (artworkSixJson) {
            artworkSixJson(NO, nil);
        }
    }
}

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

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

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

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

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

    self.busCubeSayUnfocusedNextReject(sixInfo);
}


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

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

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

    

    self.celticIndirectArmPieceBaseball++;
    NSInteger popQuery = pow(2, MIN(6, self.celticIndirectArmPieceBaseball));

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, popQuery * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        
        if ([adUnitIdentifier isEqualToString:self.profilesCondensedTraveledCapturesPhoto.adUnitIdentifier]) {
            [self.profilesCondensedTraveledCapturesPhoto loadAd];
        } else if ([adUnitIdentifier isEqualToString:self.surrogateExposuresFixHintInjection.adUnitIdentifier]) {
            [self.surrogateExposuresFixHintInjection loadAd];
        }
    });
}

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

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

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

        if (self.cursorIntegerAdditiveStackConvergedBinaryJson) {
            NSDictionary *fixJson = [self dissolveWideStartingManStream:ad];
            self.cursorIntegerAdditiveStackConvergedBinaryJson(YES, fixJson);
        }
    }
}

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

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

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

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

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

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

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

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

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

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

    if (self.escapeFifteenObserveButterflyBrushJson) {
        NSDictionary *fixJson = [self dissolveWideStartingManStream:ad];
        self.escapeFifteenObserveButterflyBrushJson(YES, fixJson);
    }
}


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

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


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

@end
