








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

@interface BounceBeenSheGregorianWhoImportant : NSObject<MARewardedAdDelegate,MAAdViewAdDelegate>

@property (nonatomic, strong) MARewardedAd *peerSimpleRelayRedefinedLemma;
@property (nonatomic, assign) NSInteger carEastStarShapeSmall;

@property (nonatomic, copy) NSString *tagsTryViewData;

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

@property (nonatomic, copy) void (^sonSunContainerMaleCommitJson)(BOOL result, NSDictionary *putJson);

@end

@implementation BounceBeenSheGregorianWhoImportant

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

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

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


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

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

- (void)pieceUnwindStiffnessSimpleSongSpineDirectory:(NSString *)phonogramNibblesTagPreviousSize
{
    self.peerSimpleRelayRedefinedLemma = [MARewardedAd sharedWithAdUnitIdentifier:phonogramNibblesTagPreviousSize];
    self.peerSimpleRelayRedefinedLemma.delegate = self;

    
    [self.peerSimpleRelayRedefinedLemma loadAd];
}


- (void)moodAreDidSlabPivotArrowData:(nullable NSString *)tagsTryViewData pubOwnFileJson:(void(^)(BOOL result, NSDictionary *putJson))pubOwnFileJson {
    self.sonSunContainerMaleCommitJson = pubOwnFileJson;
    self.tagsTryViewData = tagsTryViewData;
    if ( [self.peerSimpleRelayRedefinedLemma isReady]) {
        [self.peerSimpleRelayRedefinedLemma showAdForPlacement:nil customData:tagsTryViewData];
    }else {
        pubOwnFileJson(NO,nil);
    }
}

- (void)moodAreDidSlabPivotArrowData:(nullable NSString *)tagsTryViewData hourPull:(void(^)(BOOL result))hourPull {
    self.speakWonAlarm = hourPull;
    self.tagsTryViewData = tagsTryViewData;
    if ( [self.peerSimpleRelayRedefinedLemma isReady]) {
        [self.peerSimpleRelayRedefinedLemma showAdForPlacement:nil customData:tagsTryViewData];
    }else {
        hourPull(NO);
    }
}

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

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


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

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

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

- (void)didFailToDisplayAd:(MAAd *)ad withError:(MAError *)error
{
    [self eitherConstantsReservedRelationManagers: __PRETTY_FUNCTION__ error:error.message];
    
    
    [self.peerSimpleRelayRedefinedLemma loadAd];
    
    if (self.speakWonAlarm) {
        self.speakWonAlarm(NO);
    }
    
    if (self.sonSunContainerMaleCommitJson) {
        self.sonSunContainerMaleCommitJson(NO, nil);
    }
}

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

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

- (void)didRewardUserForAd:(nonnull MAAd *)ad withReward:(nonnull MAReward *)reward {
    [self eitherConstantsReservedRelationManagers: __PRETTY_FUNCTION__ error:nil];
    
    if (self.speakWonAlarm) {
        self.speakWonAlarm(YES);
    }
    
    if (self.sonSunContainerMaleCommitJson) {
        NSDictionary *putJson = [self immutableShipmentDarkWeightsTemplate:ad];
        self.sonSunContainerMaleCommitJson(YES, putJson);
    }
}


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

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

@end
