package defpackage;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;

/* renamed from: ˊᵣᵲ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1364 extends BroadcastReceiver {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final /* synthetic */ ˉʿᵧʽ f5619;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public boolean f5620;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final boolean f5621;

    public C1364(ˉʿᵧʽ r1, boolean z) {
        this.f5619 = r1;
        this.f5621 = z;
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x003c  */
    /* JADX WARN: Removed duplicated region for block: B:83:0x01d0  */
    /* JADX WARN: Removed duplicated region for block: B:93:0x0231  */
    @Override // android.content.BroadcastReceiver
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void onReceive(android.content.Context r20, android.content.Intent r21) {
        /*
            Method dump skipped, instructions count: 580
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C1364.onReceive(android.content.Context, android.content.Intent):void");
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m4217(Bundle bundle, C3297 c3297, int i, EnumC2590 enumC2590, long j, boolean z) {
        try {
            byte[] byteArray = bundle.getByteArray("FAILURE_LOGGING_PAYLOAD");
            ˉʿᵧʽ r2 = this.f5619;
            if (byteArray != null) {
                ((C0553) ((InterfaceC0575) r2.ᵻᵢﹳᵰ)).m2364(C0044.m1081(bundle.getByteArray("FAILURE_LOGGING_PAYLOAD")), j, z);
            } else {
                ((C0553) ((InterfaceC0575) r2.ᵻᵢﹳᵰ)).m2364(AbstractC4993.m10446(23, i, c3297, null, enumC2590), j, z);
            }
        } catch (Throwable unused) {
            int i2 = AbstractC1845.f7462;
            Log.isLoggable("BillingBroadcastManager", 5);
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final synchronized void m4218(Context context, IntentFilter intentFilter) {
        try {
            if (this.f5620) {
                return;
            }
            if (Build.VERSION.SDK_INT >= 33) {
                context.registerReceiver(this, intentFilter, true != this.f5621 ? 4 : 2);
            } else {
                context.registerReceiver(this, intentFilter);
            }
            this.f5620 = true;
        } catch (Throwable th) {
            throw th;
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final synchronized void m4219(Context context, IntentFilter intentFilter) {
        C1364 c1364;
        try {
            try {
                if (this.f5620) {
                    return;
                }
                if (Build.VERSION.SDK_INT >= 33) {
                    c1364 = this;
                    context.registerReceiver(c1364, intentFilter, "com.google.android.finsky.permission.PLAY_BILLING_LIBRARY_BROADCAST", null, true != this.f5621 ? 4 : 2);
                } else {
                    c1364 = this;
                    context.registerReceiver(c1364, intentFilter, "com.google.android.finsky.permission.PLAY_BILLING_LIBRARY_BROADCAST", null);
                }
                c1364.f5620 = true;
            } catch (Throwable th) {
                th = th;
                throw th;
            }
        } catch (Throwable th2) {
            th = th2;
            throw th;
        }
    }
}
