








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

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

@property (nonatomic, strong) MARewardedAd *duplexProtectedWonDryBit;
@property (nonatomic, strong) MAInterstitialAd *dashMidDemandPinSiblings;
@property (nonatomic, assign) NSInteger constantReportDatumAmericanCap;

@property (nonatomic, copy) NSString *cloudyEveryData;

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

@property (nonatomic, copy) void (^carTransposeAnimatedProtocolEdgaJson)(BOOL result, NSDictionary *outJson);

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

@property (nonatomic, copy) void (^locationsGravityCheckRadioSheStrokedJson)(BOOL result, NSDictionary *outJson);

@property (nonatomic, copy) void (^absentSobExportingNoteRejectionNode)(NSDictionary *ageInfo);

@end

@implementation IslamicDeferringMirroringFaeroeseRawSnapshot

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

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

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

- (void)golfVersionSamePrintedShelfImportant:(void(^)(NSDictionary *ageInfo))callback {
    self.absentSobExportingNoteRejectionNode = callback;
}


- (void)workflowMasterDetailCreatingSessionsEffortKey:(NSString *)xxpk_maxkey quitAdditionPrefixSumRepeats:(NSString *)quitAdditionPrefixSumRepeats herCharToneDaysLoadHold:(NSString *)herCharToneDaysLoadHold imagePauseTemporalCurlFinishing:(NSArray *)imagePauseTemporalCurlFinishing {
    
    
    
    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 *remoteDecibelArchivedCentersLast = [ALSdkInitializationConfiguration configurationWithSdkKey:xxpk_maxkey builderBlock:^(ALSdkInitializationConfigurationBuilder * _Nonnull builder) {
        builder.mediationProvider = ALMediationProviderMAX;
        if (imagePauseTemporalCurlFinishing) {
            builder.testDeviceAdvertisingIdentifiers = imagePauseTemporalCurlFinishing;
        }
        if (@available(iOS 14, *)) {
            if ([ATTrackingManager trackingAuthorizationStatus] == ATTrackingManagerAuthorizationStatusAuthorized ) {
                [ALPrivacySettings setHasUserConsent: YES];
            }
        } else {
            [ALPrivacySettings setHasUserConsent: YES];
        }
    }];
    
    [[ALSdk shared] initializeWithConfiguration:remoteDecibelArchivedCentersLast completionHandler:^(ALSdkConfiguration * _Nonnull configuration) {
        [self nineTenThemeGrowDiscardsPortalCap:quitAdditionPrefixSumRepeats];
        if (herCharToneDaysLoadHold.length > 0) {
            [self footerRenderArrowCoercionCallIdleDecigramsSecond:herCharToneDaysLoadHold];
        }
    }];
}

- (void)nineTenThemeGrowDiscardsPortalCap:(NSString *)quitAdditionPrefixSumRepeats
{
    self.duplexProtectedWonDryBit = [MARewardedAd sharedWithAdUnitIdentifier:quitAdditionPrefixSumRepeats];
    self.duplexProtectedWonDryBit.delegate = self;
    self.duplexProtectedWonDryBit.revenueDelegate = self;

    
    [self.duplexProtectedWonDryBit loadAd];
}

- (void)footerRenderArrowCoercionCallIdleDecigramsSecond:(NSString *)herCharToneDaysLoadHold
{
    self.dashMidDemandPinSiblings = [[MAInterstitialAd alloc] initWithAdUnitIdentifier:herCharToneDaysLoadHold];
    self.dashMidDemandPinSiblings.delegate = self;
    self.dashMidDemandPinSiblings.revenueDelegate = self;

    
    [self.dashMidDemandPinSiblings loadAd];
}


- (void)anchorLayeringDigitizedPreventedExtentsReorderData:(nullable NSString *)cloudyEveryData fullFinishJson:(void(^)(BOOL result, NSDictionary *outJson))fullFinishJson {
    self.carTransposeAnimatedProtocolEdgaJson = fullFinishJson;
    self.cloudyEveryData = cloudyEveryData;
    if ( [self.duplexProtectedWonDryBit isReady]) {
        [self.duplexProtectedWonDryBit showAdForPlacement:nil customData:cloudyEveryData];
    }else {
        fullFinishJson(NO,nil);
    }
}

- (void)anchorLayeringDigitizedPreventedExtentsReorderData:(nullable NSString *)cloudyEveryData pathPolo:(void(^)(BOOL result))pathPolo {
    self.guideMaxAudit = pathPolo;
    self.cloudyEveryData = cloudyEveryData;
    if ( [self.duplexProtectedWonDryBit isReady]) {
        [self.duplexProtectedWonDryBit showAdForPlacement:nil customData:cloudyEveryData];
    }else {
        pathPolo(NO);
    }
}

- (void)syntheticFatCaffeineElevationKindArchiveSoccerData:(nullable NSString *)cloudyEveryData pathPolo:(void(^)(BOOL result))pathPolo {
    self.slopeSinhaleseSwimmingLocationDigitDraw = pathPolo;
    self.cloudyEveryData = cloudyEveryData;
    if ([self.dashMidDemandPinSiblings isReady]) {
        [self.dashMidDemandPinSiblings showAd];
    } else {
        [self.dashMidDemandPinSiblings loadAd];
        if (pathPolo) {
            pathPolo(NO);
        }
    }
}

- (void)syntheticFatCaffeineElevationKindArchiveSoccerData:(nullable NSString *)cloudyEveryData fullFinishJson:(void(^)(BOOL result, NSDictionary *outJson))fullFinishJson {
    self.locationsGravityCheckRadioSheStrokedJson = fullFinishJson;
    self.cloudyEveryData = cloudyEveryData;
    if ([self.dashMidDemandPinSiblings isReady]) {
        [self.dashMidDemandPinSiblings showAd];
    } else {
        [self.dashMidDemandPinSiblings loadAd];
        if (fullFinishJson) {
            fullFinishJson(NO, nil);
        }
    }
}

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

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

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

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

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

    self.absentSobExportingNoteRejectionNode(ageInfo);
}


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

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

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

    

    self.constantReportDatumAmericanCap++;
    NSInteger sonPivot = pow(2, MIN(6, self.constantReportDatumAmericanCap));

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, sonPivot * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
        
        if ([adUnitIdentifier isEqualToString:self.duplexProtectedWonDryBit.adUnitIdentifier]) {
            [self.duplexProtectedWonDryBit loadAd];
        } else if ([adUnitIdentifier isEqualToString:self.dashMidDemandPinSiblings.adUnitIdentifier]) {
            [self.dashMidDemandPinSiblings loadAd];
        }
    });
}

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

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

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

        if (self.locationsGravityCheckRadioSheStrokedJson) {
            NSDictionary *outJson = [self extendResponsesAreKilowattsInstant:ad];
            self.locationsGravityCheckRadioSheStrokedJson(YES, outJson);
        }
    }
}

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

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

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

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

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

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

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

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

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

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

    if (self.carTransposeAnimatedProtocolEdgaJson) {
        NSDictionary *outJson = [self extendResponsesAreKilowattsInstant:ad];
        self.carTransposeAnimatedProtocolEdgaJson(YES, outJson);
    }
}


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

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


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

@end
